diff options
author | Eric Paris <eparis@redhat.com> | 2012-04-05 13:51:53 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2012-04-09 12:23:57 -0400 |
commit | c737f8284cac91428f8fcc8281e69117fa16e887 (patch) | |
tree | 7cb4cd77df9786925aa2c7cad919c4881651638b /security | |
parent | 562c99f20d989f222138dddfd71e275bfb3665de (diff) |
SELinux: remove unused common_audit_data in flush_unauthorized_files
We don't need this variable and it just eats stack space. Remove it.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 2578de549ad7..e94349b85bfe 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2084,7 +2084,6 @@ static int selinux_bprm_secureexec(struct linux_binprm *bprm) | |||
2084 | static inline void flush_unauthorized_files(const struct cred *cred, | 2084 | static inline void flush_unauthorized_files(const struct cred *cred, |
2085 | struct files_struct *files) | 2085 | struct files_struct *files) |
2086 | { | 2086 | { |
2087 | struct common_audit_data ad; | ||
2088 | struct file *file, *devnull = NULL; | 2087 | struct file *file, *devnull = NULL; |
2089 | struct tty_struct *tty; | 2088 | struct tty_struct *tty; |
2090 | struct fdtable *fdt; | 2089 | struct fdtable *fdt; |
@@ -2116,9 +2115,6 @@ static inline void flush_unauthorized_files(const struct cred *cred, | |||
2116 | no_tty(); | 2115 | no_tty(); |
2117 | 2116 | ||
2118 | /* Revalidate access to inherited open files. */ | 2117 | /* Revalidate access to inherited open files. */ |
2119 | |||
2120 | ad.type = LSM_AUDIT_DATA_INODE; | ||
2121 | |||
2122 | spin_lock(&files->file_lock); | 2118 | spin_lock(&files->file_lock); |
2123 | for (;;) { | 2119 | for (;;) { |
2124 | unsigned long set, i; | 2120 | unsigned long set, i; |