#include <linux/cred.h>
#include <linux/lsm_hooks.h>
#include "common.h"
#include "cred.h"
#include "ruleset.h"
#include "setup.h"
static void hook_cred_transfer(struct cred *const new,
const struct cred *const old)
{ … }
static int hook_cred_prepare(struct cred *const new,
const struct cred *const old, const gfp_t gfp)
{ … }
static void hook_cred_free(struct cred *const cred)
{ … }
static struct security_hook_list landlock_hooks[] __ro_after_init = …;
__init void landlock_add_cred_hooks(void)
{ … }