/freebsd/sys/kern/ |
H A D | kern_priv.c | 232 if (cred->cr_uid == 0) { in priv_check_cred() 287 if (cred->cr_uid == 0 && suser_enabled(cred)) { in priv_check_cred_vfs_lookup_slow() 308 if (cred->cr_uid == 0 && suser_enabled(cred)) in priv_check_cred_vfs_lookup() 323 if (cred->cr_uid == 0 && suser_enabled(cred)) in priv_check_cred_vfs_lookup_nomac() 342 if (cred->cr_uid == 0 && suser_enabled(cred)) { in priv_check_cred_vfs_generation_slow() 363 if (!jailed(cred) && cred->cr_uid == 0 && suser_enabled(cred)) in priv_check_cred_vfs_generation()
|
H A D | kern_prot.c | 254 td->td_retval[1] = td->td_ucred->cr_uid; in sys_getuid() 269 td->td_retval[0] = td->td_ucred->cr_uid; in sys_geteuid() 552 uid != oldcred->cr_uid && /* allow setuid(geteuid()) */ in sys_setuid() 564 uid == oldcred->cr_uid || in sys_setuid() 593 if (uid != oldcred->cr_uid) { in sys_setuid() 657 if (oldcred->cr_uid != euid) { in sys_seteuid() 966 (euid != (uid_t)-1 && euid != oldcred->cr_uid && in sys_setreuid() 971 if (euid != (uid_t)-1 && oldcred->cr_uid != euid) { in sys_setreuid() 979 if ((ruid != (uid_t)-1 || newcred->cr_uid != newcred->cr_ruid) && in sys_setreuid() 980 newcred->cr_svuid != newcred->cr_uid) { in sys_setreuid() [all …]
|
H A D | sysv_ipc.c | 99 if (cred->cr_uid == perm->cuid || cred->cr_uid == perm->uid) { in ipcperm()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_policy.c | 87 if (cr->cr_uid == mp->mnt_cred->cr_uid && in secpolicy_fs_owner() 185 if (owner == cr->cr_uid) in secpolicy_vnode_any_access() 211 if (owner == cr->cr_uid) in secpolicy_vnode_setdac() 367 if ((vap->va_mode & S_ISUID) && ovap->va_uid != cr->cr_uid) { in secpolicy_setid_setsticky_clear() 386 if (owner == cr->cr_uid) in secpolicy_vnode_owner()
|
/freebsd/tools/regression/sockets/unix_cmsg/ |
H A D | t_peercred.c | 50 uc_dbgmsg("xucred.cr_uid %lu", (u_long)xucred->cr_uid); in check_xucred() 60 if (xucred->cr_uid != uc_cfg.proc_cred.euid) { in check_xucred() 62 (u_long)xucred->cr_uid, (u_long)uc_cfg.proc_cred.euid); in check_xucred()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_file.c | 253 fufh->uid == cred->cr_uid && in fuse_filehandle_validrw() 265 fufh->uid == cred->cr_uid && in fuse_filehandle_validrw() 289 fufh->uid == cred->cr_uid && in fuse_filehandle_get() 323 if (fufh->uid == cred->cr_uid && in fuse_filehandle_get_anyflags() 368 fufh->uid = cred->cr_uid; in fuse_filehandle_init()
|
H A D | fuse_internal.h | 208 if (basecred->cr_uid == usercred->cr_uid && in fuse_match_cred() 209 basecred->cr_uid == usercred->cr_ruid && in fuse_match_cred() 210 basecred->cr_uid == usercred->cr_svuid && in fuse_match_cred()
|
/freebsd/sys/sys/ |
H A D | ucred.h | 72 #define cr_startcopy cr_uid 73 uid_t cr_uid; /* effective user id */ member 109 uid_t cr_uid; /* effective user id */ member
|
/freebsd/sys/rpc/ |
H A D | svc_auth.c | 193 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xprt->xp_uid; in svc_getcred() 208 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xcr->cr_uid; in svc_getcred()
|
H A D | authunix_prot.c | 94 if (!xdr_uint32_t(xdrs, &cred->cr_uid)) in xdr_authunix_parms()
|
H A D | svc_auth_unix.c | 85 xcr->cr_uid = IXDR_GET_UINT32(buf); in _svcauth_unix()
|
H A D | auth_unix.c | 139 th = HASHSTEP(HASHINIT, tau->au_xcred.cr_uid) in authunix_create() 152 h = HASHSTEP(HASHINIT, cred->cr_uid) % AUTH_UNIX_HASH_SIZE; in authunix_create()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/nfs/ |
H A D | tst.call3.d | 53 printf("noi_cred->cr_uid: %d\n", args[1]->noi_cred->cr_uid); 66 printf("noi_cred->cr_uid: %d\n", args[1]->noi_cred->cr_uid);
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | sched.h | 107 #define current_euid() (curthread->td_ucred->cr_uid) 108 #define task_euid(task) ((task)->task_thread->td_ucred->cr_uid)
|
H A D | sched.h | 107 #define current_euid() (curthread->td_ucred->cr_uid) 108 #define task_euid(task) ((task)->task_thread->td_ucred->cr_uid)
|
H A D | sched.h | 107 #define current_euid() (curthread->td_ucred->cr_uid) 108 #define task_euid(task) ((task)->task_thread->td_ucred->cr_uid)
|
/freebsd/lib/libc/gen/ |
H A D | getpeereid.c | 54 *euid = xuc.cr_uid; in getpeereid()
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | cred.h | 59 #define crgetuid(cr) ((cr)->cr_uid)
|
/freebsd/sys/security/mac_pimd/ |
H A D | mac_pimd.c | 56 if (pimd_enabled && cred->cr_uid == pimd_uid) { in pimd_priv_grant()
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | cred.h | 46 #define crgetuid(cred) ((cred)->cr_uid)
|
/freebsd/sys/security/mac_ntpd/ |
H A D | mac_ntpd.c | 55 if (ntpd_enabled && cred->cr_uid == ntpd_uid) { in ntpd_priv_grant()
|
/freebsd/sys/security/mac_bsdextended/ |
H A D | mac_bsdextended.c | 238 match = ((cred->cr_uid <= rule->mbr_subject.mbs_uid_max && in ugidfw_rulecheck() 239 cred->cr_uid >= rule->mbr_subject.mbs_uid_min) || in ugidfw_rulecheck() 328 match = (vap->va_uid == cred->cr_uid || in ugidfw_rulecheck()
|
/freebsd/sys/kgssapi/ |
H A D | gss_acquire_cred.c | 66 args.uid = curthread->td_ucred->cr_uid; in gss_acquire_cred()
|
/freebsd/sys/security/mac_portacl/ |
H A D | mac_portacl.c | 386 cred->cr_uid, family, type, port); in rules_check() 404 if (cred->cr_uid == rule->r_id) { in rules_check()
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdsubs.c | 1620 if (nd->nd_cred->cr_uid == 0) in nfsrv_checkuidgid() 1622 if ((NFSVNO_ISSETUID(nvap) && nvap->na_uid != nd->nd_cred->cr_uid) || in nfsrv_checkuidgid() 1656 tuid = nd->nd_cred->cr_uid; in nfsrv_fixattr() 1659 nvap->na_uid != nd->nd_cred->cr_uid) { in nfsrv_fixattr() 1660 if (nd->nd_cred->cr_uid == 0) { in nfsrv_fixattr() 1683 nd->nd_cred->cr_uid = 0; in nfsrv_fixattr() 1713 nd->nd_cred->cr_uid = tuid; in nfsrv_fixattr()
|