Home
last modified time | relevance | path

Searched refs:cr_uid (Results 1 – 25 of 107) 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.c259 td->td_retval[1] = td->td_ucred->cr_uid; in sys_getuid()
274 td->td_retval[0] = td->td_ucred->cr_uid; in sys_geteuid()
916 uid != oldcred->cr_uid && /* allow setuid(geteuid()) */ in sys_setuid()
928 uid == oldcred->cr_uid || in sys_setuid()
957 if (uid != oldcred->cr_uid) { in sys_setuid()
1024 if (oldcred->cr_uid != euid) { in sys_seteuid()
1324 (euid != (uid_t)-1 && euid != oldcred->cr_uid && in sys_setreuid()
1329 if (euid != (uid_t)-1 && oldcred->cr_uid != euid) { in sys_setreuid()
1337 if ((ruid != (uid_t)-1 || newcred->cr_uid != newcred->cr_ruid) && in sys_setreuid()
1338 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.c88 if (cr->cr_uid == mp->mnt_cred->cr_uid && in secpolicy_fs_owner()
186 if (owner == cr->cr_uid) in secpolicy_vnode_any_access()
212 if (owner == cr->cr_uid) in secpolicy_vnode_setdac()
368 if ((vap->va_mode & S_ISUID) && ovap->va_uid != cr->cr_uid) { in secpolicy_setid_setsticky_clear()
387 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.c250 fufh->uid == cred->cr_uid && in fuse_filehandle_validrw()
262 fufh->uid == cred->cr_uid && in fuse_filehandle_validrw()
286 fufh->uid == cred->cr_uid && in fuse_filehandle_get()
320 if (fufh->uid == cred->cr_uid && in fuse_filehandle_get_anyflags()
365 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()
H A Dfuse_vfsops.c256 if (err == 0 && td->td_ucred->cr_uid != data->daemoncred->cr_uid) in fuse_vfs_remount()
403 if (err == 0 && td->td_ucred->cr_uid != data->daemoncred->cr_uid) in fuse_vfsop_mount()
/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/sys/
H A Ducred.h79 #define cr_startcopy cr_uid
80 uid_t cr_uid; /* effective user id */ member
113 uid_t cr_uid; /* effective user id */ member
/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/security/mac_pimd/
H A Dmac_pimd.c54 if (pimd_enabled && cred->cr_uid == pimd_uid) { in pimd_priv_grant()
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcred.h60 #define crgetuid(cr) ((cr)->cr_uid)
/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.c53 if (ntpd_enabled && cred->cr_uid == ntpd_uid) { in ntpd_priv_grant()
/freebsd/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c236 match = ((cred->cr_uid <= rule->mbr_subject.mbs_uid_max && in ugidfw_rulecheck()
237 cred->cr_uid >= rule->mbr_subject.mbs_uid_min) || in ugidfw_rulecheck()
326 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.c384 cred->cr_uid, family, type, port); in rules_check()
402 if (cred->cr_uid == rule->r_id) { in rules_check()

12345