summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-12-28 14:58:50 +0000
committerrwatson <rwatson@FreeBSD.org>2002-12-28 14:58:50 +0000
commitfe7f98e604d3e64388da58649c901ca08076e0e0 (patch)
tree5e6f91f1449379246a9023eecf002f7562aed6ea /sys/dev/acpica/acpi.c
parent73bbe5c1264e1985f988fb11a48f25e01c07cbe4 (diff)
downloadFreeBSD-src-fe7f98e604d3e64388da58649c901ca08076e0e0.zip
FreeBSD-src-fe7f98e604d3e64388da58649c901ca08076e0e0.tar.gz
Change ACPI make_dev() calls to use UID_ and GID_ constants rather
than hard-coded uids and gids. Switch the device to a group of wheel instead of operator. Narrow down the permissions on the device to require root privilege to manipulate the system power state. It may be that we can broaden access to the device after review of the access control in ACPI. Submitted by: kris Reviewed by: takawata
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r--sys/dev/acpica/acpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 82b9745..44ebe3d 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -487,7 +487,8 @@ acpi_attach(device_t dev)
/*
* Create the control device
*/
- sc->acpi_dev_t = make_dev(&acpi_cdevsw, 0, 0, 5, 0660, "acpi");
+ sc->acpi_dev_t = make_dev(&acpi_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
+ "acpi");
sc->acpi_dev_t->si_drv1 = sc;
#ifdef ACPI_DEBUGGER
OpenPOWER on IntegriCloud