We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8e52e commit 8967719Copy full SHA for 8967719
security/integrity/ima/ima_policy.c
@@ -1967,6 +1967,14 @@ int ima_policy_show(struct seq_file *m, void *v)
1967
1968
rcu_read_lock();
1969
1970
+ /* Do not print rules with inactive LSM labels */
1971
+ for (i = 0; i < MAX_LSM_RULES; i++) {
1972
+ if (entry->lsm[i].args_p && !entry->lsm[i].rule) {
1973
+ rcu_read_unlock();
1974
+ return 0;
1975
+ }
1976
1977
+
1978
if (entry->action & MEASURE)
1979
seq_puts(m, pt(Opt_measure));
1980
if (entry->action & DONT_MEASURE)
0 commit comments