summaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2012-04-05 19:51:53 +0200
committerEric Paris <eparis@redhat.com>2012-04-09 18:23:57 +0200
commitc737f8284cac91428f8fcc8281e69117fa16e887 (patch)
tree7cb4cd77df9786925aa2c7cad919c4881651638b /security/selinux
parentSELinux: avc: remove the useless fields in avc_add_callback (diff)
downloadlinux-c737f8284cac91428f8fcc8281e69117fa16e887.tar.xz
linux-c737f8284cac91428f8fcc8281e69117fa16e887.zip
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/selinux')
-rw-r--r--security/selinux/hooks.c4
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)
static inline void flush_unauthorized_files(const struct cred *cred,
struct files_struct *files)
{
- struct common_audit_data ad;
struct file *file, *devnull = NULL;
struct tty_struct *tty;
struct fdtable *fdt;
@@ -2116,9 +2115,6 @@ static inline void flush_unauthorized_files(const struct cred *cred,
no_tty();
/* Revalidate access to inherited open files. */
-
- ad.type = LSM_AUDIT_DATA_INODE;
-
spin_lock(&files->file_lock);
for (;;) {
unsigned long set, i;