mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 07:04:53 +00:00
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:
parent
f1421a8972
commit
78408171bd
|
@ -6000,7 +6000,7 @@ static void
|
|||
devctl2_init(void)
|
||||
{
|
||||
make_dev_credf(MAKEDEV_ETERNAL, &devctl2_cdevsw, 0, NULL,
|
||||
UID_ROOT, GID_WHEEL, 0600, "devctl2");
|
||||
UID_ROOT, GID_WHEEL, 0644, "devctl2");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue