jcnelson / vdev

A device-file manager for *nix
GNU General Public License v3.0
101 stars 13 forks source link

Per-action UID and GID #18

Open jcnelson opened 9 years ago

jcnelson commented 9 years ago

Add uid= and gid= to vdev actions to have vdevd drop privileges before running the action. By default, vdevd runs the actions with its uid/gid (i.e. root.root). Also, add a config option to set global uid= and gid= defaults.

Some actions will need root privileges to issue low-level device ioctls and get back meaningful information. Others may not, however, depending on the ownership of /dev (or wherever vdevd creates device files).