summaryrefslogtreecommitdiffstats
path: root/security/selinux/include
diff options
context:
space:
mode:
authorPaul Moore <paul.moore@hp.com>2008-10-10 16:16:30 +0200
committerPaul Moore <paul.moore@hp.com>2008-10-10 16:16:30 +0200
commit99d854d231ce141850b988bdc7e2e7c78f49b03a (patch)
treed9da2a23471f38f6b25ec2bcfe982622ee51adba /security/selinux/include
parentselinux: Better local/forward check in selinux_ip_postroute() (diff)
downloadlinux-99d854d231ce141850b988bdc7e2e7c78f49b03a.tar.xz
linux-99d854d231ce141850b988bdc7e2e7c78f49b03a.zip
selinux: Fix a problem in security_netlbl_sid_to_secattr()
Currently when SELinux fails to allocate memory in security_netlbl_sid_to_secattr() the NetLabel LSM domain field is set to NULL which triggers the default NetLabel LSM domain mapping which may not always be the desired mapping. This patch fixes this by returning an error when the kernel is unable to allocate memory. This could result in more failures on a system with heavy memory pressure but it is the "correct" thing to do. Signed-off-by: Paul Moore <paul.moore@hp.com> Acked-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/include')
0 files changed, 0 insertions, 0 deletions