Re: [PATCH V40 03/29] security: Add a static lockdown policy LSM

From
David Howells <dhowells@redhat.com>
Date
2019-08-30 16:28:29
Also in
linux-api, lkml
Reply to
Matthew Garrett, 2019-08-20
Matthew Garrett [off-list ref] wrote:
+static char *lockdown_reasons[LOCKDOWN_CONFIDENTIALITY_MAX+1] = {
const char *const maybe?
quoted hunk ↗ jump to hunk
+static enum lockdown_reason lockdown_levels[] = {LOCKDOWN_NONE,
+						 LOCKDOWN_INTEGRITY_MAX,
+						 LOCKDOWN_CONFIDENTIALITY_MAX};
+
const?

Isn't this also a 1:1 mapping?
+static int lock_kernel_down(const char *where, enum lockdown_reason level)
Is the last parameter the reason or the level?  You're mixing the terms.

David
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