Re: [PATCH v6 03/17] ima: Namespace audit status flags

From
Stefan Berger <stefanb@linux.ibm.com>
Date
2021-12-16 02:39:07
Also in
linux-integrity, lkml
Reply to
Mimi Zohar, 2021-12-15
On 12/15/21 16:15, Mimi Zohar wrote:
On Fri, 2021-12-10 at 14:47 -0500, Stefan Berger wrote:
quoted
From: Mehmet Kayaalp <redacted>

The iint cache stores whether the file is measured, appraised, audited
etc. This patch moves the IMA_AUDITED flag into the per-namespace
ns_status, enabling IMA audit mechanism to audit the same file each time
it is accessed in a new namespace.

The ns_status is not looked up if the CONFIG_IMA_NS is disabled or if
any of the IMA_NS_STATUS_ACTIONS (currently only IMA_AUDIT) is not
enabled.
^none of the ... are enabled.
You want me to rephrase it?

thanks,

Mimi
quoted
Read and write operations on the iint flags is replaced with function
calls. For reading, iint_flags() returns the bitwise AND of iint->flags
and ns_status->flags. The ns_status flags are masked with
IMA_NS_STATUS_FLAGS (currently only IMA_AUDITED). Similarly
set_iint_flags() only writes the masked portion to the ns_status flags,
while the iint flags is set as before. The ns_status parameter added to
ima_audit_measurement() is used with the above functions to query and
set the ns_status flags.
Thread (40 messages) 40 messages, 5 authors, last reply 2021-12-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help