summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-01-30 03:29:48 +0000
committermillert <millert@openbsd.org>2003-01-30 03:29:48 +0000
commitf0a31a3cee1038d69cab65918fb11ed51062bfad (patch)
tree7ab4e0b31c46c3aaf420bcbbd2bf4844d6b470f5 /sys/compat/linux/linux_misc.c
parentreal meat in audio_device; discussed w/ jason@ (diff)
downloadwireguard-openbsd-f0a31a3cee1038d69cab65918fb11ed51062bfad.tar.xz
wireguard-openbsd-f0a31a3cee1038d69cab65918fb11ed51062bfad.zip
Bring back setreuid(2) and setregid(2) as first class syscalls
(but still implemented via setres[ug]id(2)). Basically this just moves them from COMPAT_43 into kern_prot.c. Also fixes a typo in my old implementation. The userland portion will follow in a few days. deraadt@ OK
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 3fa69f6bf15..988f9a5eca5 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.47 2002/10/30 20:10:48 millert Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.48 2003/01/30 03:29:49 millert Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*
@@ -1251,14 +1251,14 @@ linux_sys_setreuid16(p, v, retval)
syscallarg(int) ruid;
syscallarg(int) euid;
} */ *uap = v;
- struct compat_43_sys_setreuid_args bsa;
+ struct sys_setreuid_args bsa;
SCARG(&bsa, ruid) = ((linux_uid_t)SCARG(uap, ruid) == (linux_uid_t)-1) ?
(uid_t)-1 : SCARG(uap, ruid);
SCARG(&bsa, euid) = ((linux_uid_t)SCARG(uap, euid) == (linux_uid_t)-1) ?
(uid_t)-1 : SCARG(uap, euid);
- return compat_43_sys_setreuid(p, &bsa, retval);
+ return sys_setreuid(p, &bsa, retval);
}
int
@@ -1271,14 +1271,14 @@ linux_sys_setregid16(p, v, retval)
syscallarg(int) rgid;
syscallarg(int) egid;
} */ *uap = v;
- struct compat_43_sys_setregid_args bsa;
+ struct sys_setregid_args bsa;
SCARG(&bsa, rgid) = ((linux_gid_t)SCARG(uap, rgid) == (linux_gid_t)-1) ?
(uid_t)-1 : SCARG(uap, rgid);
SCARG(&bsa, egid) = ((linux_gid_t)SCARG(uap, egid) == (linux_gid_t)-1) ?
(uid_t)-1 : SCARG(uap, egid);
- return compat_43_sys_setregid(p, &bsa, retval);
+ return sys_setregid(p, &bsa, retval);
}
int