Home
last modified time | relevance | path

Searched refs:tcred (Results 1 – 13 of 13) sorted by relevance

/linux/block/
A Dioprio.c40 const struct cred *cred = current_cred(), *tcred; in set_task_ioprio() local
43 tcred = __task_cred(task); in set_task_ioprio()
44 if (!uid_eq(tcred->uid, cred->euid) && in set_task_ioprio()
45 !uid_eq(tcred->uid, cred->uid) && !capable(CAP_SYS_NICE)) { in set_task_ioprio()
/linux/kernel/
A Dtsacct.c24 const struct cred *tcred; in bacct_add_tsk() local
56 tcred = __task_cred(tsk); in bacct_add_tsk()
57 stats->ac_uid = from_kuid_munged(user_ns, tcred->uid); in bacct_add_tsk()
58 stats->ac_gid = from_kgid_munged(user_ns, tcred->gid); in bacct_add_tsk()
A Dptrace.c294 const struct cred *cred = current_cred(), *tcred; in __ptrace_may_access() local
332 tcred = __task_cred(task); in __ptrace_may_access()
333 if (uid_eq(caller_uid, tcred->euid) && in __ptrace_may_access()
334 uid_eq(caller_uid, tcred->suid) && in __ptrace_may_access()
335 uid_eq(caller_uid, tcred->uid) && in __ptrace_may_access()
336 gid_eq(caller_gid, tcred->egid) && in __ptrace_may_access()
337 gid_eq(caller_gid, tcred->sgid) && in __ptrace_may_access()
338 gid_eq(caller_gid, tcred->gid)) in __ptrace_may_access()
340 if (ptrace_has_cap(tcred->user_ns, mode)) in __ptrace_may_access()
A Dsys.c1622 const struct cred *cred = current_cred(), *tcred; in check_prlimit_permission() local
1628 tcred = __task_cred(task); in check_prlimit_permission()
1629 id_match = (uid_eq(cred->uid, tcred->euid) && in check_prlimit_permission()
1630 uid_eq(cred->uid, tcred->suid) && in check_prlimit_permission()
1631 uid_eq(cred->uid, tcred->uid) && in check_prlimit_permission()
1632 gid_eq(cred->gid, tcred->egid) && in check_prlimit_permission()
1633 gid_eq(cred->gid, tcred->sgid) && in check_prlimit_permission()
1634 gid_eq(cred->gid, tcred->gid)); in check_prlimit_permission()
1635 if (!id_match && !ns_capable(tcred->user_ns, CAP_SYS_RESOURCE)) in check_prlimit_permission()
1638 return security_task_prlimit(cred, tcred, flags); in check_prlimit_permission()
A Dsignal.c815 const struct cred *tcred = __task_cred(t); in kill_ok_by_cred() local
817 return uid_eq(cred->euid, tcred->suid) || in kill_ok_by_cred()
818 uid_eq(cred->euid, tcred->uid) || in kill_ok_by_cred()
819 uid_eq(cred->uid, tcred->suid) || in kill_ok_by_cred()
820 uid_eq(cred->uid, tcred->uid) || in kill_ok_by_cred()
821 ns_capable(tcred->user_ns, CAP_KILL); in kill_ok_by_cred()
/linux/kernel/cgroup/
A Dcgroup-v1.c495 const struct cred *cred, *tcred; in __cgroup1_procs_write() local
514 tcred = get_task_cred(task); in __cgroup1_procs_write()
516 !uid_eq(cred->euid, tcred->uid) && in __cgroup1_procs_write()
517 !uid_eq(cred->euid, tcred->suid)) in __cgroup1_procs_write()
519 put_cred(tcred); in __cgroup1_procs_write()
/linux/Documentation/security/
A Dcredentials.rst372 const struct cred *tcred;
375 tcred = __task_cred(t);
376 f->uid = tcred->uid;
377 f->gid = tcred->gid;
378 f->groups = get_group_info(tcred->groups);
/linux/arch/x86/kernel/cpu/resctrl/
A Drdtgroup.c637 const struct cred *tcred = get_task_cred(task); in rdtgroup_task_write_permission() local
646 !uid_eq(cred->euid, tcred->uid) && in rdtgroup_task_write_permission()
647 !uid_eq(cred->euid, tcred->suid)) { in rdtgroup_task_write_permission()
652 put_cred(tcred); in rdtgroup_task_write_permission()
/linux/include/linux/
A Dsecurity.h426 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
1148 const struct cred *tcred, in security_task_prlimit() argument
A Dlsm_hook_defs.h217 const struct cred *tcred, unsigned int flags)
/linux/security/
A Dsecurity.c1840 int security_task_prlimit(const struct cred *cred, const struct cred *tcred, in security_task_prlimit() argument
1843 return call_int_hook(task_prlimit, 0, cred, tcred, flags); in security_task_prlimit()
/linux/security/smack/
A Dsmack_lsm.c1768 const struct cred *tcred; in smack_file_send_sigiotask() local
1785 tcred = __task_cred(tsk); in smack_file_send_sigiotask()
1786 if (rc != 0 && smack_privileged_cred(CAP_MAC_OVERRIDE, tcred)) in smack_file_send_sigiotask()
/linux/security/selinux/
A Dhooks.c4244 static int selinux_task_prlimit(const struct cred *cred, const struct cred *tcred, in selinux_task_prlimit() argument
4256 cred_sid(cred), cred_sid(tcred), in selinux_task_prlimit()

Completed in 57 milliseconds