Home
last modified time | relevance | path

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

12

/Linux-v6.6/security/landlock/
Dcred.h40 return landlock_cred(__task_cred(task))->domain; in landlock_get_task_domain()
/Linux-v6.6/include/linux/
Dcred.h319 #define __task_cred(task) \ macro
366 ___val = __task_cred((task))->xxx; \
/Linux-v6.6/kernel/
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()
Dtsacct.c61 tcred = __task_cred(tsk); in bacct_add_tsk()
Dnsproxy.c421 user_ns = get_user_ns(__task_cred(tsk)->user_ns); in validate_nsset()
Dcred.c206 cred = __task_cred((task)); in get_task_cred()
Duser_namespace.c1325 user_ns = get_user_ns(__task_cred(task)->user_ns); in userns_get()
Dptrace.c327 tcred = __task_cred(task); in __ptrace_may_access()
Dsys.c180 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/
Dcommoncap.c142 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/
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-v6.6/arch/mips/kernel/
Dmips-mt-fpaff.c55 pcred = __task_cred(p); in check_same_owner()
/Linux-v6.6/security/apparmor/
Dresource.c117 peer = aa_get_newest_cred_label(__task_cred(task)); in aa_task_setrlimit()
Dtask.c34 p = aa_get_newest_cred_label(__task_cred(task)); in aa_get_task_label()
Dlsm.c154 cred = __task_cred(target); in apparmor_capget()
/Linux-v6.6/Documentation/security/
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-v6.6/security/smack/
Dsmack.h392 cred = __task_cred(t); in smk_of_task_struct_obj()
/Linux-v6.6/block/
Dblk-ioc.c257 tcred = __task_cred(task); in set_task_ioprio()
/Linux-v6.6/drivers/gpu/drm/
Ddrm_debugfs.c100 uid = task ? __task_cred(task)->euid : GLOBAL_ROOT_UID; in drm_clients_info()
/Linux-v6.6/drivers/connector/
Dcn_proc.c188 cred = __task_cred(task); in proc_id_connector()
/Linux-v6.6/fs/proc/
Darray.c318 cred = __task_cred(p); in task_cap()
Dbase.c1835 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/
Dfcntl.c708 cred = __task_cred(p); in sigio_perm()
Dbinfmt_elf_fdpic.c1354 cred = __task_cred(p); in fill_psinfo()
/Linux-v6.6/security/keys/
Dkeyctl.c1673 pcred = __task_cred(parent); in keyctl_session_to_parent()

12