• Home
  • Raw
  • Download

Lines Matching full:access

37 	short access;  member
117 walk->access |= ex->access; in dev_exception_add()
145 walk->access &= ~ex->access; in dev_exception_rm()
146 if (!walk->access) { in dev_exception_rm()
249 static void set_access(char *acc, short access) in set_access() argument
253 if (access & DEVCG_ACC_READ) in set_access()
255 if (access & DEVCG_ACC_WRITE) in set_access()
257 if (access & DEVCG_ACC_MKNOD) in set_access()
301 set_access(acc, ex->access); in devcgroup_seq_show()
319 * @access: permission mask (DEVCG_ACC_READ, DEVCG_ACC_WRITE, DEVCG_ACC_MKNOD)
327 u32 major, u32 minor, short access) in match_exception() argument
340 /* provided access cannot have more than the exception rule */ in match_exception()
341 if (access & (~ex->access)) in match_exception()
354 * @access: permission mask (DEVCG_ACC_READ, DEVCG_ACC_WRITE, DEVCG_ACC_MKNOD)
358 * used to make sure no extra access is being granted that is forbidden by
364 u32 major, u32 minor, short access) in match_exception_partial() argument
384 * an exception, all its access bits shouldn't match the in match_exception_partial()
385 * exception's access bits in match_exception_partial()
387 if (!(access & ex->access)) in match_exception_partial()
430 refex->access); in verify_new_ex()
439 * the new exception will add access to more devices and must in verify_new_ex()
445 refex->access); in verify_new_ex()
477 * be checked if removing it will give the child cgroup more access than the
490 /* It's always allowed to remove access to devices */ in parent_allows_removal()
499 ex->major, ex->minor, ex->access); in parent_allows_removal()
561 * methods), and online ones are safe to access outside RCU in propagate_exception()
606 * new access is only allowed if you're in the top-level cgroup, or your
607 * parent cgroup has the access you're asking for.
725 ex.access |= DEVCG_ACC_READ; in devcgroup_update_access()
728 ex.access |= DEVCG_ACC_WRITE; in devcgroup_update_access()
731 ex.access |= DEVCG_ACC_MKNOD; in devcgroup_update_access()
828 * @access: combination of DEVCG_ACC_WRITE, DEVCG_ACC_READ and DEVCG_ACC_MKNOD
833 short access) in devcgroup_legacy_check_permission() argument
843 type, major, minor, access); in devcgroup_legacy_check_permission()
847 minor, access); 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()