summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs_rule.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix style(9) of my previous commit.cperciva2004-01-211-1/+1
| | | | | Noticed by: nate Approved by: nate, rwatson (mentor)
* Allow devfs path rules to work on directories. Without this fix,cperciva2004-01-211-1/+2
| | | | | | | | devfs rule add path fd unhide is a no-op, while it should unhide the fd subdirectory. Approved by: phk, rwatson (mentor) PR: kern/60897
* Back out M_* changes, per decision of the TRB.imp2003-02-191-3/+3
| | | | Approved by: trb
* NODEVFS cleanup: remove #ifdefs.phk2003-01-291-2/+0
|
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-3/+3
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Add symlink support to devfs_rule_matchpath(). This allows the userdd2003-01-111-1/+2
| | | | to unhide symlinks as well as hide them.
* Fix comments and one resulting code confusion about the type of thephk2002-10-161-1/+1
| | | | | | "command" argument to VOP_IOCTL. Spotted by: FlexeLint.
* Treat the pathptrn field as a real pattern with the aid of fnmatch().dd2002-10-081-15/+1
|
* Unimplement panic(8) by making sure that we don't recurse into add2002-07-281-5/+11
| | | | | | | ruleset. If we do, that means there's a ruleset loop (10 includes 20 include 30 includes 10), which will quickly cause a double fault due to stack overflow (since "include" is implemented by recursion). (Previously, we only checked that X didn't include X.)
* Introduce the DEVFS "rule" subsystem. DEVFS rules permit thedd2002-07-171-0/+839
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
OpenPOWER on IntegriCloud