Home
last modified time | relevance | path

Searched refs:cap_raised (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/security/apparmor/
Dcapability.c77 !cap_raised(rules->caps.audit, cap))) in audit_caps()
81 cap_raised(rules->caps.kill, cap)) { in audit_caps()
83 } else if (cap_raised(rules->caps.quiet, cap) && in audit_caps()
92 if (profile == ent->profile && cap_raised(ent->caps, cap)) { in audit_caps()
123 if (cap_raised(rules->caps.allow, cap) && in profile_capable()
124 !cap_raised(rules->caps.denied, cap)) in profile_capable()
/Linux-v6.6/security/
Dcommoncap.c78 return cap_raised(cred->cap_effective, cap) ? 0 : -EPERM; in cap_capable()
1275 return !!cap_raised(old->cap_bset, arg2); in cap_task_prctl()
1362 return !!cap_raised(current_cred()->cap_ambient, arg3); in cap_task_prctl()
1368 (!cap_raised(current_cred()->cap_permitted, arg3) || in cap_task_prctl()
1369 !cap_raised(current_cred()->cap_inheritable, in cap_task_prctl()
/Linux-v6.6/include/linux/
Dcapability.h75 #define cap_raised(c, flag) (((c).val & BIT_ULL(flag)) != 0) macro
/Linux-v6.6/kernel/
Duser_namespace.c126 ns->parent_could_setfcap = cap_raised(new->cap_effective, CAP_SETFCAP); in create_user_ns()
/Linux-v6.6/kernel/sched/
Dpsi.c1295 privileged = cap_raised(file->f_cred->cap_effective, CAP_SYS_RESOURCE); in psi_trigger_create()