Use UID_ and GID_ constants for uid and gid arguments to make_dev()

for the raidctl device.

Select a more conservative default for the permissions for /dev/raidctl
since the operations are performed using ioctl() not read() and write().

Submitted by:	kris
Reviewed by:	scottl
This commit is contained in:
Robert Watson 2002-12-31 06:13:47 +00:00
parent 1c75404899
commit 07ca1fdb84
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108485

View file

@ -383,7 +383,8 @@ raidattach(void)
return;
}
parent_sc->sc_dev= make_dev(&raidctl_cdevsw, 0, 0, 0, 0644, "raidctl");
parent_sc->sc_dev= make_dev(&raidctl_cdevsw, 0, UID_ROOT, GID_WHEEL,
0600, "raidctl");
parent_sc->sc_dev->si_drv1 = parent_sc;
raidctl_dev = parent_sc->sc_dev;