Home
last modified time | relevance | path

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

/linux-6.6.21/fs/nfsd/
Dauth.c78 new->cap_effective = cap_drop_nfsd_set(new->cap_effective); in nfsd_setuser()
80 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-6.6.21/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-6.6.21/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-6.6.21/include/linux/
Dcred.h123 kernel_cap_t cap_effective; /* caps we can actually use */ member
338 #define current_cap() (current_cred_xxx(cap_effective))
/linux-6.6.21/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-6.6.21/fs/smb/server/
Dsmb_common.c764 cred->cap_effective = cap_drop_fs_set(cred->cap_effective); in ksmbd_override_fsids()
/linux-6.6.21/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-6.6.21/io_uring/
Dfdinfo.c43 cap = cred->cap_effective; in io_uring_show_cred()
/linux-6.6.21/security/keys/
Dprocess_keys.c944 new->cap_effective = old->cap_effective; in key_change_session_keyring()
/linux-6.6.21/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()
Dcred.c57 .cap_effective = CAP_FULL_SET,
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()
/linux-6.6.21/kernel/sched/
Dpsi.c1295 privileged = cap_raised(file->f_cred->cap_effective, CAP_SYS_RESOURCE); in psi_trigger_create()
/linux-6.6.21/fs/overlayfs/
Dsuper.c1485 cap_lower(cred->cap_effective, CAP_SYS_RESOURCE); in ovl_fill_super()