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).
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).