提交 c737f828 编写于 作者: E Eric Paris

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: NEric Paris <eparis@redhat.com>
上级 562c99f2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册