Home
last modified time | relevance | path

Searched refs:cap_effective (Results 1 – 15 of 15) sorted by relevance

/Linux-v6.6/fs/nfsd/
Dauth.c80 new->cap_effective = cap_drop_nfsd_set(new->cap_effective); in nfsd_setuser()
82 new->cap_effective = cap_raise_nfsd_set(new->cap_effective, in nfsd_setuser()
Dnfsfh.c226 new->cap_effective = in nfsd_set_fh_dentry()
227 cap_raise_nfsd_set(new->cap_effective, in nfsd_set_fh_dentry()
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dtest_deny_namespace.c11 kernel_cap_t cap_effective; member
19 kernel_cap_t caps = cred->cap_effective; in BPF_PROG()
/Linux-v6.6/security/
Dcommoncap.c78 return cap_raised(cred->cap_effective, cap) ? 0 : -EPERM; in cap_capable()
144 caller_caps = &cred->cap_effective; in cap_ptrace_access_check()
208 *effective = cred->cap_effective; in cap_capget()
269 new->cap_effective = *effective; in cap_capset()
947 new->cap_effective = new->cap_permitted; in cap_bprm_creds_from_file()
949 new->cap_effective = new->cap_ambient; in cap_bprm_creds_from_file()
1096 cap_clear(new->cap_effective); in cap_emulate_setxuid()
1107 cap_clear(new->cap_effective); in cap_emulate_setxuid()
1109 new->cap_effective = new->cap_permitted; in cap_emulate_setxuid()
1145 new->cap_effective = in cap_task_fix_setuid()
[all …]
/Linux-v6.6/include/linux/
Dcred.h130 kernel_cap_t cap_effective; /* caps we can actually use */ member
388 #define current_cap() (current_cred_xxx(cap_effective))
/Linux-v6.6/fs/proc/
Darray.c314 kernel_cap_t cap_inheritable, cap_permitted, cap_effective, in task_cap() local
321 cap_effective = cred->cap_effective; in task_cap()
328 render_cap_t(m, "CapEff:\t", &cap_effective); in task_cap()
/Linux-v6.6/fs/smb/server/
Dsmb_common.c749 cred->cap_effective = cap_drop_fs_set(cred->cap_effective); in ksmbd_override_fsids()
/Linux-v6.6/fs/
Dopen.c390 if (!cap_isclear(cred->cap_effective)) in access_need_override_creds()
393 if (!cap_isidentical(cred->cap_effective, in access_need_override_creds()
424 cap_clear(override_cred->cap_effective); in access_override_creds()
426 override_cred->cap_effective = in access_override_creds()
/Linux-v6.6/io_uring/
Dfdinfo.c43 cap = cred->cap_effective; in io_uring_show_cred()
/Linux-v6.6/security/keys/
Dprocess_keys.c944 new->cap_effective = old->cap_effective; in key_change_session_keyring()
/Linux-v6.6/kernel/
Duser_namespace.c51 cred->cap_effective = CAP_FULL_SET; in set_cred_user_ns()
126 ns->parent_could_setfcap = cap_raised(new->cap_effective, CAP_SETFCAP); in create_user_ns()
Dauditsc.c2824 ax->old_pcap.effective = old->cap_effective; in __audit_log_bprm_fcaps()
2829 ax->new_pcap.effective = new->cap_effective; in __audit_log_bprm_fcaps()
2847 context->capset.cap.effective = new->cap_effective; in __audit_log_capset()
2848 context->capset.cap.inheritable = new->cap_effective; in __audit_log_capset()
Dcred.c61 .cap_effective = CAP_FULL_SET,
/Linux-v6.6/kernel/sched/
Dpsi.c1295 privileged = cap_raised(file->f_cred->cap_effective, CAP_SYS_RESOURCE); in psi_trigger_create()
/Linux-v6.6/fs/overlayfs/
Dsuper.c1485 cap_lower(cred->cap_effective, CAP_SYS_RESOURCE); in ovl_fill_super()