android_kernel_xiaomi_sm8350/security/selinux/ss
Paul Moore 99d854d231 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>
2008-10-10 10:16:30 -04:00
..
avtab.c SELinux: keep the code clean formating and syntax 2008-07-14 15:01:36 +10:00
avtab.h
conditional.c
conditional.h
constraint.h
context.h
ebitmap.c
ebitmap.h
hashtab.c
hashtab.h
Makefile
mls_types.h
mls.c SELinux: keep the code clean formating and syntax 2008-07-14 15:01:36 +10:00
mls.h
policydb.c selinux: fix endianness bug in network node address handling 2008-07-14 15:01:54 +10:00
policydb.h
services.c selinux: Fix a problem in security_netlbl_sid_to_secattr() 2008-10-10 10:16:30 -04:00
services.h
sidtab.c SELinux: open code sidtab lock 2008-07-14 15:01:57 +10:00
sidtab.h
symtab.c
symtab.h