diff options
author | Rafal Krypa <r.krypa@samsung.com> | 2012-11-27 10:29:07 -0500 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2013-03-19 17:15:41 -0400 |
commit | a87d79ad7cfa299aa14bb22758313dec33909875 (patch) | |
tree | 13e2c3f3ffb1cfec07150e175cdd6875099ea070 /security | |
parent | d15d9fad16f6aa459cf4926a1d3aba36b004e9a2 (diff) |
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
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/smack/smack_access.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c index db14689a21e0..2e397a88d410 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) | |||
252 | string[i++] = 'x'; | 252 | string[i++] = 'x'; |
253 | if (access & MAY_APPEND) | 253 | if (access & MAY_APPEND) |
254 | string[i++] = 'a'; | 254 | string[i++] = 'a'; |
255 | if (access & MAY_TRANSMUTE) | ||
256 | string[i++] = 't'; | ||
255 | string[i] = '\0'; | 257 | string[i] = '\0'; |
256 | } | 258 | } |
257 | /** | 259 | /** |