diff options
author | dd <dd@FreeBSD.org> | 2002-07-17 01:46:48 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2002-07-17 01:46:48 +0000 |
commit | 9498a983a938cec96851b64642f0b62bba7d1827 (patch) | |
tree | 403633d67f5bcbe849c414892c2fea74d94f0b09 /sys/fs/devfs/devfs_vfsops.c | |
parent | c57275f3471899132e94d39ef870d25599ec6f95 (diff) | |
download | FreeBSD-src-9498a983a938cec96851b64642f0b62bba7d1827.zip FreeBSD-src-9498a983a938cec96851b64642f0b62bba7d1827.tar.gz |
Introduce the DEVFS "rule" subsystem. DEVFS rules permit the
administrator to define certain properties of new devfs nodes before
they become visible to the userland. Both static (e.g., /dev/speaker)
and dynamic (e.g., /dev/bpf*, some removable devices) nodes are
supported. Each DEVFS mount may have a different ruleset assigned to
it, permitting different policies to be implemented for things like
jails.
Approved by: phk
Diffstat (limited to 'sys/fs/devfs/devfs_vfsops.c')
-rw-r--r-- | sys/fs/devfs/devfs_vfsops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c index 4b2d770..a46b0c4 100644 --- a/sys/fs/devfs/devfs_vfsops.c +++ b/sys/fs/devfs/devfs_vfsops.c @@ -91,6 +91,7 @@ devfs_mount(mp, ndp, td) fmp->dm_rootdir = devfs_vmkdir("(root)", 6, NULL); fmp->dm_rootdir->de_inode = 2; fmp->dm_basedir = fmp->dm_rootdir; + devfs_rules_newmount(fmp, td); error = devfs_root(mp, &rvp); if (error) { |