kernel_optimize_test/security/selinux/include
Rasmus Villemoes 44be2f65d9 selinux: introduce security_context_str_to_sid
There seems to be a little confusion as to whether the scontext_len
parameter of security_context_to_sid() includes the nul-byte or
not. Reading security_context_to_sid_core(), it seems that the
expectation is that it does not (both the string copying and the test
for scontext_len being zero hint at that).

Introduce the helper security_context_str_to_sid() to do the strlen()
call and fix all callers.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <pmoore@redhat.com>
2015-10-21 17:44:25 -04:00
..
audit.h
avc_ss.h
avc.h Merge branch 'next' of git://git.infradead.org/users/pcmoore/selinux into next 2015-08-15 13:29:57 +10:00
classmap.h selinux: Remove unused permission definitions 2015-06-04 16:22:17 -04:00
conditional.h
initial_sid_to_string.h
netif.h
netlabel.h
netnode.h
netport.h
objsec.h
security.h selinux: introduce security_context_str_to_sid 2015-10-21 17:44:25 -04:00
xfrm.h