]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: fix handling of uninitialized selinux state in get_bools/classes
authorStephen Smalley <sds@tycho.nsa.gov>
Tue, 20 Mar 2018 15:59:10 +0000 (11:59 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 20 Mar 2018 20:29:17 +0000 (16:29 -0400)
commitfae566ef9a533a113416ff00d5038e2937a5e31b
treef2aaaeab76c5463c2608981f9628bc6b8aabd63a
parent74762f578eb5a58383f5dfb6988c95fde3301846
selinux: fix handling of uninitialized selinux state in get_bools/classes

If security_get_bools/classes are called before the selinux state is
initialized (i.e. before first policy load), then they should just
return immediately with no booleans/classes.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/services.c