From: Jarkko Sakkinen Date: Thu, 8 Sep 2011 07:12:01 +0000 (+0300) Subject: Smack: check permissions from user space (v2) X-Git-Tag: v3.2-rc1~190^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=828716c28fe4aa232ea280ea8ed6fb103eefb6ac;p=pandora-kernel.git 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 , refactoring left-over from previous version. Signed-off-by: Jarkko Sakkinen Signed-off-by: Casey Schaufler --- Reading git-diff-tree failed