summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-09-18 19:53:10 +0000
committerrwatson <rwatson@FreeBSD.org>2001-09-18 19:53:10 +0000
commit892ce726ef9d9d3062a9bcd6056508a168fcdfd7 (patch)
tree28299c63c68d11eb3eadb83be23b5555589c233c /sys/fs/procfs
parentb34d7ff9aad6920acbe4de8ef2c2db0a665cbe34 (diff)
downloadFreeBSD-src-892ce726ef9d9d3062a9bcd6056508a168fcdfd7.zip
FreeBSD-src-892ce726ef9d9d3062a9bcd6056508a168fcdfd7.tar.gz
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
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r--sys/fs/procfs/procfs_subr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/fs/procfs/procfs_subr.c b/sys/fs/procfs/procfs_subr.c
index a411546..a07cedc 100644
--- a/sys/fs/procfs/procfs_subr.c
+++ b/sys/fs/procfs/procfs_subr.c
@@ -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) {
OpenPOWER on IntegriCloud