diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-12-31 06:13:47 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-12-31 06:13:47 +0000 |
commit | 68495449e4f395710ea1ad506ac7732ee2922adc (patch) | |
tree | c11374c1f44deab1fbacb7ac4d01096341632446 /sys/dev/raidframe | |
parent | 606eb482062c47f0626b0585520156f3c95a27ad (diff) | |
download | FreeBSD-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.c | 3 |
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; |