OSDN Git Service

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)
commit274f62e1e5c74e7cbc5c965ec02b7c590da4b2fe
treef2aaaeab76c5463c2608981f9628bc6b8aabd63a
parentd3cc2cd7c8d7adfb43075036878e319d5893280d
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