| /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 | 258 td->td_retval[1] = td->td_ucred->cr_uid; in sys_getuid() 273 td->td_retval[0] = td->td_ucred->cr_uid; in sys_geteuid() 925 uid != oldcred->cr_uid && /* allow setuid(geteuid()) */ in sys_setuid() 937 uid == oldcred->cr_uid || in sys_setuid() 966 if (uid != oldcred->cr_uid) { in sys_setuid() 1038 if (oldcred->cr_uid != euid) { in sys_seteuid() 1368 (euid != (uid_t)-1 && euid != oldcred->cr_uid && in sys_setreuid() 1373 if (euid != (uid_t)-1 && oldcred->cr_uid != euid) { in sys_setreuid() 1381 if ((ruid != (uid_t)-1 || newcred->cr_uid != newcred->cr_ruid) && in sys_setreuid() 1382 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 | 81 if (cr->cr_uid == mp->mnt_cred->cr_uid && in secpolicy_fs_owner() 179 if (owner == cr->cr_uid) in secpolicy_vnode_any_access() 205 if (owner == cr->cr_uid) in secpolicy_vnode_setdac() 361 if ((vap->va_mode & S_ISUID) && ovap->va_uid != cr->cr_uid) { in secpolicy_setid_setsticky_clear() 380 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/sys/ |
| H A D | ucred.h | 81 #define cr_startcopy cr_uid 82 uid_t cr_uid; /* effective user id */ member 111 uid_t cr_uid; /* effective user id */ member 200 uid_t cr_uid; /* effective user id */ member
|
| /freebsd/sys/fs/fuse/ |
| H A D | fuse_file.c | 252 fufh->uid == cred->cr_uid && in fuse_filehandle_validrw() 264 fufh->uid == cred->cr_uid && in fuse_filehandle_validrw() 288 fufh->uid == cred->cr_uid && in fuse_filehandle_get() 322 if (fufh->uid == cred->cr_uid && in fuse_filehandle_get_anyflags() 367 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 | 258 if (err == 0 && td->td_ucred->cr_uid != data->daemoncred->cr_uid) in fuse_vfs_remount() 410 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 | 194 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xprt->xp_uid; in svc_getcred() 209 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xcr->cr_uid; in svc_getcred()
|
| H A D | authunix_prot.c | 89 if (!xdr_uint32_t(xdrs, &cred->cr_uid)) in xdr_authunix_parms()
|
| H A D | svc_auth_unix.c | 87 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/dev/hwt/ |
| H A D | hwt_ioctl.c | 99 if (oc->cr_uid != tc->cr_uid && in hwt_priv_check() 100 oc->cr_uid != tc->cr_svuid && in hwt_priv_check() 101 oc->cr_uid != tc->cr_ruid) { in hwt_priv_check()
|
| /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)
|
| /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/security/mac_ntpd/ |
| H A D | mac_ntpd.c | 53 if (ntpd_enabled && cred->cr_uid == ntpd_uid) { in ntpd_priv_grant()
|
| /freebsd/sys/cddl/compat/opensolaris/sys/ |
| H A D | cred.h | 46 #define crgetuid(cred) ((cred)->cr_uid)
|
| /freebsd/sys/kgssapi/ |
| H A D | gss_init_sec_context.c | 77 args.uid = curthread->td_ucred->cr_uid; in gss_init_sec_context() 211 args.uid = curthread->td_ucred->cr_uid; in gss_init_sec_context_lucid_v1()
|
| H A D | gss_acquire_cred.c | 66 args.uid = curthread->td_ucred->cr_uid; in gss_acquire_cred()
|
| /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() 328 match = (vap->va_uid == cred->cr_uid || in ugidfw_rulecheck()
|
| /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()
|