diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 1997-06-25 07:31:47 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 1997-06-25 07:31:47 +0000 |
commit | e16ed081263cabd1846602e616fe437325642cc6 (patch) | |
tree | 7e00a56912c19709346c2440d7906dc0a764ce01 /sys/kern/kern_mib.c | |
parent | f8a42d82e9fff548028285e4d6c828ce0b6a9b63 (diff) | |
download | src-test2-e16ed081263cabd1846602e616fe437325642cc6.tar.gz src-test2-e16ed081263cabd1846602e616fe437325642cc6.zip |
Notes
Diffstat (limited to 'sys/kern/kern_mib.c')
-rw-r--r-- | sys/kern/kern_mib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index 8105aa495de6..42e2652d78d3 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -37,7 +37,7 @@ * SUCH DAMAGE. * * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94 - * $Id: kern_mib.c,v 1.7 1997/03/03 12:58:19 bde Exp $ + * $Id: kern_mib.c,v 1.8 1997/03/04 18:31:54 bde Exp $ */ #include <sys/param.h> @@ -123,7 +123,7 @@ sysctl_kern_securelvl SYSCTL_HANDLER_ARGS error = sysctl_handle_int(oidp, &level, 0, req); if (error || !req->newptr) return (error); - if (level < securelevel && req->p->p_pid != 1) + if (level < securelevel) return (EPERM); securelevel = level; return (error); |