#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)
__init void landlock_add_fs_hooks(void)
{
security_add_hooks(landlock_hooks, ARRAY_SIZE(landlock_hooks),
- LANDLOCK_NAME);
+ &landlock_lsmid);
}