pmi tries to access '/dev/mem' when run as not root.
Bug #36573 reported by
Paul Sladen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Fix Released
|
Medium
|
Paul Sladen |
Bug Description
pmi is used as the interface between programs that want the machine to be put to sleep and the complicated automagic that allows this to happen.
When pmi is queried by a non-root user, it succeeds but also shows severeal attempts at accessing '/dev/mem':
$ pmi capabilities
/dev/mem: Permission denied
/dev/mem: Permission denied
/dev/mem: Permission denied
hibernate suspend
The permissions should be checked at the access avoided, especially if it is not actually required.
Changed in powermanagement-interface: | |
assignee: | nobody → sladen |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
/usr/sbin/pmi
unconditionally pulls in:
/usr/ share/acpi- support/ device- funcs
which does:
manufactu rer=`dmidecode --string system- manufacturer| sed -e 's/ *$//'` `dmidecode --string system- product- name|sed -e 's/ *$//'` `dmidecode --string system-version|sed -e 's/ *$//'`
model=
version=
so it means that most of the time 'pmi capabilities' or 'pmi query' is actually lying as the contents of:
/etc/ default/ acpi-support
are used instead of the machine-specific overrides in:
/usr/ share/acpi- support/ $manufacturer. config