]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - security/landlock/fs.c
UBUNTU: SAUCE: LSM: Create and manage the lsmblob data structure.
[mirror_ubuntu-jammy-kernel.git] / security / landlock / fs.c
index 97b8e421f617178489f948a71d71cdefa7079982..5ff3fa3e789ec5eb76a91de342191b3b3e0180f1 100644 (file)
 #include "ruleset.h"
 #include "setup.h"
 
+static struct lsm_id landlock_lsmid __lsm_ro_after_init = {
+       .lsm  = "landlock",
+       .slot = LSMBLOB_NEEDED
+};
+
 /* Underlying object management */
 
 static void release_inode(struct landlock_object *const object)
@@ -688,5 +693,5 @@ static struct security_hook_list landlock_hooks[] __lsm_ro_after_init = {
 __init void landlock_add_fs_hooks(void)
 {
        security_add_hooks(landlock_hooks, ARRAY_SIZE(landlock_hooks),
-                       LANDLOCK_NAME);
+                       &landlock_lsmid);
 }