| /linux-6.15/include/linux/ |
| H A D | cred.h | 272 #define current_cred() \ macro 305 (get_cred(current_cred())) 317 __cred = current_cred(); \ 332 __cred = current_cred(); \ 352 current_cred()->xxx; \ 381 __cred = current_cred(); \ 389 __cred = current_cred(); \ 397 __cred = current_cred(); \
|
| /linux-6.15/security/ |
| H A D | commoncap.c | 171 cred = current_cred(); in cap_ptrace_access_check() 208 child_cred = current_cred(); in cap_ptrace_traceme() 254 if (cap_capable(current_cred(), current_cred()->user_ns, in cap_inh_is_capped() 821 const struct cred *old = current_cred(); in handle_privileged_root() 918 const struct cred *old = current_cred(); in cap_bprm_creds_from_file() 1208 current_cred()->cap_permitted); in cap_safe_nice() 1298 const struct cred *old = current_cred(); in cap_task_prctl() 1350 if (cap_capable(current_cred(), current_cred()->user_ns, in cap_task_prctl() 1409 return !!cap_raised(current_cred()->cap_ambient, arg3); in cap_task_prctl() 1415 (!cap_raised(current_cred()->cap_permitted, arg3) || in cap_task_prctl() [all …]
|
| /linux-6.15/kernel/ |
| H A 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()
|
| H A 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()
|
| H A D | capability.c | 251 ret = security_capset(new, current_cred(), in SYSCALL_DEFINE2() 256 audit_log_capset(new, current_cred()); in SYSCALL_DEFINE2() 342 capable = security_capable(current_cred(), ns, cap, opts); in ns_capable_common()
|
| H A D | sys.c | 233 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() 303 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() 402 old = current_cred(); in __sys_setregid() 464 old = current_cred(); in __sys_setgid() 559 old = current_cred(); in __sys_setreuid() 636 old = current_cred(); in __sys_setuid() 700 old = current_cred(); in __sys_setresuid() 760 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() 800 old = current_cred(); in __sys_setresgid() 881 old = current_cred(); in __sys_setfsuid() [all …]
|
| /linux-6.15/security/keys/ |
| H A 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()
|
| H A 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()
|
| H A 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()
|
| H A 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()
|
| H A D | internal.h | 191 post_watch_notification(key->watchers, &n.watch, current_cred(), in notify_key() 202 return key_task_permission(key_ref, current_cred(), need_perm); in key_permission()
|
| /linux-6.15/security/apparmor/ |
| H A D | lsm.c | 133 error = aa_may_ptrace(current_cred(), tracer, cred, tracee, in apparmor_ptrace_access_check() 414 error = aa_path_perm(OP_RENAME_SRC, current_cred(), in apparmor_path_rename() 420 error = aa_path_perm(OP_RENAME_DEST, current_cred(), in apparmor_path_rename() 427 error = aa_path_perm(OP_RENAME_SRC, current_cred(), in apparmor_path_rename() 433 error = aa_path_perm(OP_RENAME_DEST, current_cred(), in apparmor_path_rename() 722 error = aa_bind_mount(current_cred(), label, path, in apparmor_sb_mount() 726 error = aa_mount_change_type(current_cred(), label, in apparmor_sb_mount() 732 error = aa_new_mount(current_cred(), label, dev_name, in apparmor_sb_mount() 762 error = aa_umount(current_cred(), label, mnt, flags); in apparmor_sb_umount() 1051 ad.subj_cred = current_cred(); in apparmor_userns_create() [all …]
|
| /linux-6.15/security/landlock/ |
| H A D | task.c | 93 parent_subject = landlock_cred(current_cred()); in hook_ptrace_access_check() 271 landlock_get_applicable_subject(current_cred(), unix_scope, in hook_unix_stream_connect() 302 landlock_get_applicable_subject(current_cred(), unix_scope, in hook_unix_may_send() 359 cred = current_cred(); in hook_task_kill()
|
| H A D | fs.c | 958 landlock_get_applicable_subject(current_cred(), masks, NULL); in current_check_access_path() 1135 landlock_get_applicable_subject(current_cred(), any_fs, NULL); in current_check_refer_path() 1427 landlock_get_applicable_subject(current_cred(), any_fs, in hook_sb_mount() 1442 landlock_get_applicable_subject(current_cred(), any_fs, in hook_move_mount() 1460 landlock_get_applicable_subject(current_cred(), any_fs, in hook_sb_umount() 1474 landlock_get_applicable_subject(current_cred(), any_fs, in hook_sb_remount() 1497 landlock_get_applicable_subject(current_cred(), any_fs, in hook_sb_pivotroot() 1809 current_cred(), signal_scope, &fown_layer); in hook_file_set_fowner()
|
| H A D | cred.h | 70 return landlock_cred(current_cred())->domain; in landlock_get_current_domain()
|
| /linux-6.15/security/integrity/ima/ |
| H A D | ima_main.c | 468 ret = process_measurement(file, current_cred(), &prop, NULL, in ima_file_mmap() 475 return process_measurement(file, current_cred(), &prop, NULL, in ima_file_mmap() 517 current_cred(), &prop, MAY_EXEC, MMAP_CHECK, in ima_file_mprotect() 520 current_cred(), &prop, MAY_EXEC, in ima_file_mprotect() 560 ret = process_measurement(bprm->file, current_cred(), in ima_bprm_check() 613 return process_measurement(file, current_cred(), &prop, NULL, 0, in ima_file_check() 833 return process_measurement(file, current_cred(), &prop, NULL, 0, in ima_read_file() 876 return process_measurement(file, current_cred(), &prop, buf, size, in ima_post_read_file() 1035 action = ima_get_action(idmap, inode, current_cred(), in process_buffer_measurement()
|
| H A D | ima_mok.c | 37 KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), in ima_mok_init()
|
| /linux-6.15/security/selinux/ |
| H A D | hooks.c | 633 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() 2149 const struct cred *cred = current_cred(); in selinux_quotactl() 2184 const struct cred *cred = current_cred(); in selinux_quota_on() 2303 old_tsec = selinux_cred(current_cred()); in selinux_bprm_creds_for_exec() 2737 const struct cred *cred = current_cred(); in selinux_sb_kern_mount() 2747 const struct cred *cred = current_cred(); in selinux_sb_statfs() 2761 const struct cred *cred = current_cred(); in selinux_mount() 2773 const struct cred *cred = current_cred(); in selinux_move_mount() 2780 const struct cred *cred = current_cred(); in selinux_umount() 3056 const struct cred *cred = current_cred(); in selinux_inode_readlink() [all …]
|
| /linux-6.15/certs/ |
| H A 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.15/crypto/asymmetric_keys/ |
| H A D | selftest.c | 27 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), in fips_signature_selftest()
|
| /linux-6.15/include/rdma/ |
| H A D | ib.h | 78 return filp->f_cred == current_cred(); in ib_safe_file_access()
|
| /linux-6.15/Documentation/translations/zh_CN/security/ |
| H A D | credentials.rst | 264 const struct cred *current_cred() 383 凭据集都可用,因为current_cred()将返回当前的凭据集。
|
| /linux-6.15/fs/verity/ |
| H A D | signature.c | 132 current_cred(), KEY_POS_SEARCH | in fsverity_init_signature()
|
| /linux-6.15/security/apparmor/include/ |
| H A D | cred.h | 96 return aa_cred_raw_label(current_cred()); in aa_current_raw_label()
|
| /linux-6.15/fs/ |
| H A D | nsfs.c | 109 f = dentry_open(&path, O_RDONLY, current_cred()); in open_namespace() 320 f = dentry_open(&path, O_RDONLY, current_cred()); in ns_ioctl()
|