diff options
author | phk <phk@FreeBSD.org> | 2006-07-17 09:07:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-07-17 09:07:02 +0000 |
commit | 0f924547b0b94c68712dbdc29b14c1c063d1fda9 (patch) | |
tree | 512763ef9035836fe344023d1c28f1a46dcde8f9 /sys/fs/devfs/devfs_vnops.c | |
parent | 9c55065deab9f014361307109583179c6ccfe0d2 (diff) | |
download | FreeBSD-src-0f924547b0b94c68712dbdc29b14c1c063d1fda9.zip FreeBSD-src-0f924547b0b94c68712dbdc29b14c1c063d1fda9.tar.gz |
Remove the NDEVFSINO and NDEVFSOVERFLOW options which no longer exists in
DEVFS.
Remove the opt_devfs.h file now that it is empty.
Diffstat (limited to 'sys/fs/devfs/devfs_vnops.c')
-rw-r--r-- | sys/fs/devfs/devfs_vnops.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index fda617d..9d2ca1e 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -40,7 +40,6 @@ * mkdir: want it ? */ -#include "opt_devfs.h" #include "opt_mac.h" #include <sys/param.h> @@ -648,18 +647,6 @@ devfs_open(struct vop_open_args *ap) if (dev->si_iosize_max == 0) dev->si_iosize_max = DFLTPHYS; - if (vn_isdisk(vp, NULL) && - ap->a_cred != FSCRED && (ap->a_mode & FWRITE)) { - /* - * When running in very secure mode, do not allow - * opens for writing of any disks. - * XXX: should be in geom_dev.c, but we lack the cred there. - */ - error = securelevel_ge(td->td_ucred, 2); - if (error) - return (error); - } - dsw = dev_refthread(dev); if (dsw == NULL) return (ENXIO); |