linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/8] LTP tests: load predefined policy, enhancements
@ 2024-12-13 22:20 Petr Vorel
  2024-12-13 22:20 ` [PATCH v2 1/8] IMA: Add TCB policy as an example for ima_measurements.sh Petr Vorel
                   ` (7 more replies)
  0 siblings, 8 replies; 24+ messages in thread
From: Petr Vorel @ 2024-12-13 22:20 UTC (permalink / raw)
  To: ltp; +Cc: Petr Vorel, Mimi Zohar, linux-integrity

Changes v1->v2:
* Removed ont_measure fsmagic=0x1021994 from TCB example policy
* More reasons to fail when uploading policy
  (testcases/kernel/security/integrity/ima/README.md)
* New commits:
  - tst_test.sh: IMA: Allow to disable LSM warnings and use it for IMA
  - ima_setup: Print warning when policy not readable
  - ima_kexec.sh: Move checking policy if readable to ima_setup.sh
  - IMA: Add example policy for ima_violations.sh
  - ima_violations.sh: Check for a required policy
  - [RFC] ima_kexec.sh: Relax result on unreadable policy to TCONF

TODO:
* ima_measurements.sh: check for example policy as an variant to
  ima_policy=tcb command line parameter.
* Use LTP shell loader for ima_boot_aggregate.c and ima_mmap.c


Petr Vorel (8):
  IMA: Add TCB policy as an example for ima_measurements.sh
  ima_setup.sh: Allow to load predefined policy
  tst_test.sh: IMA: Allow to disable LSM warnings and use it for IMA
  ima_setup: Print warning when policy not readable
  ima_kexec.sh: Move checking policy if readable to ima_setup.sh
  IMA: Add example policy for ima_violations.sh
  ima_violations.sh: Check for a required policy
  [RFC] ima_kexec.sh: Relax result on unreadable policy to TCONF

 .../kernel/security/integrity/ima/README.md   | 12 ++++
 .../ima/datafiles/ima_measurements/tcb.policy | 19 +++++
 .../ima_violations/violations.policy          |  1 +
 .../security/integrity/ima/tests/ima_kexec.sh | 10 +--
 .../integrity/ima/tests/ima_measurements.sh   | 17 ++++-
 .../security/integrity/ima/tests/ima_setup.sh | 72 ++++++++++++++++---
 .../integrity/ima/tests/ima_violations.sh     |  5 +-
 testcases/lib/tst_test.sh                     |  2 +-
 8 files changed, 118 insertions(+), 20 deletions(-)
 create mode 100644 testcases/kernel/security/integrity/ima/datafiles/ima_measurements/tcb.policy
 create mode 100644 testcases/kernel/security/integrity/ima/datafiles/ima_violations/violations.policy

-- 
2.47.1


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

end of thread, other threads:[~2025-01-07 18:29 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-13 22:20 [PATCH v2 0/8] LTP tests: load predefined policy, enhancements Petr Vorel
2024-12-13 22:20 ` [PATCH v2 1/8] IMA: Add TCB policy as an example for ima_measurements.sh Petr Vorel
2024-12-31 16:01   ` Mimi Zohar
2025-01-03 11:57     ` Petr Vorel
2024-12-13 22:20 ` [PATCH v2 2/8] ima_setup.sh: Allow to load predefined policy Petr Vorel
2024-12-30 20:43   ` Mimi Zohar
2024-12-31 10:00     ` Petr Vorel
2024-12-31 14:54       ` Mimi Zohar
2025-01-03 12:09         ` Petr Vorel
2025-01-03 12:18         ` Petr Vorel
2025-01-03 15:31           ` Mimi Zohar
2024-12-13 22:20 ` [PATCH v2 3/8] tst_test.sh: IMA: Allow to disable LSM warnings and use it for IMA Petr Vorel
2024-12-13 22:20 ` [PATCH v2 4/8] ima_setup: Print warning when policy not readable Petr Vorel
2024-12-13 22:20 ` [PATCH v2 5/8] ima_kexec.sh: Move checking policy if readable to ima_setup.sh Petr Vorel
2024-12-13 22:20 ` [PATCH v2 6/8] IMA: Add example policy for ima_violations.sh Petr Vorel
2024-12-31  3:43   ` Mimi Zohar
2024-12-31 10:40     ` Petr Vorel
2024-12-31 12:23     ` Petr Vorel
2024-12-31 15:34       ` Mimi Zohar
2025-01-03 19:02         ` Petr Vorel
2025-01-07 18:29           ` Mimi Zohar
2024-12-13 22:20 ` [PATCH v2 7/8] ima_violations.sh: Check for a required policy Petr Vorel
2024-12-31  3:42   ` Mimi Zohar
2024-12-13 22:20 ` [PATCH v2 8/8] [RFC] ima_kexec.sh: Relax result on unreadable policy to TCONF Petr Vorel

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).