]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ima: Add a space after printing LSM rules for readability
authorClay Chang <clayc@hpe.com>
Sun, 5 Jan 2020 01:18:13 +0000 (09:18 +0800)
committerMimi Zohar <zohar@linux.ibm.com>
Wed, 22 Jan 2020 20:22:51 +0000 (15:22 -0500)
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>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_policy.c

index a4dde9d575b2e819a7332eb3cfbd29169a7e9fed..9c0ea574a48c9763a2ec0648f46fc4ee57fa6050 100644 (file)
@@ -1579,6 +1579,7 @@ int ima_policy_show(struct seq_file *m, void *v)
                                           (char *)entry->lsm[i].args_p);
                                break;
                        }
+                       seq_puts(m, " ");
                }
        }
        if (entry->template)