Skip to contentSkip to conversation

ima: Add a space after printing LSM rules for readability

PATCH New Clay Chang 1 participant 1 message Jan 5, 2020

Subsystems (4)
lore
Share & tools
lore

Clay Chang

author
#0 lore raw

PATCH v2 1/1 ima: Add a space after printing LSM rules for readability

When reading ima_policy from securityfs, there is a missing space between output string of LSM rules and the remaining rules.

---
 security/integrity/ima/ima_policy.c | 1 +
 1 file changed, 1 insertion(+)
security/integrity/ima/ima_policy.c +1 -0
index ef8dfd47c7e3..1a266e4f99bc 100644
@@ -1496,6 +1496,7 @@ int ima_policy_show(struct seq_file *m, void *v)
 					   (char *)entry->lsm[i].args_p);
 				break;
 			}
+			seq_puts(m, " ");
 		}
 	}
 	if (entry->template)
Signature · 1 line
2.16.6