| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | cred.h | 297 #define current_cred() \ macro 330 (get_cred(current_cred())) 342 __cred = current_cred(); \ 357 __cred = current_cred(); \ 376 current_cred()->xxx; \ 404 __cred = current_cred(); \ 412 __cred = current_cred(); \ 420 __cred = current_cred(); \
|
| /OK3568_Linux_fs/kernel/security/ |
| H A D | commoncap.c | 140 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() 740 const struct cred *old = current_cred(); in handle_privileged_root() 835 const struct cred *old = current_cred(); in cap_bprm_creds_from_file() 1114 current_cred()->cap_permitted); in cap_safe_nice() 1195 const struct cred *old = current_cred(); in cap_task_prctl() 1231 || (cap_capable(current_cred(), in cap_task_prctl() 1232 current_cred()->user_ns, in cap_task_prctl() 1289 return !!cap_raised(current_cred()->cap_ambient, arg3); in cap_task_prctl() [all …]
|
| /OK3568_Linux_fs/kernel/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 | 119 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()
|
| 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() 846 old = current_cred(); in join_session_keyring() 912 const struct cred *old = current_cred(); in key_change_session_keyring()
|
| H A D | internal.h | 199 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()
|
| /OK3568_Linux_fs/kernel/security/integrity/ima/ |
| H A D | ima_main.c | 395 return process_measurement(file, current_cred(), secid, NULL, in ima_file_mmap() 434 action = ima_get_action(inode, current_cred(), secid, MAY_EXEC, in ima_file_mprotect() 473 ret = process_measurement(bprm->file, current_cred(), secid, NULL, 0, in ima_bprm_check() 498 return process_measurement(file, current_cred(), secid, NULL, 0, in ima_file_check() 653 return process_measurement(file, current_cred(), secid, NULL, in ima_read_file() 696 return process_measurement(file, current_cred(), secid, buf, size, in ima_post_read_file() 826 action = ima_get_action(inode, current_cred(), secid, 0, func, in process_buffer_measurement()
|
| H A D | ima_mok.c | 37 KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), in ima_mok_init()
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | groups.c | 155 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() 221 const struct cred *cred = current_cred(); in in_group_p() 233 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 | 269 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()
|
| H A D | sys.c | 169 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio_perm() 211 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() 281 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() 380 old = current_cred(); in __sys_setregid() 442 old = current_cred(); in __sys_setgid() 531 old = current_cred(); in __sys_setreuid() 603 old = current_cred(); in __sys_setuid() 665 old = current_cred(); in __sys_setresuid() 712 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() 754 old = current_cred(); in __sys_setresgid() [all …]
|
| /OK3568_Linux_fs/kernel/security/selinux/ |
| H A D | hooks.c | 602 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() 1787 const struct task_security_struct *tsec = selinux_cred(current_cred()); in may_create() 2150 const struct cred *cred = current_cred(); in selinux_quotactl() 2185 const struct cred *cred = current_cred(); in selinux_quota_on() 2225 rc = cred_has_capability(current_cred(), CAP_SYS_ADMIN, in selinux_vm_enough_memory() 2315 old_tsec = selinux_cred(current_cred()); in selinux_bprm_creds_for_exec() 2523 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_bprm_committed_creds() 2719 const struct cred *cred = current_cred(); in selinux_sb_kern_mount() 2729 const struct cred *cred = current_cred(); in selinux_sb_statfs() 2743 const struct cred *cred = current_cred(); in selinux_mount() [all …]
|
| H A D | xfrm.c | 79 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()
|
| /OK3568_Linux_fs/kernel/certs/ |
| H A D | system_keyring.c | 102 KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), in system_trusted_keyring_init() 113 KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), in system_trusted_keyring_init()
|
| H A D | blacklist.c | 209 current_cred(), in blacklist_init()
|
| /OK3568_Linux_fs/kernel/include/rdma/ |
| H A D | ib.h | 78 return filp->f_cred == current_cred() && !uaccess_kernel(); in ib_safe_file_access()
|
| /OK3568_Linux_fs/kernel/security/apparmor/include/ |
| H A D | cred.h | 89 return aa_cred_raw_label(current_cred()); in aa_current_raw_label()
|
| /OK3568_Linux_fs/kernel/security/apparmor/ |
| H A D | task.c | 52 if (current_cred() != current_real_cred()) in aa_replace_current_label()
|
| /OK3568_Linux_fs/kernel/fs/verity/ |
| H A D | signature.c | 163 current_cred(), KEY_POS_SEARCH | in fsverity_init_signature()
|
| /OK3568_Linux_fs/kernel/security/smack/ |
| H A D | smack_access.c | 273 struct task_smack *tsp = smack_cred(current_cred()); in smk_curacc() 696 return smack_privileged_cred(cap, current_cred()); in smack_privileged()
|
| H A D | smackfs.c | 2214 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() 2422 struct task_smack *tsp = smack_cred(current_cred()); in load_self2_seq_start() 2429 struct task_smack *tsp = smack_cred(current_cred()); in load_self2_seq_next() 2475 struct task_smack *tsp = smack_cred(current_cred()); in smk_write_load_self2() 2693 struct task_smack *tsp = smack_cred(current_cred()); in relabel_self_seq_start() 2700 struct task_smack *tsp = smack_cred(current_cred()); in relabel_self_seq_next()
|
| /OK3568_Linux_fs/kernel/security/selinux/include/ |
| H A D | objsec.h | 187 const struct task_security_struct *tsec = selinux_cred(current_cred()); in current_sid()
|
| /OK3568_Linux_fs/kernel/fs/nfs/ |
| H A D | mount_clnt.c | 165 .cred = current_cred(), in nfs_mount() 252 .cred = current_cred(), in nfs_umount()
|