public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Smack: add missing support for transmute bit in smack_str_from_perm()
@ 2012-11-27 15:29 Rafal Krypa
  2012-11-27 17:23 ` Casey Schaufler
  2013-01-09 19:17 ` Casey Schaufler
  0 siblings, 2 replies; 3+ messages in thread
From: Rafal Krypa @ 2012-11-27 15:29 UTC (permalink / raw)
  To: Casey Schaufler; +Cc: linux-security-module, linux-kernel, Rafal Krypa

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 |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c
index db14689..2e397a8 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';
 }
 /**
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Smack: add missing support for transmute bit in smack_str_from_perm()
  2012-11-27 15:29 [PATCH] Smack: add missing support for transmute bit in smack_str_from_perm() Rafal Krypa
@ 2012-11-27 17:23 ` Casey Schaufler
  2013-01-09 19:17 ` Casey Schaufler
  1 sibling, 0 replies; 3+ messages in thread
From: Casey Schaufler @ 2012-11-27 17:23 UTC (permalink / raw)
  To: Rafal Krypa; +Cc: linux-security-module, linux-kernel, Casey Schaufler

On 11/27/2012 7:29 AM, Rafal Krypa wrote:
> 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

I will queue this for 3.9 as I've just submitted the 3.8 Smack
changes.

>
> Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
> ---
>  security/smack/smack_access.c |    2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c
> index db14689..2e397a8 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';
>  }
>  /**


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Smack: add missing support for transmute bit in smack_str_from_perm()
  2012-11-27 15:29 [PATCH] Smack: add missing support for transmute bit in smack_str_from_perm() Rafal Krypa
  2012-11-27 17:23 ` Casey Schaufler
@ 2013-01-09 19:17 ` Casey Schaufler
  1 sibling, 0 replies; 3+ messages in thread
From: Casey Schaufler @ 2013-01-09 19:17 UTC (permalink / raw)
  To: Rafal Krypa; +Cc: linux-security-module, linux-kernel, Casey Schaufler

On 11/27/2012 7:29 AM, Rafal Krypa wrote:
> 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>

Applied to git://git.gitorious.org/smack-next/kernel.git#stage-for-3.9


> ---
>  security/smack/smack_access.c |    2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c
> index db14689..2e397a8 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';
>  }
>  /**


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-09 19:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 15:29 [PATCH] Smack: add missing support for transmute bit in smack_str_from_perm() Rafal Krypa
2012-11-27 17:23 ` Casey Schaufler
2013-01-09 19:17 ` Casey Schaufler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox