Home
last modified time | relevance | path

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

12345

/linux-6.15/include/linux/
H A Dcred.h272 #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 Dcommoncap.c171 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 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()
H A 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()
H A Dcapability.c251 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 Dsys.c233 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 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()
H A 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()
H A Drequest_key_auth.c166 const struct cred *cred = current_cred(); in request_key_auth_new()
252 .cred = current_cred(), in key_get_instantiation_authkey()
H A 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()
H A Dinternal.h191 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 Dlsm.c133 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 Dtask.c93 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 Dfs.c958 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 Dcred.h70 return landlock_cred(current_cred())->domain; in landlock_get_current_domain()
/linux-6.15/security/integrity/ima/
H A Dima_main.c468 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 Dima_mok.c37 KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), in ima_mok_init()
/linux-6.15/security/selinux/
H A Dhooks.c633 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 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-6.15/crypto/asymmetric_keys/
H A Dselftest.c27 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), in fips_signature_selftest()
/linux-6.15/include/rdma/
H A Dib.h78 return filp->f_cred == current_cred(); in ib_safe_file_access()
/linux-6.15/Documentation/translations/zh_CN/security/
H A Dcredentials.rst264 const struct cred *current_cred()
383 凭据集都可用,因为current_cred()将返回当前的凭据集。
/linux-6.15/fs/verity/
H A Dsignature.c132 current_cred(), KEY_POS_SEARCH | in fsverity_init_signature()
/linux-6.15/security/apparmor/include/
H A Dcred.h96 return aa_cred_raw_label(current_cred()); in aa_current_raw_label()
/linux-6.15/fs/
H A Dnsfs.c109 f = dentry_open(&path, O_RDONLY, current_cred()); in open_namespace()
320 f = dentry_open(&path, O_RDONLY, current_cred()); in ns_ioctl()

12345