Home
last modified time | relevance | path

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

12

/linux/security/landlock/
A Dcred.h40 return landlock_cred(__task_cred(task))->domain; in landlock_get_task_domain()
/linux/include/linux/
A Dcred.h320 #define __task_cred(task) \ macro
367 ___val = __task_cred((task))->xxx; \
/linux/security/
A Dcommoncap.c141 child_cred = __task_cred(child); in cap_ptrace_access_check()
176 cred = __task_cred(parent); in cap_ptrace_traceme()
206 cred = __task_cred(target); in cap_capget()
1180 is_subset = cap_issubset(__task_cred(p)->cap_permitted, in cap_safe_nice()
1182 if (!is_subset && !ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) in cap_safe_nice()
/linux/kernel/
A Dcapability.c300 ret = security_capable(__task_cred(t), ns, cap, CAP_OPT_NONE); in has_ns_capability()
341 ret = security_capable(__task_cred(t), ns, cap, CAP_OPT_NOAUDIT); in has_ns_capability_noaudit()
A Dtsacct.c56 tcred = __task_cred(tsk); in bacct_add_tsk()
A Dnsproxy.c402 user_ns = get_user_ns(__task_cred(tsk)->user_ns); in validate_nsset()
A Dcred.c203 cred = __task_cred((task)); in get_task_cred()
A Dptrace.c332 tcred = __task_cred(task); in __ptrace_may_access()
A Duser_namespace.c1308 user_ns = get_user_ns(__task_cred(task)->user_ns); in userns_get()
A Dsys.c165 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio_perm()
1628 tcred = __task_cred(task); in check_prlimit_permission()
/linux/security/apparmor/include/
A Dcred.h76 return aa_cred_raw_label(__task_cred(task)); in __aa_task_raw_label()
/linux/security/yama/
A Dyama_lsm.c371 !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/arch/mips/kernel/
A Dmips-mt-fpaff.c55 pcred = __task_cred(p); in check_same_owner()
/linux/security/apparmor/
A Dresource.c112 peer = aa_get_newest_cred_label(__task_cred(task)); in aa_task_setrlimit()
A Dlsm.c154 cred = __task_cred(target); in apparmor_capget()
/linux/Documentation/security/
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/block/
A Dioprio.c43 tcred = __task_cred(task); in set_task_ioprio()
/linux/security/smack/
A Dsmack.h416 cred = __task_cred(t); in smk_of_task_struct_obj()
/linux/drivers/gpu/drm/
A Ddrm_debugfs.c98 uid = task ? __task_cred(task)->euid : GLOBAL_ROOT_UID; in drm_clients_info()
/linux/drivers/connector/
A Dcn_proc.c140 cred = __task_cred(task); in proc_id_connector()
/linux/fs/proc/
A Darray.c315 cred = __task_cred(p); in task_cap()
A Dbase.c1836 cred = __task_cred(task); in task_dump_owner()
2532 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in timerslack_ns_write()
2571 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in timerslack_ns_show()
/linux/fs/
A Dfcntl.c724 cred = __task_cred(p); in sigio_perm()
A Dbinfmt_elf_fdpic.c1358 cred = __task_cred(p); in fill_psinfo()
/linux/security/keys/
A Dkeyctl.c1668 pcred = __task_cred(parent); in keyctl_session_to_parent()

Completed in 50 milliseconds

12