Commit c195372
committed
IMA: Add TCB policy as an example for ima_measurements.sh
ima_policy=tcb specification taken from IMA docs [1], with updating
tmpfs policy to limit dont_measure to func=FILE_CHECK. This allows to do
extra measurements, e.g. kexec boot command line, see kernel commit
7eef7c8bac9a ("ima: limit the builtin 'tcb' dont_measure tmpfs policy rule")
[1] https://ima-doc.readthedocs.io/en/latest/ima-policy.html#ima-policy-tcb
Link: https://lore.kernel.org/ltp/20250114112915.610297-3-pvorel@suse.cz/
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>1 parent ba17059 commit c195372
File tree
3 files changed
+33
-2
lines changed- testcases/kernel/security/integrity/ima/datafiles
- ima_measurements
3 files changed
+33
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments