Commit b2ea426
ima_selinux.sh: test2 assumes CONFIG_IMA_DISABLE_HTABLE is configured
test2 uses the last "selinux-state" record stored in the IMA measurement
list to determine whether SELinux is in enforcing mode and then compares
it to the selinux enforce file status.
The tst_update_selinux_state flips the SELinux enforce status
(/sys/fs/selinux/enforce) to force a new "selinux-state" record to be
appended to the IMA measurement list. However, this only happens when
CONFIG_IMA_DISABLE_HTABLE is configured.
Don't fail the test when CONFIG_IMA_DISABLE_HTABLE is not configured.
Link: https://lore.kernel.org/ltp/20260821200620.902699-1-zohar@linux.ibm.com/
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
[ pvorel: TPASS => TCONF ]
Signed-off-by: Petr Vorel <pvorel@suse.cz>1 parent 6e96605 commit b2ea426
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
151 | 155 | | |
152 | 156 | | |
153 | 157 | | |
| |||
0 commit comments