/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 | 259 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 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 | 88 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 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 | 250 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 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()
|
H A D | fuse_vfsops.c | 256 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 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/sys/ |
H A D | ucred.h | 79 #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 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/security/mac_pimd/ |
H A D | mac_pimd.c | 54 if (pimd_enabled && cred->cr_uid == pimd_uid) { in pimd_priv_grant()
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | cred.h | 60 #define crgetuid(cr) ((cr)->cr_uid)
|
/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 | 53 if (ntpd_enabled && cred->cr_uid == ntpd_uid) { in ntpd_priv_grant()
|
/freebsd/sys/security/mac_bsdextended/ |
H A D | mac_bsdextended.c | 236 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 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 | 384 cred->cr_uid, family, type, port); in rules_check() 402 if (cred->cr_uid == rule->r_id) { in rules_check()
|