summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-03-30 21:54:48 +0000
committerguenther <guenther@openbsd.org>2014-03-30 21:54:48 +0000
commitd559b8cb6cdd6f912edd28712213aec79fb0b7bc (patch)
treeffe701d81fb3c6b370ebfd396ab32a273424b5b5 /sys/compat/linux/linux_misc.c
parentSupport relative arguments to .ll (increase or decrease line length). (diff)
downloadwireguard-openbsd-d559b8cb6cdd6f912edd28712213aec79fb0b7bc.tar.xz
wireguard-openbsd-d559b8cb6cdd6f912edd28712213aec79fb0b7bc.zip
Eliminates struct pcred by moving the real and saved ugids into
struct ucred; struct process then directly links to the ucred Based on a discussion at c2k10 or so before noting that FreeBSD and NetBSD did this too. ok matthew@
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index f372f573ffc..1792b23782f 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.88 2014/03/26 05:23:42 guenther Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.89 2014/03/30 21:54:49 guenther Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*-
@@ -1484,7 +1484,7 @@ linux_sys_setfsuid(p, v, retval)
uid_t uid;
uid = SCARG(uap, uid);
- if (p->p_cred->p_ruid != uid)
+ if (p->p_ucred->cr_ruid != uid)
return sys_nosys(p, v, retval);
else
return (0);
@@ -1542,7 +1542,7 @@ linux_sys_getuid(p, v, retval)
register_t *retval;
{
- *retval = p->p_cred->p_ruid;
+ *retval = p->p_ucred->cr_ruid;
return (0);
}
@@ -1553,7 +1553,7 @@ linux_sys_getgid(p, v, retval)
register_t *retval;
{
- *retval = p->p_cred->p_rgid;
+ *retval = p->p_ucred->cr_rgid;
return (0);
}