Staging
v0.5.1
https://github.com/torvalds/linux
Revision 3040a6d5a2655c7967bd42b5fb4903d48daa747f authored by Paul Moore on 03 October 2008, 14:51:15 UTC, committed by James Morris on 03 October 2008, 22:25:18 UTC
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>
1 parent b5ff7df
History
Tip revision: 3040a6d5a2655c7967bd42b5fb4903d48daa747f authored by Paul Moore on 03 October 2008, 14:51:15 UTC
selinux: Fix an uninitialized variable BUG/panic in selinux_secattr_to_sid()
Tip revision: 3040a6d
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.7 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.7 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 99.5 KB
Makefile -rw-r--r-- 55.4 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top