diff options
author | Paul Moore <paul.moore@hp.com> | 2008-10-03 14:51:15 (GMT) |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-10-03 22:18:18 (GMT) |
commit | 81990fbdd18b9cfdc93dc221ff3250f81468aed8 (patch) | |
tree | 7c8298b58173e9e67f972890bdb209590ac93cab /arch/mips/kernel/cpu-probe.c | |
parent | ea6b184f7d521a503ecab71feca6e4057562252b (diff) | |
download | linux-fsl-qoriq-81990fbdd18b9cfdc93dc221ff3250f81468aed8.tar.xz |
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>
Diffstat (limited to 'arch/mips/kernel/cpu-probe.c')
0 files changed, 0 insertions, 0 deletions