devctl2: Change to 644 protections

We make sure that we check for device privs (usually meaning root or
better) for everything. To allow other functions that don't require
this, default to 644 protection.

Sponsored by:		Netflix
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D32863
This commit is contained in:
Warner Losh 2022-02-28 14:26:19 -07:00
parent f1421a8972
commit 78408171bd

View file

@ -6000,7 +6000,7 @@ static void
devctl2_init(void) devctl2_init(void)
{ {
make_dev_credf(MAKEDEV_ETERNAL, &devctl2_cdevsw, 0, NULL, make_dev_credf(MAKEDEV_ETERNAL, &devctl2_cdevsw, 0, NULL,
UID_ROOT, GID_WHEEL, 0600, "devctl2"); UID_ROOT, GID_WHEEL, 0644, "devctl2");
} }
/* /*