linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] security: Always enable integrity LSM
@ 2023-03-09  8:54 Roberto Sassu
  2023-03-09  8:54 ` [PATCH v3 1/3] security: Introduce LSM_ORDER_LAST and set it for the " Roberto Sassu
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Roberto Sassu @ 2023-03-09  8:54 UTC (permalink / raw)
  To: zohar, dmitry.kasatkin, paul, jmorris, serge, mic
  Cc: linux-integrity, linux-security-module, bpf, linux-kernel,
	keescook, Roberto Sassu

From: Roberto Sassu <roberto.sassu@huawei.com>

Since the integrity (including IMA and EVM) functions are currently always
called by the LSM infrastructure, and always after all LSMs, formalize
these requirements by introducing a new LSM ordering called LSM_ORDER_LAST,
and set it for the 'integrity' LSM (patch 1).

Consequently, revert commit 92063f3ca73a ("integrity: double check
iint_cache was initialized"), as the double check becomes always verified
(patch 2), and remove 'integrity' from the list of LSMs in
security/Kconfig (patch 3).

Changelog:

v2:
- Fix commit message in patch 1 (suggested by Mimi)
- Bump version of patch 2 (v1 -> v3) to make one patch set
- Add patch 3 (suggested by Mimi)

v1:
- Add comment for LSM_ORDER_LAST definition (suggested by Mimi)
- Add Fixes tag (suggested by Mimi)
- Do minor corrections in the commit messages (suggested by Mimi and
  Stefan)

Roberto Sassu (3):
  security: Introduce LSM_ORDER_LAST and set it for the integrity LSM
  Revert "integrity: double check iint_cache was initialized"
  security: Remove integrity from the LSM list in Kconfig

 include/linux/lsm_hooks.h |  1 +
 security/Kconfig          | 10 +++++-----
 security/integrity/iint.c |  9 +--------
 security/security.c       | 12 +++++++++---
 4 files changed, 16 insertions(+), 16 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2023-03-10 19:59 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-09  8:54 [PATCH v3 0/3] security: Always enable integrity LSM Roberto Sassu
2023-03-09  8:54 ` [PATCH v3 1/3] security: Introduce LSM_ORDER_LAST and set it for the " Roberto Sassu
2023-03-09 13:20   ` Mimi Zohar
2023-03-09 22:04     ` Paul Moore
2023-03-10 13:38       ` Mimi Zohar
2023-03-10 16:22         ` Paul Moore
2023-03-10 16:33           ` Roberto Sassu
2023-03-10 19:59             ` Mimi Zohar
2023-03-09 23:44   ` Paul Moore
2023-03-10  7:57     ` Roberto Sassu
2023-03-09  8:54 ` [PATCH v3 2/3] Revert "integrity: double check iint_cache was initialized" Roberto Sassu
2023-03-09 13:20   ` Mimi Zohar
2023-03-09  8:54 ` [PATCH v3 3/3] security: Remove integrity from the LSM list in Kconfig Roberto Sassu
2023-03-09 13:20   ` Mimi Zohar
2023-03-09 13:29     ` Roberto Sassu
2023-03-09 23:45   ` Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).