summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Krypa <r.krypa@samsung.com>2012-11-27 16:29:07 +0100
committerHeikki Krogerus <heikki.krogerus@linux.intel.com>2013-11-11 13:57:48 +0200
commitdd565ad45b1adf2080d0524bf0fa5c7a4b9c7fed (patch)
treee445179e510442c5545f6740486fb0cc3a3a8cd2
parentfc69e02cedba708ed116e26f0edf535380691cb6 (diff)
downloadkernel-mfld-blackbay-dd565ad45b1adf2080d0524bf0fa5c7a4b9c7fed.tar.gz
kernel-mfld-blackbay-dd565ad45b1adf2080d0524bf0fa5c7a4b9c7fed.tar.bz2
kernel-mfld-blackbay-dd565ad45b1adf2080d0524bf0fa5c7a4b9c7fed.zip
Smack: add missing support for transmute bit in smack_str_from_perm()
This fixes audit logs for granting or denial of permissions to show information about transmute bit. Targeted for git://git.gitorious.org/smack-next/kernel.git (Upstream commit id: a87d79ad7cfa299aa14bb22758313dec33909875) Signed-off-by: Rafal Krypa <r.krypa@samsung.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
-rw-r--r--security/smack/smack_access.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c
index 9cbff0e9885..425a6a212d1 100644
--- a/security/smack/smack_access.c
+++ b/security/smack/smack_access.c
@@ -252,6 +252,8 @@ static inline void smack_str_from_perm(char *string, int access)
string[i++] = 'x';
if (access & MAY_APPEND)
string[i++] = 'a';
+ if (access & MAY_TRANSMUTE)
+ string[i++] = 't';
string[i] = '\0';
}
/**