]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Smack: add missing support for transmute bit in smack_str_from_perm()
authorRafal Krypa <r.krypa@samsung.com>
Tue, 27 Nov 2012 15:29:07 +0000 (16:29 +0100)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 19 Mar 2013 21:15:41 +0000 (14:15 -0700)
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>
security/smack/smack_access.c

index db14689a21e02ad60bc8cd1ab5e5dc97f8419188..2e397a88d410f8b4d94118f605566d526812259e 100644 (file)
@@ -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';
 }
 /**