Home
last modified time | relevance | path

Searched refs:__task_cred (Results 1 – 25 of 32) sorted by relevance

12

/linux/security/landlock/
H A Dcred.h40 return landlock_cred(__task_cred(task))->domain; in landlock_get_task_domain()
/linux/include/linux/
H A Dcred.h311 #define __task_cred(task) \ macro
358 ___val = __task_cred((task))->xxx; \
/linux/kernel/
H A Dcapability.c286 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()
H A Dtsacct.c61 tcred = __task_cred(tsk); in bacct_add_tsk()
H A Dnsproxy.c421 user_ns = get_user_ns(__task_cred(tsk)->user_ns); in validate_nsset()
H A Dcred.c160 cred = __task_cred((task)); in get_task_cred()
H A Duser_namespace.c1328 user_ns = get_user_ns(__task_cred(task)->user_ns); in userns_get()
H A Dptrace.c316 tcred = __task_cred(task); in __ptrace_may_access()
H A Dsys.c189 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio_perm()
1680 tcred = __task_cred(task); in check_prlimit_permission()
/linux/security/
H A Dcommoncap.c143 child_cred = __task_cred(child); in cap_ptrace_access_check()
178 cred = __task_cred(parent); in cap_ptrace_traceme()
208 cred = __task_cred(target); in cap_capget()
1178 is_subset = cap_issubset(__task_cred(p)->cap_permitted, in cap_safe_nice()
1180 if (!is_subset && !ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) in cap_safe_nice()
/linux/security/yama/
H A Dyama_lsm.c373 !ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE)) in yama_ptrace_access_check()
379 if (!ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE)) in yama_ptrace_access_check()
/linux/arch/mips/kernel/
H A Dmips-mt-fpaff.c56 pcred = __task_cred(p); in check_same_owner()
/linux/security/apparmor/
H A Dresource.c124 peer = aa_get_newest_cred_label(__task_cred(task)); in aa_task_setrlimit()
H A Dtask.c34 p = aa_get_newest_cred_label(__task_cred(task)); in aa_get_task_label()
/linux/Documentation/security/
H A Dcredentials.rst366 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/security/smack/
H A Dsmack.h392 cred = __task_cred(t); in smk_of_task_struct_obj()
H A Dsmack_lsm.c446 tracercred = __task_cred(tracer); in smk_ptrace_rule_check()
1937 tcred = __task_cred(tsk); in smack_file_send_sigiotask()
/linux/block/
H A Dblk-ioc.c257 tcred = __task_cred(task); in set_task_ioprio()
/linux/drivers/connector/
H A Dcn_proc.c188 cred = __task_cred(task); in proc_id_connector()
/linux/drivers/gpu/drm/
H A Ddrm_debugfs.c100 uid = task ? __task_cred(task)->euid : GLOBAL_ROOT_UID; in drm_clients_info()
/linux/fs/proc/
H A Darray.c318 cred = __task_cred(p); in task_cap()
H A Dbase.c1832 cred = __task_cred(task); in task_dump_owner()
2557 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in timerslack_ns_write()
2596 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in timerslack_ns_show()
/linux/fs/
H A Dfcntl.c744 cred = __task_cred(p); in sigio_perm()
H A Dbinfmt_elf_fdpic.c1351 cred = __task_cred(p); in fill_psinfo()
/linux/security/keys/
H A Dkeyctl.c1673 pcred = __task_cred(parent); in keyctl_session_to_parent()

12