summaryrefslogtreecommitdiffstats
path: root/security/smack/smack.h
diff options
context:
space:
mode:
authorJarkko Sakkinen2011-09-08 09:12:01 +0200
committerCasey Schaufler2011-10-12 23:21:32 +0200
commit828716c28fe4aa232ea280ea8ed6fb103eefb6ac (patch)
treef75377cf3e770a9a67feb64fb8bef867735a975b /security/smack/smack.h
parentTOMOYO: Fix quota and garbage collector. (diff)
downloadkernel-qcow2-linux-828716c28fe4aa232ea280ea8ed6fb103eefb6ac.tar.gz
kernel-qcow2-linux-828716c28fe4aa232ea280ea8ed6fb103eefb6ac.tar.xz
kernel-qcow2-linux-828716c28fe4aa232ea280ea8ed6fb103eefb6ac.zip
Smack: check permissions from user space (v2)
Adds a new file into SmackFS called 'access'. Wanted Smack permission is written into /smack/access. After that result can be read from the opened file. If access applies result contains 1 and otherwise 0. File access is protected from race conditions by using simple_transaction_get()/set() API. Fixes from the previous version: - Removed smack.h changes, refactoring left-over from previous version. - Removed #include <linux/smack.h>, refactoring left-over from previous version. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com> Signed-off-by: Casey Schaufler <cschaufler@cschaufler-intel.(none)>
Diffstat (limited to 'security/smack/smack.h')
0 files changed, 0 insertions, 0 deletions