Home
last modified time | relevance | path

Searched refs:cr_uid (Results 1 – 25 of 103) sorted by relevance

12345

/freebsd/sys/kern/
H A Dkern_priv.c232 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 Dkern_prot.c254 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 Dsysv_ipc.c99 if (cred->cr_uid == perm->cuid || cred->cr_uid == perm->uid) { in ipcperm()
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c87 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 Dt_peercred.c50 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 Dfuse_file.c253 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 Dfuse_internal.h208 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 Ducred.h72 #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 Dsvc_auth.c193 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 Dauthunix_prot.c94 if (!xdr_uint32_t(xdrs, &cred->cr_uid)) in xdr_authunix_parms()
H A Dsvc_auth_unix.c85 xcr->cr_uid = IXDR_GET_UINT32(buf); in _svcauth_unix()
H A Dauth_unix.c139 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 Dtst.call3.d53 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 Dsched.h107 #define current_euid() (curthread->td_ucred->cr_uid)
108 #define task_euid(task) ((task)->task_thread->td_ucred->cr_uid)
H A Dsched.h107 #define current_euid() (curthread->td_ucred->cr_uid)
108 #define task_euid(task) ((task)->task_thread->td_ucred->cr_uid)
H A Dsched.h107 #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 Dgetpeereid.c54 *euid = xuc.cr_uid; in getpeereid()
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcred.h59 #define crgetuid(cr) ((cr)->cr_uid)
/freebsd/sys/security/mac_pimd/
H A Dmac_pimd.c56 if (pimd_enabled && cred->cr_uid == pimd_uid) { in pimd_priv_grant()
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Dcred.h46 #define crgetuid(cred) ((cred)->cr_uid)
/freebsd/sys/security/mac_ntpd/
H A Dmac_ntpd.c55 if (ntpd_enabled && cred->cr_uid == ntpd_uid) { in ntpd_priv_grant()
/freebsd/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c238 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 Dgss_acquire_cred.c66 args.uid = curthread->td_ucred->cr_uid; in gss_acquire_cred()
/freebsd/sys/security/mac_portacl/
H A Dmac_portacl.c386 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 Dnfs_nfsdsubs.c1620 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()

12345