]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] SELinux: handle sel_make_bools() failure in selinuxfs
authorDavi Arnaut <davi.arnaut@gmail.com>
Sun, 23 Oct 2005 19:57:16 +0000 (12:57 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 23 Oct 2005 23:38:39 +0000 (16:38 -0700)
commitdd79f1ddd7bd538cdb32e8c5cfd305d91d493179
tree1ed0cc19c51b10336c14a1b9c35095ef8ebfd138
parent2e281f15e8867f99ab3fee54960192c5fe4cd231
[PATCH] SELinux: handle sel_make_bools() failure in selinuxfs

This patch fixes error handling in sel_make_bools(), where currently we'd
get a memory leak via security_get_bools() and try to kfree() the wrong
pointer if called again.

Signed-off-by: James Morris <jmorris@namei.org>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/selinuxfs.c