]> git.baikalelectronics.ru Git - kernel.git/commit
Smack: allow multiple labels in onlycap
authorRafal Krypa <r.krypa@samsung.com>
Tue, 2 Jun 2015 09:23:48 +0000 (11:23 +0200)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 2 Jun 2015 18:53:42 +0000 (11:53 -0700)
commit8c823d92d614175d3f7b6338ea7b2bab3e475688
treec526c2ae841b0fc358d29af69cddcdb63ae72431
parent5901e14b3c481a5a23ab44d460875c7d8bc31e9f
Smack: allow multiple labels in onlycap

Smack onlycap allows limiting of CAP_MAC_ADMIN and CAP_MAC_OVERRIDE to
processes running with the configured label. But having single privileged
label is not enough in some real use cases. On a complex system like Tizen,
there maybe few programs that need to configure Smack policy in run-time
and running them all with a single label is not always practical.
This patch extends onlycap feature for multiple labels. They are configured
in the same smackfs "onlycap" interface, separated by spaces.

Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Documentation/security/Smack.txt
security/smack/smack.h
security/smack/smack_access.c
security/smack/smackfs.c