diff options
author | Jarkko Sakkinen | 2011-09-08 09:12:01 +0200 |
---|---|---|
committer | Casey Schaufler | 2011-10-12 23:21:32 +0200 |
commit | 828716c28fe4aa232ea280ea8ed6fb103eefb6ac (patch) | |
tree | f75377cf3e770a9a67feb64fb8bef867735a975b /security/smack/smack.h | |
parent | TOMOYO: Fix quota and garbage collector. (diff) | |
download | kernel-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