Home
last modified time | relevance | path

Searched refs:current_cred (Results 1 – 25 of 102) sorted by relevance

12345

/Linux-v6.6/include/linux/
Dcred.h297 #define current_cred() \ macro
330 (get_cred(current_cred()))
342 __cred = current_cred(); \
357 __cred = current_cred(); \
377 current_cred()->xxx; \
406 __cred = current_cred(); \
414 __cred = current_cred(); \
422 __cred = current_cred(); \
/Linux-v6.6/security/
Dcommoncap.c141 cred = current_cred(); in cap_ptrace_access_check()
178 child_cred = current_cred(); in cap_ptrace_traceme()
224 if (cap_capable(current_cred(), current_cred()->user_ns, in cap_inh_is_capped()
791 const struct cred *old = current_cred(); in handle_privileged_root()
888 const struct cred *old = current_cred(); in cap_bprm_creds_from_file()
1178 current_cred()->cap_permitted); in cap_safe_nice()
1268 const struct cred *old = current_cred(); in cap_task_prctl()
1304 || (cap_capable(current_cred(), in cap_task_prctl()
1305 current_cred()->user_ns, in cap_task_prctl()
1362 return !!cap_raised(current_cred()->cap_ambient, arg3); in cap_task_prctl()
[all …]
/Linux-v6.6/kernel/
Dgroups.c144 old = current_cred(); in set_current_groups()
163 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2()
229 const struct cred *cred = current_cred(); in in_group_p()
241 const struct cred *cred = current_cred(); in in_egroup_p()
Duid16.c66 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3()
89 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3()
156 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2()
Dcapability.c255 ret = security_capset(new, current_cred(), in SYSCALL_DEFINE2()
260 audit_log_capset(new, current_cred()); in SYSCALL_DEFINE2()
362 capable = security_capable(current_cred(), ns, cap, opts); in ns_capable_common()
Dsys.c180 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio_perm()
222 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3()
292 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2()
391 old = current_cred(); in __sys_setregid()
453 old = current_cred(); in __sys_setgid()
548 old = current_cred(); in __sys_setreuid()
625 old = current_cred(); in __sys_setuid()
689 old = current_cred(); in __sys_setresuid()
749 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3()
789 old = current_cred(); in __sys_setresgid()
[all …]
/Linux-v6.6/security/keys/
Dpersistent.c24 current_cred(), in key_create_persistent_register()
58 uid, INVALID_GID, current_cred(), in key_create_persistent()
111 ret = key_task_permission(persistent_ref, current_cred(), KEY_NEED_LINK); in key_get_persistent()
Drequest_key.c122 const struct cred *cred = current_cred(); in call_sbin_request_key()
268 const struct cred *cred = current_cred(); in construct_get_dest_keyring()
588 .cred = current_cred(), in request_key_and_link()
623 ret = key_task_permission(key_ref, current_cred(), in request_key_and_link()
791 .cred = current_cred(), in request_key_rcu()
Drequest_key_auth.c166 const struct cred *cred = current_cred(); in request_key_auth_new()
252 .cred = current_cred(), in key_get_instantiation_authkey()
Dprocess_keys.c77 const struct cred *cred = current_cred(); in look_up_user_keyrings()
554 ctx->cred == current_cred() && in search_process_keyrings_rcu()
847 old = current_cred(); in join_session_keyring()
913 const struct cred *old = current_cred(); in key_change_session_keyring()
Dinternal.h197 post_watch_notification(key->watchers, &n.watch, current_cred(), in notify_key()
208 return key_task_permission(key_ref, current_cred(), need_perm); in key_permission()
/Linux-v6.6/security/integrity/ima/
Dima_main.c428 ret = process_measurement(file, current_cred(), secid, NULL, in ima_file_mmap()
435 return process_measurement(file, current_cred(), secid, NULL, in ima_file_mmap()
475 current_cred(), secid, MAY_EXEC, MMAP_CHECK, in ima_file_mprotect()
478 current_cred(), secid, MAY_EXEC, in ima_file_mprotect()
518 ret = process_measurement(bprm->file, current_cred(), secid, NULL, 0, in ima_bprm_check()
543 return process_measurement(file, current_cred(), secid, NULL, 0, in ima_file_check()
765 return process_measurement(file, current_cred(), secid, NULL, in ima_read_file()
808 return process_measurement(file, current_cred(), secid, buf, size, in ima_post_read_file()
958 action = ima_get_action(idmap, inode, current_cred(), in process_buffer_measurement()
Dima_mok.c37 KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), in ima_mok_init()
/Linux-v6.6/security/selinux/
Dhooks.c626 const struct cred *cred = current_cred(); in selinux_set_mnt_opts()
1800 const struct task_security_struct *tsec = selinux_cred(current_cred()); in may_create()
2144 const struct cred *cred = current_cred(); in selinux_quotactl()
2179 const struct cred *cred = current_cred(); in selinux_quota_on()
2216 rc = cred_has_capability(current_cred(), CAP_SYS_ADMIN, in selinux_vm_enough_memory()
2305 old_tsec = selinux_cred(current_cred()); in selinux_bprm_creds_for_exec()
2506 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_bprm_committed_creds()
2726 const struct cred *cred = current_cred(); in selinux_sb_kern_mount()
2736 const struct cred *cred = current_cred(); in selinux_sb_statfs()
2750 const struct cred *cred = current_cred(); in selinux_mount()
[all …]
Dxfrm.c79 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_xfrm_alloc_user()
137 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_xfrm_delete()
/Linux-v6.6/security/landlock/
Dcred.h31 return landlock_cred(current_cred())->domain; in landlock_get_current_domain()
/Linux-v6.6/certs/
Dsystem_keyring.c232 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), in system_trusted_keyring_init()
243 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), in system_trusted_keyring_init()
/Linux-v6.6/include/rdma/
Dib.h78 return filp->f_cred == current_cred(); in ib_safe_file_access()
/Linux-v6.6/fs/verity/
Dsignature.c116 current_cred(), KEY_POS_SEARCH | in fsverity_init_signature()
/Linux-v6.6/crypto/asymmetric_keys/
Dselftest.c186 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), in fips_signature_selftest()
/Linux-v6.6/security/apparmor/include/
Dcred.h76 return aa_cred_raw_label(current_cred()); in aa_current_raw_label()
/Linux-v6.6/security/selinux/include/
Dobjsec.h186 const struct task_security_struct *tsec = selinux_cred(current_cred()); in current_sid()
/Linux-v6.6/fs/ecryptfs/
Dkthread.c63 (O_RDWR | O_LARGEFILE), current_cred()); in ecryptfs_threadfn()
/Linux-v6.6/security/smack/
Dsmack_access.c273 struct task_smack *tsp = smack_cred(current_cred()); in smk_curacc()
695 return smack_privileged_cred(cap, current_cred()); in smack_privileged()
/Linux-v6.6/arch/mips/kernel/
Dmips-mt-fpaff.c51 const struct cred *cred = current_cred(), *pcred; in check_same_owner()

12345