landlock_ruleset
get_hierarchy(const struct landlock_ruleset *const domain, const size_t layer)
struct landlock_ruleset dom2 = {
static size_t get_denied_layer(const struct landlock_ruleset *const domain,
const struct landlock_ruleset dom = {
struct landlock_ruleset *const dom = landlock_cred(cred)->domain;
const struct landlock_ruleset *domain;
struct landlock_ruleset *domain;
static inline struct landlock_ruleset *landlock_get_current_domain(void)
static inline const struct landlock_ruleset *
static bool collect_domain_accesses(const struct landlock_ruleset *const domain,
struct landlock_ruleset *prev_dom;
int landlock_append_fs_rule(struct landlock_ruleset *const ruleset,
find_rule(const struct landlock_ruleset *const domain,
is_access_to_paths_allowed(const struct landlock_ruleset *const domain,
int landlock_append_fs_rule(struct landlock_ruleset *const ruleset,
int landlock_append_net_rule(struct landlock_ruleset *const ruleset,
int landlock_append_net_rule(struct landlock_ruleset *const ruleset,
landlock_append_net_rule(struct landlock_ruleset *const ruleset, const u16 port,
static struct rb_root *get_root(struct landlock_ruleset *const ruleset,
const struct landlock_ruleset ruleset = {
static int insert_rule(struct landlock_ruleset *const ruleset,
int landlock_insert_rule(struct landlock_ruleset *const ruleset,
static struct landlock_ruleset *create_ruleset(const u32 num_layers)
static int merge_tree(struct landlock_ruleset *const dst,
struct landlock_ruleset *const src,
struct landlock_ruleset *new_ruleset;
static int merge_ruleset(struct landlock_ruleset *const dst,
struct landlock_ruleset *const src)
static int inherit_tree(struct landlock_ruleset *const parent,
struct landlock_ruleset *const child,
static int inherit_ruleset(struct landlock_ruleset *const parent,
struct landlock_ruleset *const child)
static void free_ruleset(struct landlock_ruleset *const ruleset)
void landlock_put_ruleset(struct landlock_ruleset *const ruleset)
struct landlock_ruleset *ruleset;
ruleset = container_of(work, struct landlock_ruleset, work_free);
void landlock_put_ruleset_deferred(struct landlock_ruleset *const ruleset)
struct landlock_ruleset *
landlock_merge_ruleset(struct landlock_ruleset *const parent,
struct landlock_ruleset *const ruleset)
struct landlock_ruleset *new_dom __free(landlock_put_ruleset) = NULL;
struct landlock_ruleset *
landlock_find_rule(const struct landlock_ruleset *const ruleset,
root = get_root((struct landlock_ruleset *)ruleset, id.type);
struct landlock_ruleset *new_ruleset;
get_access_mask_t(const struct landlock_ruleset *const ruleset,
landlock_init_layer_masks(const struct landlock_ruleset *const domain,
struct landlock_ruleset *
void landlock_put_ruleset(struct landlock_ruleset *const ruleset);
void landlock_put_ruleset_deferred(struct landlock_ruleset *const ruleset);
DEFINE_FREE(landlock_put_ruleset, struct landlock_ruleset *,
int landlock_insert_rule(struct landlock_ruleset *const ruleset,
struct landlock_ruleset *
landlock_merge_ruleset(struct landlock_ruleset *const parent,
struct landlock_ruleset *const ruleset);
landlock_find_rule(const struct landlock_ruleset *const ruleset,
static inline void landlock_get_ruleset(struct landlock_ruleset *const ruleset)
landlock_union_access_masks(const struct landlock_ruleset *const domain)
landlock_add_fs_access_mask(struct landlock_ruleset *const ruleset,
landlock_add_net_access_mask(struct landlock_ruleset *const ruleset,
landlock_add_scope_mask(struct landlock_ruleset *const ruleset,
landlock_get_fs_access_mask(const struct landlock_ruleset *const ruleset,
landlock_get_net_access_mask(const struct landlock_ruleset *const ruleset,
landlock_get_scope_mask(const struct landlock_ruleset *const ruleset,
landlock_init_layer_masks(const struct landlock_ruleset *const domain,
struct landlock_ruleset *ruleset = filp->private_data;
struct landlock_ruleset *ruleset;
static struct landlock_ruleset *get_ruleset_from_fd(const int fd,
struct landlock_ruleset *ruleset;
static int add_rule_path_beneath(struct landlock_ruleset *const ruleset,
static int add_rule_net_port(struct landlock_ruleset *ruleset,
struct landlock_ruleset *ruleset __free(landlock_put_ruleset) = NULL;
struct landlock_ruleset *ruleset __free(landlock_put_ruleset) = NULL;
struct landlock_ruleset *const new_dom =
const struct landlock_ruleset *child_dom;
static bool domain_is_scoped(const struct landlock_ruleset *const client,
const struct landlock_ruleset *const server,
const struct landlock_ruleset *const domain)
const struct landlock_ruleset *dom_other;
static bool domain_scope_le(const struct landlock_ruleset *const parent,
const struct landlock_ruleset *const child)
static int domain_ptrace(const struct landlock_ruleset *const parent,
const struct landlock_ruleset *const child)
const struct landlock_ruleset *const child_dom =