Use UID_ and GID_ constants instead of hard-coded numeric values
with make_dev(). Use OPERATOR instead of implicit WHEEL to match other storage devices. Use a mode of 0640 to be consistent with other storage devices. Submitted by: kris Reviewed by: scottl
This commit is contained in:
parent
f546200705
commit
4cb5c6109a
@ -3178,7 +3178,8 @@ asr_attach (ATTACH_ARGS)
|
||||
/*
|
||||
* Generate the device node information
|
||||
*/
|
||||
(void)make_dev(&asr_cdevsw, unit, 0, 0, S_IRWXU, "rasr%d", unit);
|
||||
(void)make_dev(&asr_cdevsw, unit, UID_ROOT, GID_OPERATOR, 0640,
|
||||
"rasr%d", unit);
|
||||
ATTACH_RETURN(0);
|
||||
} /* asr_attach */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user