diff options
| author | 2003-08-15 20:32:12 +0000 | |
|---|---|---|
| committer | 2003-08-15 20:32:12 +0000 | |
| commit | ad3929582283d514f8a756b217534515032a07e8 (patch) | |
| tree | 30aa183b2cade76ae4380c09553a730be7ab184b /sys/compat/linux/linux_misc.c | |
| parent | xr pci (diff) | |
| download | wireguard-openbsd-ad3929582283d514f8a756b217534515032a07e8.tar.xz wireguard-openbsd-ad3929582283d514f8a756b217534515032a07e8.zip | |
change arguments to suser. suser now takes the process, and a flags
argument. old cred only calls user suser_ucred. this will allow future
work to more flexibly implement the idea of a root process. looks like
something i saw in freebsd, but a little different.
use of suser_ucred vs suser in file system code should be looked at again,
for the moment semantics remain unchanged.
review and input from art@ testing and further review miod@
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
| -rw-r--r-- | sys/compat/linux/linux_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 44de020d36c..432513b682c 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.53 2003/08/15 14:02:22 fgsch Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.54 2003/08/15 20:32:16 tedu Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /*- @@ -1452,7 +1452,7 @@ linux_sys_stime(p, v, retval) linux_time_t tt; int error; - if ((error = suser(p->p_ucred, &p->p_acflag)) != 0) + if ((error = suser(p, 0)) != 0) return (error); if ((error = copyin(SCARG(uap, t), &tt, sizeof(tt))) != 0) |
