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:
parent
1c75404899
commit
07ca1fdb84
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user