Searched refs:__task_cred (Results 1 – 25 of 31) sorted by relevance
12
/Linux-v6.6/security/landlock/ |
D | cred.h | 40 return landlock_cred(__task_cred(task))->domain; in landlock_get_task_domain()
|
/Linux-v6.6/include/linux/ |
D | cred.h | 319 #define __task_cred(task) \ macro 366 ___val = __task_cred((task))->xxx; \
|
/Linux-v6.6/kernel/ |
D | capability.c | 286 ret = security_capable(__task_cred(t), ns, cap, CAP_OPT_NONE); in has_ns_capability() 327 ret = security_capable(__task_cred(t), ns, cap, CAP_OPT_NOAUDIT); in has_ns_capability_noaudit()
|
D | tsacct.c | 61 tcred = __task_cred(tsk); in bacct_add_tsk()
|
D | nsproxy.c | 421 user_ns = get_user_ns(__task_cred(tsk)->user_ns); in validate_nsset()
|
D | cred.c | 206 cred = __task_cred((task)); in get_task_cred()
|
D | user_namespace.c | 1325 user_ns = get_user_ns(__task_cred(task)->user_ns); in userns_get()
|
D | ptrace.c | 327 tcred = __task_cred(task); in __ptrace_may_access()
|
D | sys.c | 180 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio_perm() 1671 tcred = __task_cred(task); in check_prlimit_permission()
|
/Linux-v6.6/security/ |
D | commoncap.c | 142 child_cred = __task_cred(child); in cap_ptrace_access_check() 177 cred = __task_cred(parent); in cap_ptrace_traceme() 207 cred = __task_cred(target); in cap_capget() 1177 is_subset = cap_issubset(__task_cred(p)->cap_permitted, in cap_safe_nice() 1179 if (!is_subset && !ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) in cap_safe_nice()
|
/Linux-v6.6/security/yama/ |
D | yama_lsm.c | 371 !ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE)) in yama_ptrace_access_check() 377 if (!ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE)) in yama_ptrace_access_check()
|
/Linux-v6.6/arch/mips/kernel/ |
D | mips-mt-fpaff.c | 55 pcred = __task_cred(p); in check_same_owner()
|
/Linux-v6.6/security/apparmor/ |
D | resource.c | 117 peer = aa_get_newest_cred_label(__task_cred(task)); in aa_task_setrlimit()
|
D | task.c | 34 p = aa_get_newest_cred_label(__task_cred(task)); in aa_get_task_label()
|
D | lsm.c | 154 cred = __task_cred(target); in apparmor_capget()
|
/Linux-v6.6/Documentation/security/ |
D | credentials.rst | 366 const struct cred *__task_cred(struct task_struct *task); 375 tcred = __task_cred(t); 393 The result of ``__task_cred()`` should not be passed directly to 404 __task_cred(task)->uid 405 __task_cred(task)->euid 408 need to be accessed, RCU read lock should be used, ``__task_cred()`` called,
|
/Linux-v6.6/security/smack/ |
D | smack.h | 392 cred = __task_cred(t); in smk_of_task_struct_obj()
|
/Linux-v6.6/block/ |
D | blk-ioc.c | 257 tcred = __task_cred(task); in set_task_ioprio()
|
/Linux-v6.6/drivers/gpu/drm/ |
D | drm_debugfs.c | 100 uid = task ? __task_cred(task)->euid : GLOBAL_ROOT_UID; in drm_clients_info()
|
/Linux-v6.6/drivers/connector/ |
D | cn_proc.c | 188 cred = __task_cred(task); in proc_id_connector()
|
/Linux-v6.6/fs/proc/ |
D | array.c | 318 cred = __task_cred(p); in task_cap()
|
D | base.c | 1835 cred = __task_cred(task); in task_dump_owner() 2562 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in timerslack_ns_write() 2601 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in timerslack_ns_show()
|
/Linux-v6.6/fs/ |
D | fcntl.c | 708 cred = __task_cred(p); in sigio_perm()
|
D | binfmt_elf_fdpic.c | 1354 cred = __task_cred(p); in fill_psinfo()
|
/Linux-v6.6/security/keys/ |
D | keyctl.c | 1673 pcred = __task_cred(parent); in keyctl_session_to_parent()
|
12