summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
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