]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - security/tomoyo/tomoyo.c
security: mark LSM hooks as __ro_after_init
[mirror_ubuntu-hirsute-kernel.git] / security / tomoyo / tomoyo.c
index edc52d620f29cf7b027dd962ab0976a75eef3ba4..b5fb930349a99aa62c9f3d2bbc3545247440598f 100644 (file)
@@ -496,7 +496,7 @@ static int tomoyo_socket_sendmsg(struct socket *sock, struct msghdr *msg,
  * tomoyo_security_ops is a "struct security_operations" which is used for
  * registering TOMOYO.
  */
-static struct security_hook_list tomoyo_hooks[] = {
+static struct security_hook_list tomoyo_hooks[] __lsm_ro_after_init = {
        LSM_HOOK_INIT(cred_alloc_blank, tomoyo_cred_alloc_blank),
        LSM_HOOK_INIT(cred_prepare, tomoyo_cred_prepare),
        LSM_HOOK_INIT(cred_transfer, tomoyo_cred_transfer),