summaryrefslogtreecommitdiffstats
path: root/security/smack
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2017-02-14 08:18:51 -0500
committerJames Morris <james.l.morris@oracle.com>2017-03-05 19:00:15 -0500
commitca97d939db114c8d1619e10a3b82af8615372dae (patch)
treecb16c707c4015b2dcbfc1f783071b5980ddd9145 /security/smack
parentdd0859dccbe291cf8179a96390f5c0e45cb9af1d (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/smack')
-rw-r--r--security/smack/smack_lsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index fc8fb31fc24f..927e60e622d1 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -4633,7 +4633,7 @@ static int smack_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen)
4633 return 0; 4633 return 0;
4634} 4634}
4635 4635
4636static struct security_hook_list smack_hooks[] = { 4636static struct security_hook_list smack_hooks[] __lsm_ro_after_init = {
4637 LSM_HOOK_INIT(ptrace_access_check, smack_ptrace_access_check), 4637 LSM_HOOK_INIT(ptrace_access_check, smack_ptrace_access_check),
4638 LSM_HOOK_INIT(ptrace_traceme, smack_ptrace_traceme), 4638 LSM_HOOK_INIT(ptrace_traceme, smack_ptrace_traceme),
4639 LSM_HOOK_INIT(syslog, smack_syslog), 4639 LSM_HOOK_INIT(syslog, smack_syslog),