[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 5 May 2022 21:23:01 +0800
From: Wang Weiyang <wangweiyang2@...wei.com>
To: <zohar@...ux.ibm.com>, <dmitry.kasatkin@...il.com>,
<jmorris@...ei.org>, <serge@...lyn.com>
CC: <linux-security-module@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <linux-integrity@...r.kernel.org>,
<wangweiyang2@...wei.com>
Subject: [PATCH 3/3] ima: Append line feed to ima/binary_runtime_measurements
There is no LF in binary_runtime_measurements output. It is little weird,
so append LF to it.
Example:
/ # cat /sys/kernel/security/ima/binary_runtime_measurements
...imaboot_aggregate/ #
Signed-off-by: Wang Weiyang <wangweiyang2@...wei.com>
---
security/integrity/ima/ima_fs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/security/integrity/ima/ima_fs.c b/security/integrity/ima/ima_fs.c
index cd1683dad3bf..0a2f9cb25b20 100644
--- a/security/integrity/ima/ima_fs.c
+++ b/security/integrity/ima/ima_fs.c
@@ -183,6 +183,7 @@ int ima_measurements_show(struct seq_file *m, void *v)
show = IMA_SHOW_BINARY_OLD_STRING_FMT;
field->field_show(m, show, &e->template_data[i]);
}
+ seq_puts(m, "\n");
return 0;
}
--
2.17.1
Powered by blists - more mailing lists