Symbol: dev_cgroup
security/device_cgroup.c
110
list_for_each_entry(walk, &dev_cgroup->exceptions, list) {
security/device_cgroup.c
124
list_add_tail_rcu(&excopy->list, &dev_cgroup->exceptions);
security/device_cgroup.c
131
static void dev_exception_rm(struct dev_cgroup *dev_cgroup,
security/device_cgroup.c
138
list_for_each_entry_safe(walk, tmp, &dev_cgroup->exceptions, list) {
security/device_cgroup.c
154
static void __dev_exception_clean(struct dev_cgroup *dev_cgroup)
security/device_cgroup.c
158
list_for_each_entry_safe(ex, tmp, &dev_cgroup->exceptions, list) {
security/device_cgroup.c
170
static void dev_exception_clean(struct dev_cgroup *dev_cgroup)
security/device_cgroup.c
174
__dev_exception_clean(dev_cgroup);
security/device_cgroup.c
177
static inline bool is_devcg_online(const struct dev_cgroup *devcg)
security/device_cgroup.c
190
struct dev_cgroup *dev_cgroup = css_to_devcgroup(css);
security/device_cgroup.c
191
struct dev_cgroup *parent_dev_cgroup = css_to_devcgroup(css->parent);
security/device_cgroup.c
197
dev_cgroup->behavior = DEVCG_DEFAULT_ALLOW;
security/device_cgroup.c
199
ret = dev_exceptions_copy(&dev_cgroup->exceptions,
security/device_cgroup.c
202
dev_cgroup->behavior = parent_dev_cgroup->behavior;
security/device_cgroup.c
211
struct dev_cgroup *dev_cgroup = css_to_devcgroup(css);
security/device_cgroup.c
214
dev_cgroup->behavior = DEVCG_DEFAULT_NONE;
security/device_cgroup.c
224
struct dev_cgroup *dev_cgroup;
security/device_cgroup.c
226
dev_cgroup = kzalloc_obj(*dev_cgroup);
security/device_cgroup.c
227
if (!dev_cgroup)
security/device_cgroup.c
229
INIT_LIST_HEAD(&dev_cgroup->exceptions);
security/device_cgroup.c
230
dev_cgroup->behavior = DEVCG_DEFAULT_NONE;
security/device_cgroup.c
232
return &dev_cgroup->css;
security/device_cgroup.c
237
struct dev_cgroup *dev_cgroup = css_to_devcgroup(css);
security/device_cgroup.c
239
__dev_exception_clean(dev_cgroup);
security/device_cgroup.c
240
kfree(dev_cgroup);
security/device_cgroup.c
279
struct dev_cgroup *devcgroup = css_to_devcgroup(seq_css(m));
security/device_cgroup.c
398
static bool verify_new_ex(struct dev_cgroup *dev_cgroup,
security/device_cgroup.c
408
if (dev_cgroup->behavior == DEVCG_DEFAULT_ALLOW) {
security/device_cgroup.c
421
match = match_exception_partial(&dev_cgroup->exceptions,
security/device_cgroup.c
438
match = match_exception(&dev_cgroup->exceptions, refex->type,
security/device_cgroup.c
456
static int parent_has_perm(struct dev_cgroup *childcg,
security/device_cgroup.c
459
struct dev_cgroup *parent = css_to_devcgroup(childcg->css.parent);
security/device_cgroup.c
477
static bool parent_allows_removal(struct dev_cgroup *childcg,
security/device_cgroup.c
480
struct dev_cgroup *parent = css_to_devcgroup(childcg->css.parent);
security/device_cgroup.c
49
static inline struct dev_cgroup *css_to_devcgroup(struct cgroup_subsys_state *s)
security/device_cgroup.c
503
static inline int may_allow_all(struct dev_cgroup *parent)
security/device_cgroup.c
51
return s ? container_of(s, struct dev_cgroup, css) : NULL;
security/device_cgroup.c
523
static void revalidate_active_exceptions(struct dev_cgroup *devcg)
security/device_cgroup.c
54
static inline struct dev_cgroup *task_devcgroup(struct task_struct *task)
security/device_cgroup.c
542
static int propagate_exception(struct dev_cgroup *devcg_root,
security/device_cgroup.c
551
struct dev_cgroup *devcg = css_to_devcgroup(pos);
security/device_cgroup.c
604
static int devcgroup_update_access(struct dev_cgroup *devcgroup,
security/device_cgroup.c
611
struct dev_cgroup *parent = css_to_devcgroup(devcgroup->css.parent);
security/device_cgroup.c
612
struct dev_cgroup tmp_devcgrp;
security/device_cgroup.c
829
struct dev_cgroup *dev_cgroup;
security/device_cgroup.c
833
dev_cgroup = task_devcgroup(current);
security/device_cgroup.c
834
if (dev_cgroup->behavior == DEVCG_DEFAULT_ALLOW)
security/device_cgroup.c
836
rc = !match_exception_partial(&dev_cgroup->exceptions,
security/device_cgroup.c
840
rc = match_exception(&dev_cgroup->exceptions, type, major,
security/device_cgroup.c
99
static int dev_exception_add(struct dev_cgroup *dev_cgroup,
tools/testing/selftests/bpf/prog_tests/cgroup_dev.c
80
struct dev_cgroup *skel;