From 62c8b32c715f868a2d2c6ac96b9556aab939dd08 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 1 Jan 2003 03:43:58 +0000 Subject: [PATCH] Use 0600 for permissions for /dev/devctl until it is cloneable. Use UID_ROOT and GID_WHEEL rather than 0. Prompted by: rwatson --- sys/kern/subr_bus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 20262cd54bd3..dddea78823e6 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -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);