mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Adding YAMA hooks also when YAMA is not stacked.
@ 2015-07-31  7:55 Salvatore Mesoraca
  2015-07-31 19:09 ` Kees Cook
  2015-08-03  5:10 ` James Morris
  0 siblings, 2 replies; 5+ messages in thread
From: Salvatore Mesoraca @ 2015-07-31  7:55 UTC (permalink / raw)
  To: linux-kernel, linux-security-module
  Cc: James Morris, Kees Cook, Casey Schaufler, Salvatore Mesoraca, trivial

Without this patch YAMA will not work at all if it is chosen
as the primary LSM instead of being "stacked".

Signed-off-by: Salvatore Mesoraca <s.mesoraca16@gmail.com>
---
 security/yama/yama_lsm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c
index 9ed3250..5ebb896 100644
--- a/security/yama/yama_lsm.c
+++ b/security/yama/yama_lsm.c
@@ -406,6 +406,7 @@ static __init int yama_init(void)
      */
     if (!security_module_enable("yama"))
         return 0;
+    yama_add_hooks();
 #endif
     pr_info("Yama: becoming mindful.\n");

--
2.3.6

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

* Re: [PATCH] Adding YAMA hooks also when YAMA is not stacked.
  2015-07-31  7:55 [PATCH] Adding YAMA hooks also when YAMA is not stacked Salvatore Mesoraca
@ 2015-07-31 19:09 ` Kees Cook
  2015-08-02  8:12   ` Salvatore Mesoraca
  2015-08-03  5:10 ` James Morris
  1 sibling, 1 reply; 5+ messages in thread
From: Kees Cook @ 2015-07-31 19:09 UTC (permalink / raw)
  To: Salvatore Mesoraca
  Cc: LKML, linux-security-module, James Morris, Casey Schaufler, trivial

On Fri, Jul 31, 2015 at 12:55 AM, Salvatore Mesoraca
<s.mesoraca16@gmail.com> wrote:
> Without this patch YAMA will not work at all if it is chosen
> as the primary LSM instead of being "stacked".

Ah! Good catch, thank you! CONFIG based stacking for Yama will be
removed 4.3, but this is appropriate for fixing in 4.2. James, can you
take this and send it to Linus for 4.2-rc5?

Acked-by: Kees Cook <keescook@chromium.org>

-Kees

>
> Signed-off-by: Salvatore Mesoraca <s.mesoraca16@gmail.com>
> ---
>  security/yama/yama_lsm.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c
> index 9ed3250..5ebb896 100644
> --- a/security/yama/yama_lsm.c
> +++ b/security/yama/yama_lsm.c
> @@ -406,6 +406,7 @@ static __init int yama_init(void)
>       */
>      if (!security_module_enable("yama"))
>          return 0;
> +    yama_add_hooks();
>  #endif
>      pr_info("Yama: becoming mindful.\n");
>
> --
> 2.3.6



-- 
Kees Cook
Chrome OS Security

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

* Re: [PATCH] Adding YAMA hooks also when YAMA is not stacked.
  2015-07-31 19:09 ` Kees Cook
@ 2015-08-02  8:12   ` Salvatore Mesoraca
  0 siblings, 0 replies; 5+ messages in thread
From: Salvatore Mesoraca @ 2015-08-02  8:12 UTC (permalink / raw)
  To: Kees Cook
  Cc: LKML, linux-security-module, James Morris, Casey Schaufler, trivial

> Ah! Good catch, thank you! CONFIG based stacking for Yama will be
> removed 4.3, but this is appropriate for fixing in 4.2.

Thank you very much for your time!

Salvatore Mesoraca

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

* Re: [PATCH] Adding YAMA hooks also when YAMA is not stacked.
  2015-07-31  7:55 [PATCH] Adding YAMA hooks also when YAMA is not stacked Salvatore Mesoraca
  2015-07-31 19:09 ` Kees Cook
@ 2015-08-03  5:10 ` James Morris
  2015-08-03 10:17   ` Salvatore Mesoraca
  1 sibling, 1 reply; 5+ messages in thread
From: James Morris @ 2015-08-03  5:10 UTC (permalink / raw)
  To: Salvatore Mesoraca
  Cc: linux-kernel, linux-security-module, James Morris, Kees Cook,
	Casey Schaufler, trivial

On Fri, 31 Jul 2015, Salvatore Mesoraca wrote:

> Without this patch YAMA will not work at all if it is chosen
> as the primary LSM instead of being "stacked".
> 
> Signed-off-by: Salvatore Mesoraca <s.mesoraca16@gmail.com>
> ---
>  security/yama/yama_lsm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c
> index 9ed3250..5ebb896 100644
> --- a/security/yama/yama_lsm.c
> +++ b/security/yama/yama_lsm.c
> @@ -406,6 +406,7 @@ static __init int yama_init(void)
>       */
>      if (!security_module_enable("yama"))
>          return 0;
> +    yama_add_hooks();
>  #endif
>      pr_info("Yama: becoming mindful.\n");

It looks like your mailer is converting tabs to spaces, please fix and 
resend.


-- 
James Morris
<jmorris@namei.org>


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

* Re: [PATCH] Adding YAMA hooks also when YAMA is not stacked.
  2015-08-03  5:10 ` James Morris
@ 2015-08-03 10:17   ` Salvatore Mesoraca
  0 siblings, 0 replies; 5+ messages in thread
From: Salvatore Mesoraca @ 2015-08-03 10:17 UTC (permalink / raw)
  To: James Morris
  Cc: linux-kernel, linux-security-module, James Morris, Kees Cook,
	Casey Schaufler, trivial

> It looks like your mailer is converting tabs to spaces, please fix and
> resend.

I'm sorry for this. I'm resending a fixed V2.

Salvatore Mesoraca

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

end of thread, other threads:[~2015-08-03 10:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-31  7:55 [PATCH] Adding YAMA hooks also when YAMA is not stacked Salvatore Mesoraca
2015-07-31 19:09 ` Kees Cook
2015-08-02  8:12   ` Salvatore Mesoraca
2015-08-03  5:10 ` James Morris
2015-08-03 10:17   ` Salvatore Mesoraca

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

all inboxes | Powered by JetHome®