Lines Matching refs:tcred
2361 const struct cred *tcred; in pfm_bad_permissions() local
2367 tcred = __task_cred(task); in pfm_bad_permissions()
2373 from_kuid(&init_user_ns, tcred->euid), in pfm_bad_permissions()
2374 from_kuid(&init_user_ns, tcred->suid), in pfm_bad_permissions()
2375 from_kuid(&init_user_ns, tcred->uid), in pfm_bad_permissions()
2376 from_kgid(&init_user_ns, tcred->egid), in pfm_bad_permissions()
2377 from_kgid(&init_user_ns, tcred->sgid))); in pfm_bad_permissions()
2379 ret = ((!uid_eq(uid, tcred->euid)) in pfm_bad_permissions()
2380 || (!uid_eq(uid, tcred->suid)) in pfm_bad_permissions()
2381 || (!uid_eq(uid, tcred->uid)) in pfm_bad_permissions()
2382 || (!gid_eq(gid, tcred->egid)) in pfm_bad_permissions()
2383 || (!gid_eq(gid, tcred->sgid)) in pfm_bad_permissions()
2384 || (!gid_eq(gid, tcred->gid))) && !capable(CAP_SYS_PTRACE); in pfm_bad_permissions()