File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
testcases/kernel/security/integrity/ima/tests Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ print_ima_config()
162
162
# When missing CONFIG_IMA_READ_POLICY=y on required policy convert: test, but convert TFAIL => TCONF.
163
163
# $REQUIRED_POLICY_CONTENT: file with required IMA policy
164
164
# $REQUIRED_BUILTIN_POLICY: IMA policy specified as kernel cmdline
165
+ # return: 1 if need to load policy 0 otherwise
165
166
verify_ima_policy ()
166
167
{
167
168
local check_content line
@@ -194,8 +195,9 @@ verify_ima_policy()
194
195
return 1
195
196
fi
196
197
done < $file
198
+ tst_res TINFO " SUT has required policy content"
197
199
else
198
- tst_res TINFO " policy is not readable, failure will be treated as TCONF"
200
+ tst_res TINFO " WARNING: policy is not readable, failure will be treated as TCONF"
199
201
IMA_FAIL=" TCONF"
200
202
IMA_BROK=" TCONF"
201
203
return 1
You can’t perform that action at this time.
0 commit comments