summaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
authorGerald Schaefer <geraldsc@de.ibm.com>2005-06-21 17:15:18 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 18:46:22 -0700
commitda3caa204ca40c32dcb751ebead2a6835b83e8d1 (patch)
tree0bf36cf3bd9bee84cc4f93de5e99d6a0832329cb /security/selinux
parent8680e22f296e75e5497edb660c59c6b4dcfbbd32 (diff)
downloadop-kernel-dev-da3caa204ca40c32dcb751ebead2a6835b83e8d1.zip
op-kernel-dev-da3caa204ca40c32dcb751ebead2a6835b83e8d1.tar.gz
[PATCH] SELinux: memory leak in selinux_sb_copy_data()
There is a memory leak during mount when SELinux is active and mount options are specified. Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com> Acked-by: Stephen Smalley <sds@epoch.ncsc.mil> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/hooks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index db845cb..87302a4 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -1945,6 +1945,7 @@ static int selinux_sb_copy_data(struct file_system_type *type, void *orig, void
} while (*in_end++);
copy_page(in_save, nosec_save);
+ free_page((unsigned long)nosec_save);
out:
return rc;
}
OpenPOWER on IntegriCloud