Skip to content

Commit

Permalink
SELinux: remove unused common_audit_data in flush_unauthorized_files
Browse files Browse the repository at this point in the history
We don't need this variable and it just eats stack space.  Remove it.

Signed-off-by: Eric Paris <eparis@redhat.com>
  • Loading branch information
Eric Paris committed Apr 9, 2012
1 parent 562c99f commit c737f82
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c737f82

Please sign in to comment.