/linux-6.6.21/include/linux/ |
D | cred.h | 247 #define current_cred() \ macro 280 (get_cred(current_cred())) 292 __cred = current_cred(); \ 307 __cred = current_cred(); \ 327 current_cred()->xxx; \ 356 __cred = current_cred(); \ 364 __cred = current_cred(); \ 372 __cred = current_cred(); \
|
/linux-6.6.21/security/ |
D | commoncap.c | 141 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-6.6.21/kernel/ |
D | groups.c | 144 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()
|
D | uid16.c | 66 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()
|
D | capability.c | 255 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()
|
D | sys.c | 180 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-6.6.21/security/apparmor/ |
D | lsm.c | 125 error = aa_may_ptrace(current_cred(), tracer, cred, tracee, in apparmor_ptrace_access_check() 143 error = aa_may_ptrace(cred, tracer, current_cred(), tracee, in apparmor_ptrace_traceme() 219 error = aa_path_perm(op, current_cred(), label, path, 0, mask, in common_perm() 366 error = aa_path_link(current_cred(), label, old_dentry, new_dir, in apparmor_path_link() 406 error = aa_path_perm(OP_RENAME_SRC, current_cred(), in apparmor_path_rename() 412 error = aa_path_perm(OP_RENAME_DEST, current_cred(), in apparmor_path_rename() 419 error = aa_path_perm(OP_RENAME_SRC, current_cred(), in apparmor_path_rename() 425 error = aa_path_perm(OP_RENAME_DEST, current_cred(), in apparmor_path_rename() 522 error = aa_file_perm(op, current_cred(), label, file, mask, in_atomic); in common_file_perm() 600 error = aa_remount(current_cred(), label, path, flags, in apparmor_sb_mount() [all …]
|
/linux-6.6.21/security/keys/ |
D | persistent.c | 24 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()
|
D | request_key.c | 122 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()
|
D | request_key_auth.c | 166 const struct cred *cred = current_cred(); in request_key_auth_new() 252 .cred = current_cred(), in key_get_instantiation_authkey()
|
D | process_keys.c | 77 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()
|
D | internal.h | 198 post_watch_notification(key->watchers, &n.watch, current_cred(), in notify_key() 209 return key_task_permission(key_ref, current_cred(), need_perm); in key_permission()
|
/linux-6.6.21/security/integrity/ima/ |
D | ima_main.c | 442 ret = process_measurement(file, current_cred(), secid, NULL, in ima_file_mmap() 449 return process_measurement(file, current_cred(), secid, NULL, in ima_file_mmap() 489 current_cred(), secid, MAY_EXEC, MMAP_CHECK, in ima_file_mprotect() 492 current_cred(), secid, MAY_EXEC, in ima_file_mprotect() 532 ret = process_measurement(bprm->file, current_cred(), secid, NULL, 0, in ima_bprm_check() 557 return process_measurement(file, current_cred(), secid, NULL, 0, in ima_file_check() 779 return process_measurement(file, current_cred(), secid, NULL, in ima_read_file() 822 return process_measurement(file, current_cred(), secid, buf, size, in ima_post_read_file() 972 action = ima_get_action(idmap, inode, current_cred(), in process_buffer_measurement()
|
D | ima_mok.c | 37 KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), in ima_mok_init()
|
/linux-6.6.21/security/selinux/ |
D | hooks.c | 626 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() 1798 const struct task_security_struct *tsec = selinux_cred(current_cred()); in may_create() 2142 const struct cred *cred = current_cred(); in selinux_quotactl() 2177 const struct cred *cred = current_cred(); in selinux_quota_on() 2214 rc = cred_has_capability(current_cred(), CAP_SYS_ADMIN, in selinux_vm_enough_memory() 2303 old_tsec = selinux_cred(current_cred()); in selinux_bprm_creds_for_exec() 2504 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_bprm_committed_creds() 2724 const struct cred *cred = current_cred(); in selinux_sb_kern_mount() 2734 const struct cred *cred = current_cred(); in selinux_sb_statfs() 2748 const struct cred *cred = current_cred(); in selinux_mount() [all …]
|
D | xfrm.c | 79 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-6.6.21/security/landlock/ |
D | cred.h | 31 return landlock_cred(current_cred())->domain; in landlock_get_current_domain()
|
/linux-6.6.21/certs/ |
D | system_keyring.c | 232 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-6.6.21/include/rdma/ |
D | ib.h | 78 return filp->f_cred == current_cred(); in ib_safe_file_access()
|
/linux-6.6.21/fs/verity/ |
D | signature.c | 116 current_cred(), KEY_POS_SEARCH | in fsverity_init_signature()
|
/linux-6.6.21/crypto/asymmetric_keys/ |
D | selftest.c | 187 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), in fips_signature_selftest()
|
/linux-6.6.21/security/apparmor/include/ |
D | cred.h | 76 return aa_cred_raw_label(current_cred()); in aa_current_raw_label()
|
/linux-6.6.21/security/selinux/include/ |
D | objsec.h | 186 const struct task_security_struct *tsec = selinux_cred(current_cred()); in current_sid()
|
/linux-6.6.21/fs/ecryptfs/ |
D | kthread.c | 63 (O_RDWR | O_LARGEFILE), current_cred()); in ecryptfs_threadfn()
|
/linux-6.6.21/security/smack/ |
D | smack_access.c | 273 struct task_smack *tsp = smack_cred(current_cred()); in smk_curacc() 695 return smack_privileged_cred(cap, current_cred()); in smack_privileged()
|