Home
last modified time | relevance | path

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

1234

/linux/include/linux/
A Dcred.h298 #define current_cred() \ macro
331 (get_cred(current_cred()))
343 __cred = current_cred(); \
358 __cred = current_cred(); \
378 current_cred()->xxx; \
407 __cred = current_cred(); \
415 __cred = current_cred(); \
423 __cred = current_cred(); \
/linux/security/
A Dcommoncap.c140 cred = current_cred(); in cap_ptrace_access_check()
177 child_cred = current_cred(); in cap_ptrace_traceme()
223 if (cap_capable(current_cred(), current_cred()->user_ns, in cap_inh_is_capped()
794 const struct cred *old = current_cred(); in handle_privileged_root()
891 const struct cred *old = current_cred(); in cap_bprm_creds_from_file()
1181 current_cred()->cap_permitted); in cap_safe_nice()
1271 const struct cred *old = current_cred(); in cap_task_prctl()
1307 || (cap_capable(current_cred(), in cap_task_prctl()
1308 current_cred()->user_ns, in cap_task_prctl()
1372 !cap_raised(current_cred()->cap_inheritable, in cap_task_prctl()
[all …]
/linux/security/keys/
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()
A Drequest_key.c119 const struct cred *cred = current_cred(); in call_sbin_request_key()
265 const struct cred *cred = current_cred(); in construct_get_dest_keyring()
572 .cred = current_cred(), in request_key_and_link()
607 ret = key_task_permission(key_ref, current_cred(), in request_key_and_link()
775 .cred = current_cred(), in request_key_rcu()
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()
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()
A Dinternal.h199 post_watch_notification(key->watchers, &n.watch, current_cred(), in notify_key()
210 return key_task_permission(key_ref, current_cred(), need_perm); in key_permission()
/linux/kernel/
A Dgroups.c150 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2()
216 const struct cred *cred = current_cred(); in in_group_p()
228 const struct cred *cred = current_cred(); in in_egroup_p()
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()
A Dcapability.c269 ret = security_capset(new, current_cred(), in SYSCALL_DEFINE2()
274 audit_log_capset(new, current_cred()); in SYSCALL_DEFINE2()
375 capable = security_capable(current_cred(), ns, cap, opts); in ns_capable_common()
A Dsys.c207 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3()
277 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2()
376 old = current_cred(); in __sys_setregid()
438 old = current_cred(); in __sys_setgid()
528 old = current_cred(); in __sys_setreuid()
604 old = current_cred(); in __sys_setuid()
670 old = current_cred(); in __sys_setresuid()
721 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3()
763 old = current_cred(); in __sys_setresgid()
836 old = current_cred(); in __sys_setfsuid()
[all …]
/linux/security/integrity/ima/
A Dima_main.c412 return process_measurement(file, current_cred(), secid, NULL, in ima_file_mmap()
452 current_cred(), secid, MAY_EXEC, MMAP_CHECK, in ima_file_mprotect()
491 ret = process_measurement(bprm->file, current_cred(), secid, NULL, 0, in ima_bprm_check()
516 return process_measurement(file, current_cred(), secid, NULL, 0, in ima_file_check()
713 return process_measurement(file, current_cred(), secid, NULL, in ima_read_file()
756 return process_measurement(file, current_cred(), secid, buf, size, in ima_post_read_file()
909 action = ima_get_action(mnt_userns, inode, current_cred(), in process_buffer_measurement()
A Dima_mok.c37 KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), in ima_mok_init()
/linux/security/selinux/
A Dhooks.c635 const struct cred *cred = current_cred(); in selinux_set_mnt_opts()
2184 const struct cred *cred = current_cred(); in selinux_quotactl()
2219 const struct cred *cred = current_cred(); in selinux_quota_on()
2349 old_tsec = selinux_cred(current_cred()); in selinux_bprm_creds_for_exec()
2797 const struct cred *cred = current_cred(); in selinux_sb_kern_mount()
2807 const struct cred *cred = current_cred(); in selinux_sb_statfs()
2821 const struct cred *cred = current_cred(); in selinux_mount()
2833 const struct cred *cred = current_cred(); in selinux_move_mount()
2840 const struct cred *cred = current_cred(); in selinux_umount()
3124 const struct cred *cred = current_cred(); in selinux_inode_readlink()
[all …]
A Dxfrm.c79 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_xfrm_alloc_user()
138 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_xfrm_delete()
/linux/certs/
A Dsystem_keyring.c104 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), in system_trusted_keyring_init()
115 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), in system_trusted_keyring_init()
/linux/security/landlock/
A Dcred.h31 return landlock_cred(current_cred())->domain; in landlock_get_current_domain()
/linux/include/rdma/
A Dib.h78 return filp->f_cred == current_cred() && !uaccess_kernel(); in ib_safe_file_access()
/linux/security/apparmor/include/
A Dcred.h89 return aa_cred_raw_label(current_cred()); in aa_current_raw_label()
/linux/fs/crypto/
A Dkeyring.c210 current_cred(), KEY_POS_SEARCH | in allocate_filesystem_keyring()
263 current_cred(), KEY_POS_SEARCH | in allocate_master_key_users_keyring()
300 current_fsuid(), current_gid(), current_cred(), in add_master_key_user()
371 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), in add_new_master_key()
/linux/fs/verity/
A Dsignature.c135 current_cred(), KEY_POS_SEARCH | in fsverity_init_signature()
/linux/security/apparmor/
A Dtask.c52 if (current_cred() != current_real_cred()) in aa_replace_current_label()
/linux/security/selinux/include/
A Dobjsec.h186 const struct task_security_struct *tsec = selinux_cred(current_cred()); in current_sid()
/linux/security/smack/
A Dsmack_access.c273 struct task_smack *tsp = smack_cred(current_cred()); in smk_curacc()
698 return smack_privileged_cred(cap, current_cred()); in smack_privileged()
A Dsmackfs.c2214 struct task_smack *tsp = smack_cred(current_cred()); in load_self_seq_start()
2221 struct task_smack *tsp = smack_cred(current_cred()); in load_self_seq_next()
2268 struct task_smack *tsp = smack_cred(current_cred()); in smk_write_load_self()
2423 struct task_smack *tsp = smack_cred(current_cred()); in load_self2_seq_start()
2430 struct task_smack *tsp = smack_cred(current_cred()); in load_self2_seq_next()
2476 struct task_smack *tsp = smack_cred(current_cred()); in smk_write_load_self2()
2694 struct task_smack *tsp = smack_cred(current_cred()); in relabel_self_seq_start()
2701 struct task_smack *tsp = smack_cred(current_cred()); in relabel_self_seq_next()

Completed in 57 milliseconds

1234