summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-11-07 12:01:32 +0000
committerphk <phk@FreeBSD.org>1999-11-07 12:01:32 +0000
commita7f67fc8195e55b18432ca58b7e3db534b2181d5 (patch)
tree54702b25f542378e063481a12b6c492d50ab1d5f /sys/fs
parent61d8f0221ce5b6331dcf565b8fcfefa0aa6ddc88 (diff)
downloadFreeBSD-src-a7f67fc8195e55b18432ca58b7e3db534b2181d5.zip
FreeBSD-src-a7f67fc8195e55b18432ca58b7e3db534b2181d5.tar.gz
Remove the iskmemdev() function. Make it the responsibility of the mem.c
drivers to enforce the securelevel checks.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/specfs/spec_vnops.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c
index c012b15..969a124 100644
--- a/sys/fs/specfs/spec_vnops.c
+++ b/sys/fs/specfs/spec_vnops.c
@@ -176,7 +176,7 @@ spec_open(ap)
return (EPERM);
/*
* When running in secure mode, do not allow opens
- * for writing of /dev/mem, /dev/kmem, or character
+ * for writing of character
* devices whose corresponding block devices are
* currently mounted.
*/
@@ -186,8 +186,6 @@ spec_open(ap)
bvp->v_usecount > 0 &&
(error = vfs_mountedon(bvp)))
return (error);
- if (iskmemdev(dev))
- return (EPERM);
}
}
if ((dsw->d_flags & D_TYPEMASK) == D_TTY)
OpenPOWER on IntegriCloud