diff options
author | James Morris <jmorris@namei.org> | 2017-02-14 08:18:51 -0500 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-03-05 19:00:15 -0500 |
commit | ca97d939db114c8d1619e10a3b82af8615372dae (patch) | |
tree | cb16c707c4015b2dcbfc1f783071b5980ddd9145 /security/security.c | |
parent | dd0859dccbe291cf8179a96390f5c0e45cb9af1d (diff) |
security: mark LSM hooks as __ro_after_init
Mark all of the registration hooks as __ro_after_init (via the
__lsm_ro_after_init macro).
Signed-off-by: James Morris <james.l.morris@oracle.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/security.c b/security/security.c index 905dad2811d3..d6d18a3721aa 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -1628,7 +1628,7 @@ int security_audit_rule_match(u32 secid, u32 field, u32 op, void *lsmrule, | |||
1628 | } | 1628 | } |
1629 | #endif /* CONFIG_AUDIT */ | 1629 | #endif /* CONFIG_AUDIT */ |
1630 | 1630 | ||
1631 | struct security_hook_heads security_hook_heads = { | 1631 | struct security_hook_heads security_hook_heads __lsm_ro_after_init = { |
1632 | .binder_set_context_mgr = | 1632 | .binder_set_context_mgr = |
1633 | LIST_HEAD_INIT(security_hook_heads.binder_set_context_mgr), | 1633 | LIST_HEAD_INIT(security_hook_heads.binder_set_context_mgr), |
1634 | .binder_transaction = | 1634 | .binder_transaction = |