Home
last modified time | relevance | path

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

12345

/linux-6.6.21/include/linux/
Dcred.h247 #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/
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-6.6.21/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-6.6.21/security/apparmor/
Dlsm.c125 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/
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.h198 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/
Dima_main.c442 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()
Dima_mok.c37 KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), in ima_mok_init()
/linux-6.6.21/security/selinux/
Dhooks.c626 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 …]
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-6.6.21/security/landlock/
Dcred.h31 return landlock_cred(current_cred())->domain; in landlock_get_current_domain()
/linux-6.6.21/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-6.6.21/include/rdma/
Dib.h78 return filp->f_cred == current_cred(); in ib_safe_file_access()
/linux-6.6.21/fs/verity/
Dsignature.c116 current_cred(), KEY_POS_SEARCH | in fsverity_init_signature()
/linux-6.6.21/crypto/asymmetric_keys/
Dselftest.c187 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), in fips_signature_selftest()
/linux-6.6.21/security/apparmor/include/
Dcred.h76 return aa_cred_raw_label(current_cred()); in aa_current_raw_label()
/linux-6.6.21/security/selinux/include/
Dobjsec.h186 const struct task_security_struct *tsec = selinux_cred(current_cred()); in current_sid()
/linux-6.6.21/fs/ecryptfs/
Dkthread.c63 (O_RDWR | O_LARGEFILE), current_cred()); in ecryptfs_threadfn()
/linux-6.6.21/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()

12345