aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/acpica/acpi.c
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2018-07-02 14:15:30 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2018-07-02 14:15:30 +0000
commitd1655c6f39cac71765f78fb32d7ff0a41fddbe86 (patch)
tree85f79da2af214a022fd5f11941d689a2f9bf8c76 /sys/dev/acpica/acpi.c
parent8ab684e234d3b5d6e784d9769d808e6487ecf8c3 (diff)
downloadsrc-d1655c6f39cac71765f78fb32d7ff0a41fddbe86.tar.gz
src-d1655c6f39cac71765f78fb32d7ff0a41fddbe86.zip
Change the group and the permissions on /dev/acpi, to make "acpiconf"
work when called by members of the 'operator' group. They are already allowed to eg power off the system (via suid shutdown(8)), so they might as well be permitted to suspend it. Tested by: xmj@ Reviewed by: delphij@ MFC after: 2 weeks Relnotes: yes Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D16062
Notes
Notes: svn path=/head/; revision=335864
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r--sys/dev/acpica/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 420232812519..c1bfd880c896 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -667,7 +667,7 @@ acpi_attach(device_t dev)
sc->acpi_sleep_disabled = TRUE;
/* Create the control device */
- sc->acpi_dev_t = make_dev(&acpi_cdevsw, 0, UID_ROOT, GID_WHEEL, 0644,
+ sc->acpi_dev_t = make_dev(&acpi_cdevsw, 0, UID_ROOT, GID_OPERATOR, 0664,
"acpi");
sc->acpi_dev_t->si_drv1 = sc;