kernel-fxtec-pro1x/security/selinux
Paul Moore 81990fbdd1 selinux: Fix an uninitialized variable BUG/panic in selinux_secattr_to_sid()
At some point during the 2.6.27 development cycle two new fields were added
to the SELinux context structure, a string pointer and a length field.  The
code in selinux_secattr_to_sid() was not modified and as a result these two
fields were left uninitialized which could result in erratic behavior,
including kernel panics, when NetLabel is used.  This patch fixes the
problem by fully initializing the context in selinux_secattr_to_sid() before
use and reducing the level of direct context manipulation done to help
prevent future problems.

Please apply this to the 2.6.27-rcX release stream.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
2008-10-04 08:18:18 +10:00
..
include SELinux: add boundary support and thread context assignment 2008-08-29 00:33:33 +10:00
ss selinux: Fix an uninitialized variable BUG/panic in selinux_secattr_to_sid() 2008-10-04 08:18:18 +10:00
avc.c SELinux: add boundary support and thread context assignment 2008-08-29 00:33:33 +10:00
exports.c
hooks.c selinux: use default proc sid on symlinks 2008-09-30 00:26:53 +10:00
Kconfig Update selinux info in MAINTAINERS and Kconfig help text 2008-09-12 00:44:08 +10:00
Makefile
netif.c SELinux fixups needed for preemptable RCU from -rt 2008-04-22 15:37:23 +10:00
netlabel.c
netlink.c
netnode.c SELinux: keep the code clean formating and syntax 2008-07-14 15:01:36 +10:00
netport.c SELinux: keep the code clean formating and syntax 2008-07-14 15:01:36 +10:00
nlmsgtab.c
selinuxfs.c SELinux: more user friendly unknown handling printk 2008-07-14 15:02:00 +10:00
xfrm.c