diff options
author | takawata <takawata@FreeBSD.org> | 2003-02-15 01:46:22 +0000 |
---|---|---|
committer | takawata <takawata@FreeBSD.org> | 2003-02-15 01:46:22 +0000 |
commit | 13db998806c11c1ee13c750abfce62b98f5953f7 (patch) | |
tree | 279d6f919bdeb94f52789912221491e13eca1186 /sys/dev/acpica/acpi_acad.c | |
parent | 12452d351089caef2009110815720045adc0b0a3 (diff) | |
download | FreeBSD-src-13db998806c11c1ee13c750abfce62b98f5953f7.zip FreeBSD-src-13db998806c11c1ee13c750abfce62b98f5953f7.tar.gz |
Allow non-privilaged user to retrive battery or AC line information.
Reviewed by: rwatson
Diffstat (limited to 'sys/dev/acpica/acpi_acad.c')
-rw-r--r-- | sys/dev/acpica/acpi_acad.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c index d7e8ebd..09bb149 100644 --- a/sys/dev/acpica/acpi_acad.c +++ b/sys/dev/acpica/acpi_acad.c @@ -195,6 +195,11 @@ acpi_acad_ioctl(u_long cmd, caddr_t addr, void *arg) return(ENXIO); } + /* + * No security check required: information retrieval only. If + * new functions are added here, a check might be required. + */ + switch (cmd) { case ACPIIO_ACAD_GET_STATUS: acpi_acad_get_status(dev); |