QSysInfo doesn't work properly with AppArmor confinement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
qtsystems-opensource-src (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Trying to detect platform (OS) name and version on Ubuntu Touch 15.04 based phones and tablets using QML. On the Ubuntu Desktop QSysInfo provides the following _correct_ values:
QSysInfo:
QSysInfo:
QSysInfo:
However, in a confined environment (e.g. bq Aquaris E5 HD Ubuntu Edition / 15.04 OTA-11) the following _incorrect_ values are provided by QSysInfo:
QSysInfo:
QSysInfo:
QSysInfo:
I suppose it's because QSysInfo tries to (or would need to) access such files on the filesystem that are blocked by AppArmor, like /etc/os-release or such.
Ideally, QSysInfo:
Related bug:
https:/ /bugs.launchpad .net/apparmor/ +bug/1607225