]> Pileus Git - ~andy/linux/commitdiff
SELinux: remove unused common_audit_data in flush_unauthorized_files
authorEric Paris <eparis@redhat.com>
Thu, 5 Apr 2012 17:51:53 +0000 (13:51 -0400)
committerEric Paris <eparis@redhat.com>
Mon, 9 Apr 2012 16:23:57 +0000 (12:23 -0400)
We don't need this variable and it just eats stack space.  Remove it.

Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/hooks.c

index 2578de549ad7e704d74a78c38f4a58fd8d491d38..e94349b85bfe1a38f7f3c04b049101ff98778fd0 100644 (file)
@@ -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;