]> git.baikalelectronics.ru Git - kernel.git/commit
Smack: Minor initialisation improvement
authorJosé Bollo <jobol@nonadev.net>
Fri, 2 Oct 2015 13:15:56 +0000 (15:15 +0200)
committerCasey Schaufler <casey@schaufler-ca.com>
Fri, 9 Oct 2015 22:13:24 +0000 (15:13 -0700)
commit2809057f15d81d4a302a685be2d2892fba220658
tree5e16c920a3229464a37b0cea3ed122f36650eac6
parent0248715b94e838c6cf09f9507d6c5c4f7e944b67
Smack: Minor initialisation improvement

This change has two goals:
 - delay the setting of 'smack_enabled' until
   it will be really effective
 - ensure that smackfs is valid only if 'smack_enabled'
   is set (it is already the case in smack_netfilter.c)

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c
security/smack/smackfs.c