summaryrefslogtreecommitdiffstats
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-12-31 06:13:47 +0000
committerrwatson <rwatson@FreeBSD.org>2002-12-31 06:13:47 +0000
commit68495449e4f395710ea1ad506ac7732ee2922adc (patch)
treec11374c1f44deab1fbacb7ac4d01096341632446 /sys/dev/raidframe
parent606eb482062c47f0626b0585520156f3c95a27ad (diff)
downloadFreeBSD-src-68495449e4f395710ea1ad506ac7732ee2922adc.zip
FreeBSD-src-68495449e4f395710ea1ad506ac7732ee2922adc.tar.gz
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
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_freebsdkintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/raidframe/rf_freebsdkintf.c b/sys/dev/raidframe/rf_freebsdkintf.c
index 11c7864..77fd13c 100644
--- a/sys/dev/raidframe/rf_freebsdkintf.c
+++ b/sys/dev/raidframe/rf_freebsdkintf.c
@@ -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;
OpenPOWER on IntegriCloud