Lines Matching refs:type
37 short type; member
111 if (walk->type != ex->type) in dev_exception_add()
139 if (walk->type != ex->type) in dev_exception_rm()
262 static char type_to_char(short type) in type_to_char() argument
264 if (type == DEVCG_DEV_ALL) in type_to_char()
266 if (type == DEVCG_DEV_CHAR) in type_to_char()
268 if (type == DEVCG_DEV_BLOCK) in type_to_char()
305 seq_printf(m, "%c %s:%s %s\n", type_to_char(ex->type), in devcgroup_seq_show()
327 static bool match_exception(struct list_head *exceptions, short type, in match_exception() argument
333 if ((type & DEVCG_DEV_BLOCK) && !(ex->type & DEVCG_DEV_BLOCK)) in match_exception()
335 if ((type & DEVCG_DEV_CHAR) && !(ex->type & DEVCG_DEV_CHAR)) in match_exception()
364 static bool match_exception_partial(struct list_head *exceptions, short type, in match_exception_partial() argument
371 if ((type & DEVCG_DEV_BLOCK) && !(ex->type & DEVCG_DEV_BLOCK)) in match_exception_partial()
373 if ((type & DEVCG_DEV_CHAR) && !(ex->type & DEVCG_DEV_CHAR)) in match_exception_partial()
428 refex->type, in verify_new_ex()
444 match = match_exception(&dev_cgroup->exceptions, refex->type, in verify_new_ex()
499 return !match_exception_partial(&parent->exceptions, ex->type, in parent_allows_removal()
670 ex.type = DEVCG_DEV_BLOCK; in devcgroup_update_access()
673 ex.type = DEVCG_DEV_CHAR; in devcgroup_update_access()
832 static int devcgroup_legacy_check_permission(short type, u32 major, u32 minor, in devcgroup_legacy_check_permission() argument
843 type, major, minor, access); in devcgroup_legacy_check_permission()
846 rc = match_exception(&dev_cgroup->exceptions, type, major, in devcgroup_legacy_check_permission()
860 int devcgroup_check_permission(short type, u32 major, u32 minor, short access) in devcgroup_check_permission() argument
862 int rc = BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(type, major, minor, access); in devcgroup_check_permission()
868 return devcgroup_legacy_check_permission(type, major, minor, access); in devcgroup_check_permission()