Re: [PATCH V40 04/29] lockdown: Enforce module signatures if the kernel is locked down

From
Matthew Garrett <hidden>
Date
2019-09-04 16:58:05
Also in
linux-security-module, lkml
Reply to
David Howells, 2019-08-30
On Fri, Aug 30, 2019 at 9:31 AM David Howells [off-list ref] wrote:
Matthew Garrett [off-list ref] wrote:
quoted
 enum lockdown_reason {
      LOCKDOWN_NONE,
+     LOCKDOWN_MODULE_SIGNATURE,
      LOCKDOWN_INTEGRITY_MAX,
      LOCKDOWN_CONFIDENTIALITY_MAX,
 };
Aren't you mixing disjoint sets?
The goal is to be able to check whether any given lockdown reason is a
matter of integrity or confidentiality in a straightforward way.
quoted
+     [LOCKDOWN_MODULE_SIGNATURE] = "unsigned module loading",
Wouldn't it be better to pass this string as a parameter to
security_locked_down()?
I thought about that, but it's not how any other LSM hooks behave. I
think it's probably easier to revisit that when we see how other LSMs
want to make use of the data.
Thread (52 messages) 52 messages, 11 authors, last reply 2022-01-05
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