diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-01 22:54:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-01 22:54:51 +0000 |
commit | b563b0a3ba1afdf377e94c032e5e28ad46926622 (patch) | |
tree | 665e8a7f675c3ecf8acec2e28353e3e54f8b9499 /sys/kern/kern_fork.c | |
parent | 731ca5a62e4680dc3ba29add2dedb1eb6eabef8b (diff) |
only allow setuid if fd_refcnt == 1, due to rfork
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index f87e27995c7..c0b75327368 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.10 1997/08/01 21:59:13 deraadt Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.11 1997/08/01 22:54:49 deraadt Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -130,8 +130,6 @@ fork1(p1, forktype, rforkflags, retval) return (EINVAL); /* XXX unimplimented */ if (rforkflags & RFCFDG) cleanfd = 1; - if (dupfd == 0) - return (EPERM); } /* |