]> git.baikalelectronics.ru Git - kernel.git/commit
Kernel threads excluded from smack checks
authorRoman Kubiak <r.kubiak@samsung.com>
Mon, 10 Aug 2015 14:54:25 +0000 (16:54 +0200)
committerCasey Schaufler <casey@schaufler-ca.com>
Mon, 10 Aug 2015 22:15:50 +0000 (15:15 -0700)
commitc00037957d10e75220827d6fdaf4940ce2215543
tree110e07d1d5baab0d2614bb62a2c4d1d24389a4f1
parent0aafb3ddde2956b8fd8816dea5c04766ac20615c
Kernel threads excluded from smack checks

Adds an ignore case for kernel tasks,
so that they can access all resources.

Since kernel worker threads are spawned with
floor label, they are severely restricted by
Smack policy. It is not an issue without onlycap,
as these processes also run with root,
so CAP_MAC_OVERRIDE kicks in. But with onlycap
turned on, there is no way to change the label
for these processes.

Signed-off-by: Roman Kubiak <r.kubiak@samsung.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_access.c