o Remove redundant securelevel/pid1 check in procfs_rw() -- this

protection is enforced at the invidual method layer using
  p_candebug().

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2001-09-18 19:53:10 +00:00
parent 796ed2a6d0
commit 3f9e888ebe

View File

@ -255,8 +255,6 @@ procfs_rw(ap)
if (p == NULL)
return (EINVAL);
PROC_UNLOCK(p);
if (p->p_pid == 1 && securelevel > 0 && uio->uio_rw == UIO_WRITE)
return (EACCES);
mp_fixme("pfs_lockowner needs a lock");
while (pfs->pfs_lockowner) {