All of lore.kernel.org
 help / color / mirror / Atom feed
* [kernel-hardening] [RFC PATCH 0/4] ro hardening for the security subsystem
@ 2017-02-13  5:31 James Morris
  2017-02-13 17:51 ` Kees Cook
  0 siblings, 1 reply; 2+ messages in thread
From: James Morris @ 2017-02-13  5:31 UTC (permalink / raw)
  To: linux-security-module; +Cc: kernel-hardening

Hi Folks,

Please review/test these patches which add some read-only hardening to the 
security subsystem.

In this series, the following are marked as __ro_after_init:

- LSM hooks
- Netfilter hooks used by security/
- the default IMA rules

I've also constified the SELinux Netlink permission tables, which will 
ensure they're located in an RO section.

---

James Morris (4):
  security: mark LSM hooks as __ro_after_init
  security: mark nf ops in SELinux and Smack as __ro_after_init
  integrity: mark default IMA rules as __ro_after_init
  selinux: constify nlmsg permission tables

 security/apparmor/lsm.c             |    2 +-
 security/commoncap.c                |    2 +-
 security/integrity/ima/ima_policy.c |    8 ++++----
 security/loadpin/loadpin.c          |    2 +-
 security/security.c                 |    2 +-
 security/selinux/hooks.c            |    4 ++--
 security/selinux/nlmsgtab.c         |   10 +++++-----
 security/smack/smack_lsm.c          |    2 +-
 security/smack/smack_netfilter.c    |    2 +-
 security/tomoyo/tomoyo.c            |    2 +-
 security/yama/yama_lsm.c            |    2 +-
 11 files changed, 19 insertions(+), 19 deletions(-)


-- 
James Morris
<jmorris@namei.org>

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

* Re: [kernel-hardening] [RFC PATCH 0/4] ro hardening for the security subsystem
  2017-02-13  5:31 [kernel-hardening] [RFC PATCH 0/4] ro hardening for the security subsystem James Morris
@ 2017-02-13 17:51 ` Kees Cook
  0 siblings, 0 replies; 2+ messages in thread
From: Kees Cook @ 2017-02-13 17:51 UTC (permalink / raw)
  To: James Morris; +Cc: linux-security-module, kernel-hardening

On Sun, Feb 12, 2017 at 9:31 PM, James Morris <jmorris@namei.org> wrote:
> Hi Folks,
>
> Please review/test these patches which add some read-only hardening to the
> security subsystem.
>
> In this series, the following are marked as __ro_after_init:
>
> - LSM hooks
> - Netfilter hooks used by security/
> - the default IMA rules
>
> I've also constified the SELinux Netlink permission tables, which will
> ensure they're located in an RO section.

A lot of the security subsystem is targeted during kernel write
exploits, so I think this is very nice change to have. Thanks for
doing this!

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

-Kees

-- 
Kees Cook
Pixel Security

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

end of thread, other threads:[~2017-02-13 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-13  5:31 [kernel-hardening] [RFC PATCH 0/4] ro hardening for the security subsystem James Morris
2017-02-13 17:51 ` Kees Cook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.