devfsctl - Disable ruletab support; use proper working dirs
authorAlex Hornung <ahornung@gmail.com>
Fri, 14 Aug 2009 16:31:11 +0000 (17:31 +0100)
committerAlex Hornung <ahornung@gmail.com>
Mon, 17 Aug 2009 09:15:44 +0000 (10:15 +0100)
commit8212e7002976ac716f7429e985ed276a08717076
tree27dfb25584e58fc6be14d1bd95d195ae23b00297
parent85819c59e13d33bfebc7dabfd93539fb447b779b
devfsctl - Disable ruletab support; use proper working dirs

* Disable (temporarily) all ruletab support in devfsctl.

* If a configuration file cannot be found, it is searched after in the
  default directory (/etc/devfs) before erroring out.

* When including a file in some other directory, the working directory
  is temporarily changed to that dir, so that further includes work
  as intended. After each include, the working directory is restored
  to the previous one.

* Make sure that all configuration files are owned by root so the
  system is protected from malicious rule files.
usr.sbin/devfsctl/devfsctl.c
usr.sbin/devfsctl/devfsctl.h