diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-12-28 14:58:50 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-12-28 14:58:50 +0000 |
commit | fe7f98e604d3e64388da58649c901ca08076e0e0 (patch) | |
tree | 5e6f91f1449379246a9023eecf002f7562aed6ea /sys/dev/acpica | |
parent | 73bbe5c1264e1985f988fb11a48f25e01c07cbe4 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/dev/acpica/acpi.c | 3 |
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 |