From 68495449e4f395710ea1ad506ac7732ee2922adc Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 31 Dec 2002 06:13:47 +0000 Subject: 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 --- sys/dev/raidframe/rf_freebsdkintf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/raidframe') 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; -- cgit v1.1