Use 0600 for permissions for /dev/devctl until it is cloneable.

Use UID_ROOT and GID_WHEEL rather than 0.

Prompted by: rwatson
This commit is contained in:
Warner Losh 2003-01-01 03:43:58 +00:00
parent 4d6f28e632
commit 62c8b32c71

View File

@ -256,7 +256,8 @@ dev_t devctl_dev;
static void
devinit(void)
{
devctl_dev = make_dev(&dev_cdevsw, 0, 0, 0, 0644, "devctl");
devctl_dev = make_dev(&dev_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
"devctl");
mtx_init(&devsoftc.mtx, "dev mtx", "devd", MTX_DEF);
cv_init(&devsoftc.cv, "dev cv");
TAILQ_INIT(&devsoftc.devq);