Linux Security Modules development
 help / color / mirror / Atom feed
* [PATCH v2] ima: Add a space after printing LSM rules for readability
@ 2020-01-05  1:18 Clay Chang
  0 siblings, 0 replies; only message in thread
From: Clay Chang @ 2020-01-05  1:18 UTC (permalink / raw)
  To: zohar, dmitry.kasatkin, jmorris, serge
  Cc: linux-kernel, linux-security-module, linux-integrity, Clay Chang

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

Signed-off-by: Clay Chang <clayc@hpe.com>
---
 security/integrity/ima/ima_policy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c
index ef8dfd47c7e3..1a266e4f99bc 100644
--- a/security/integrity/ima/ima_policy.c
+++ b/security/integrity/ima/ima_policy.c
@@ -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)
-- 
2.16.6


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-05  1:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-05  1:18 [PATCH v2] ima: Add a space after printing LSM rules for readability Clay Chang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox