/dev/mem: Operation not permitted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
laptop-detect (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When running this tool under saucy, on my laptop:
$ laptop-detect
/dev/mem: Operation not permitted
$ echo $?
1
On 12.04, the "/dev/mem: Operation not permitted" error does not appear.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: laptop-detect 0.13.7ubuntu2
ProcVersionSign
Uname: Linux 3.11.0-1-generic x86_64
ApportVersion: 2.12-0ubuntu3
Architecture: amd64
Date: Mon Aug 19 15:13:55 2013
Dependencies:
dmidecode 2.12-1
gcc-4.8-base 4.8.1-9ubuntu1
libc6 2.17-91ubuntu1
libgcc1 1:4.8.1-9ubuntu1
multiarch-support 2.17-91ubuntu1
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-05-08 (102 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130508)
MarkForUpload: True
SourcePackage: laptop-detect
UpgradeStatus: No upgrade log present (probably fresh install)
That's laptop-detect's way of saying "I need to run as root". Presumably the permissions on /dev/mem got tightened after precise.
As you want to use that in a pm-utils script, the root privilege requirement shouldn't be an issue?