diff options
author | James Morris <jmorris@namei.org> | 2017-02-14 14:18:51 +0100 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-03-06 01:00:15 +0100 |
commit | ca97d939db114c8d1619e10a3b82af8615372dae (patch) | |
tree | cb16c707c4015b2dcbfc1f783071b5980ddd9145 /security/yama/yama_lsm.c | |
parent | security: introduce CONFIG_SECURITY_WRITABLE_HOOKS (diff) | |
download | linux-ca97d939db114c8d1619e10a3b82af8615372dae.tar.xz linux-ca97d939db114c8d1619e10a3b82af8615372dae.zip |
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/yama/yama_lsm.c')
-rw-r--r-- | security/yama/yama_lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c index 88271a3bf37f..8298e094f4f7 100644 --- a/security/yama/yama_lsm.c +++ b/security/yama/yama_lsm.c @@ -428,7 +428,7 @@ int yama_ptrace_traceme(struct task_struct *parent) return rc; } -static struct security_hook_list yama_hooks[] = { +static struct security_hook_list yama_hooks[] __lsm_ro_after_init = { LSM_HOOK_INIT(ptrace_access_check, yama_ptrace_access_check), LSM_HOOK_INIT(ptrace_traceme, yama_ptrace_traceme), LSM_HOOK_INIT(task_prctl, yama_task_prctl), |