Skip to content

RFC ro hardening for the security subsystem

James Morris kernel-hardening 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4security: mark LSM hooks as __ro_after_initsecurity/apparmor/lsm.c security/commoncap.c security/loadpin/loadpin.c +5 more+8 -812 replies
2/4security: mark nf ops in SELinux and Smack as __ro_after_initsecurity/selinux/hooks.c security/smack/smack_netfilter.c+2 -212 replies
3/4integrity: mark default IMA rules as __ro_after_initsecurity/integrity/ima/ima_policy.c+4 -43 replies
4/4selinux: constify nlmsg permission tablessecurity/selinux/nlmsgtab.c+5 -52 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKees Cook
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [kernel-hardening] [RFC PATCH 0/4] ro hardening for the security subsystem

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(-)
Signature · 2 lines
James Morris
<[email protected]>