Unable to import sqlite3 module in PyOtherSide-based click application on Ubuntu Touch (Pinephone, stable channel)
-
Re: [SOLVED]How to Import Python library to clickable?
I use sqlite3 in my PyOtherSide-based click application. And when I use
clickable desktop
, app works well without any errors on my desktop machine. But when I try to start my app on Pinephone, it fails with this error:qml: Backend: Error: Cannot import module: backend (Traceback (most recent call last): File "/opt/click.ubuntu.com/metersdata.jedi2light.moe/1.0.0/src/backend.py", line 4, in <module> import sqlite3 File "/usr/lib/python3.5/sqlite3/__init__.py", line 23, in <module> from sqlite3.dbapi2 import * File "/usr/lib/python3.5/sqlite3/dbapi2.py", line 27, in <module> from _sqlite3 import * ImportError: /usr/lib/python3.5/lib-dynload/_sqlite3.cpython-35m-aarch64-linux-gnu.so: failed to map segment from shared object )
My app source code: https://gitlab.com/jedi2light/MetersData/-/tree/master
-
Hi @jedi2light, could you please provide the output of
dmesg -w
when you attempt to run this application? -
[ 4197.020461] audit: type=1400 audit(1595617966.871:123): apparmor="DENIED" operation="open" profile="metersdata.jedi2light.moe_metersdata_1.0.0" name="/usr/share/qt5/translations/qt_ru.qm" pid=17320 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 4197.478255] audit: type=1400 audit(1595617967.331:124): apparmor="DENIED" operation="open" profile="metersdata.jedi2light.moe_metersdata_1.0.0" name="/home/phablet/.local/lib/python3.5/site-packages/" pid=17320 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011 [ 4197.478654] audit: type=1400 audit(1595617967.331:125): apparmor="DENIED" operation="open" profile="metersdata.jedi2light.moe_metersdata_1.0.0" name="/usr/local/lib/python3.5/dist-packages/" pid=17320 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 4197.539847] audit: type=1400 audit(1595617967.391:126): apparmor="DENIED" operation="open" profile="metersdata.jedi2light.moe_metersdata_1.0.0" name="/home/phablet/.local/lib/python3.5/site-packages/" pid=17320 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011 [ 4197.540282] audit: type=1400 audit(1595617967.391:127): apparmor="DENIED" operation="open" profile="metersdata.jedi2light.moe_metersdata_1.0.0" name="/usr/local/lib/python3.5/dist-packages/" pid=17320 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 4197.967955] audit: type=1400 audit(1595617967.819:128): apparmor="DENIED" operation="mknod" profile="metersdata.jedi2light.moe_metersdata_1.0.0" name="/opt/click.ubuntu.com/metersdata.jedi2light.moe/1.0.0/src/__pycache__/backend.cpython-35.pyc.281473669502416" pid=17320 comm="QPythonWorker" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011 [ 4197.991467] audit: type=1400 audit(1595617967.843:129): apparmor="DENIED" operation="create" profile="metersdata.jedi2light.moe_metersdata_1.0.0" pid=17320 comm="qmlscene" family="netlink" sock_type="raw" protocol=15 requested_mask="create" denied_mask="create" [ 4198.015411] audit: type=1400 audit(1595617967.867:130): apparmor="DENIED" operation="file_mmap" profile="metersdata.jedi2light.moe_metersdata_1.0.0" name="/usr/lib/python3.5/lib-dynload/_sqlite3.cpython-35m-aarch64-linux-gnu.so" pid=17320 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0
-
I'm getting similar errors with my app running on a Pinephone with development channel version 143, the app works fine on 32bit phones and on my laptop. Source code: https://github.com/evilbunny2008/geocaching/
[ 3980.945188] audit: type=1400 audit(1597404977.870:145): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.12" name="/usr/share/qt5/translations/qt_en.qm" pid=14705 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 3981.233455] audit: type=1400 audit(1597404978.162:146): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.12" name="/usr/local/lib/python3.5/dist-packages/" pid=14705 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 3981.285485] audit: type=1400 audit(1597404978.214:147): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.12" name="/usr/local/lib/python3.5/dist-packages/" pid=14705 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 3981.561385] audit: type=1400 audit(1597404978.490:148): apparmor="DENIED" operation="mkdir" profile="geocaching.evilbunny_geocaching_0.0.12" name="/opt/click.ubuntu.com/geocaching.evilbunny/0.0.12/py/__pycache__/" pid=14705 comm="QPythonWorker" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011 [ 3981.680623] audit: type=1400 audit(1597404978.606:149): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.12" name="/sys/bus/" pid=14705 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 3981.680637] audit: type=1400 audit(1597404978.606:150): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.12" name="/sys/class/" pid=14705 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 3981.688639] audit: type=1400 audit(1597404978.614:151): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.12" name="/usr/lib/python3.5/lib-dynload/_json.cpython-35m-aarch64-linux-gnu.so" pid=14705 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 3981.707021] audit: type=1400 audit(1597404978.634:152): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.12" name="/usr/lib/python3.5/lib-dynload/_json.cpython-35m-aarch64-linux-gnu.so" pid=14705 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 3981.721665] audit: type=1400 audit(1597404978.650:153): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.12" name="/usr/lib/python3.5/lib-dynload/_json.cpython-35m-aarch64-linux-gnu.so" pid=14705 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 3981.725777] audit: type=1400 audit(1597404978.654:154): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.12" name="/usr/lib/python3.5/lib-dynload/_json.cpython-35m-aarch64-linux-gnu.so" pid=14705 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 4032.727970] kauditd_printk_skb: 37 callbacks suppressed
-
I'm getting similar errors while trying to make a ssl connection:
[20321.564468] audit: type=1400 audit(1597652790.462:122): apparmor="DENIED" operation="open" profile="nswfuelcheck.evilbunny_NSWFuelCheck_0.0.5" name="/usr/share/qt5/translations/qt_en.qm" pid=30363 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [20322.296076] audit: type=1400 audit(1597652791.194:123): apparmor="DENIED" operation="open" profile="nswfuelcheck.evilbunny_NSWFuelCheck_0.0.5" name="/usr/local/lib/python3.5/dist-packages/" pid=30363 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [20322.346824] audit: type=1400 audit(1597652791.246:124): apparmor="DENIED" operation="open" profile="nswfuelcheck.evilbunny_NSWFuelCheck_0.0.5" name="/usr/local/lib/python3.5/dist-packages/" pid=30363 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [20323.688643] audit: type=1400 audit(1597652792.586:125): apparmor="DENIED" operation="mknod" profile="nswfuelcheck.evilbunny_NSWFuelCheck_0.0.5" name="/home/phablet/.cache/qt_cache_check" pid=30363 comm="qmlscene" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011 [20324.051695] audit: type=1400 audit(1597652792.950:126): apparmor="DENIED" operation="mkdir" profile="nswfuelcheck.evilbunny_NSWFuelCheck_0.0.5" name="/opt/click.ubuntu.com/nswfuelcheck.evilbunny/0.0.5/qml/__pycache__/" pid=30363 comm="QPythonWorker" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011 [20324.250626] audit: type=1400 audit(1597652793.150:127): apparmor="DENIED" operation="open" profile="nswfuelcheck.evilbunny_NSWFuelCheck_0.0.5" name="/sys/bus/" pid=30363 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [20324.250760] audit: type=1400 audit(1597652793.150:128): apparmor="DENIED" operation="open" profile="nswfuelcheck.evilbunny_NSWFuelCheck_0.0.5" name="/sys/class/" pid=30363 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [20324.293528] audit: type=1400 audit(1597652793.190:129): apparmor="DENIED" operation="file_mmap" profile="nswfuelcheck.evilbunny_NSWFuelCheck_0.0.5" name="/usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-aarch64-linux-gnu.so" pid=30363 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [20324.305824] audit: type=1400 audit(1597652793.206:130): apparmor="DENIED" operation="file_mmap" profile="nswfuelcheck.evilbunny_NSWFuelCheck_0.0.5" name="/usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-aarch64-linux-gnu.so" pid=30363 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [20324.414294] audit: type=1400 audit(1597652793.314:131): apparmor="DENIED" operation="file_mmap" profile="nswfuelcheck.evilbunny_NSWFuelCheck_0.0.5" name="/usr/lib/python3.5/lib-dynload/_hashlib.cpython-35m-aarch64-linux-gnu.so" pid=30363 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [20334.621987] systemd-logind[2298]: New session 17 of user phablet.
-
This is a bit of a late reply, but I believe we've fixed this issue with https://github.com/ubports/apparmor-easyprof-ubuntu/pull/17. It will be part of OTA-14.
-
@UniSuperBox said in Unable to import sqlite3 module in PyOtherSide-based click application on Ubuntu Touch (Pinephone, stable channel):
This is a bit of a late reply, but I believe we've fixed this issue with https://github.com/ubports/apparmor-easyprof-ubuntu/pull/17. It will be part of OTA-14.
When is this likely to turn up in PinePhone builds?
-
It should be on the devel and rc channels already. If it isn't let me know, I've got some investigating to do then.
-
@UniSuperBox said in Unable to import sqlite3 module in PyOtherSide-based click application on Ubuntu Touch (Pinephone, stable channel):
It should be on the devel and rc channels already. If it isn't let me know, I've got some investigating to do then.
I just updated to 258 of the dev channel and unfortunately it still doesn't work for me:
"PyOtherSide error: Traceback (most recent call last):\n\n File \"/opt/click.ubuntu.com/geocaching.evilbunny/0.0.13/py/util.py\", line 11, in <module>\n import mysqlite\n\n File \"/opt/click.ubuntu.com/geocaching.evilbunny/0.0.13/py/mysqlite.py\", line 6, in <module>\n import sqlite3\n\n File \"/usr/lib/python3.5/sqlite3/__init__.py\", line 23, in <module>\n from sqlite3.dbapi2 import *\n\n File \"/usr/lib/python3.5/sqlite3/dbapi2.py\", line 27, in <module>\n from _sqlite3 import *\n\nImportError: /usr/lib/python3.5/lib-dynload/_sqlite3.cpython-35m-aarch64-linux-gnu.so: failed to map segment from shared object\n" Unhandled PyOtherSide error: Cannot import module: util (Traceback (most recent call last): File "/opt/click.ubuntu.com/geocaching.evilbunny/0.0.13/py/util.py", line 11, in <module> import mysqlite File "/opt/click.ubuntu.com/geocaching.evilbunny/0.0.13/py/mysqlite.py", line 6, in <module> import sqlite3 File "/usr/lib/python3.5/sqlite3/__init__.py", line 23, in <module> from sqlite3.dbapi2 import * File "/usr/lib/python3.5/sqlite3/dbapi2.py", line 27, in <module> from _sqlite3 import * ImportError: /usr/lib/python3.5/lib-dynload/_sqlite3.cpython-35m-aarch64-linux-gnu.so: failed to map segment from shared object
[ 85.947882] audit: type=1400 audit(1603588867.617:57): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.13" name="/sys/bus/" pid=5121 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 85.948193] audit: type=1400 audit(1603588867.617:58): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.13" name="/sys/class/" pid=5121 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 86.335314] audit: type=1400 audit(1603588868.005:59): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_json.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 86.341351] audit: type=1400 audit(1603588868.009:60): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_json.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 86.399033] audit: type=1400 audit(1603588868.065:61): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_json.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 86.401932] audit: type=1400 audit(1603588868.069:62): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_json.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 89.372408] kauditd_printk_skb: 17 callbacks suppressed [ 89.372418] audit: type=1400 audit(1603588871.041:80): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 89.414910] audit: type=1400 audit(1603588871.081:81): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 89.457158] audit: type=1400 audit(1603588871.125:82): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 89.654291] audit: type=1400 audit(1603588871.321:83): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 89.697119] audit: type=1400 audit(1603588871.365:84): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 89.758524] audit: type=1400 audit(1603588871.425:85): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 90.244033] audit: type=1400 audit(1603588871.913:86): apparmor="DENIED" operation="mkdir" profile="geocaching.evilbunny_geocaching_0.0.13" name="/opt/click.ubuntu.com/geocaching.evilbunny/0.0.13/py/__pycache__/" pid=5121 comm="QPythonWorker" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011 [ 90.252687] audit: type=1400 audit(1603588871.921:87): apparmor="DENIED" operation="mkdir" profile="geocaching.evilbunny_geocaching_0.0.13" name="/opt/click.ubuntu.com/geocaching.evilbunny/0.0.13/py/__pycache__/" pid=5121 comm="QPythonWorker" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011 [ 90.261230] audit: type=1400 audit(1603588871.929:88): apparmor="DENIED" operation="file_mmap" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/lib/python3.5/lib-dynload/_sqlite3.cpython-35m-aarch64-linux-gnu.so" pid=5121 comm="QPythonWorker" requested_mask="m" denied_mask="m" fsuid=32011 ouid=0 [ 105.283929] systemd-logind[2262]: New session 6 of user phablet.
-
Aha, I see. There was an apparmor package in
xenial_-_edge
that could be removed. The new version should filter in to the image with its next build. -
@UniSuperBox said in Unable to import sqlite3 module in PyOtherSide-based click application on Ubuntu Touch (Pinephone, stable channel):
Aha, I see. There was an apparmor package in
xenial_-_edge
that could be removed. The new version should filter in to the image with its next build.Since updating the phone today my app is working, although I noticed some other denials, and I don't know if they are normal or to be worried about and/or if I need to submit bugs about them:
[ 23.548647] audit: type=1400 audit(1603793937.700:50): apparmor="DENIED" operation="open" profile="/usr/lib/telepathy/telepathy-ofono" name="/dev/tty" pid=3370 comm="telepathy-ofono" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
[ 103.781200] audit: type=1400 audit(1603794497.039:51): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/local/lib/python3.5/dist-packages/" pid=5425 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 104.001367] audit: type=1400 audit(1603794497.259:52): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.13" name="/usr/local/lib/python3.5/dist-packages/" pid=5425 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 104.550108] audit: type=1400 audit(1603794497.811:53): apparmor="DENIED" operation="mkdir" profile="geocaching.evilbunny_geocaching_0.0.13" name="/opt/click.ubuntu.com/geocaching.evilbunny/0.0.13/py/__pycache__/" pid=5425 comm="QPythonWorker" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011 [ 104.694942] init: ubuntu-location-service main process (1964) killed by SEGV signal [ 104.695009] init: ubuntu-location-service main process ended, respawning [ 104.769467] audit: type=1400 audit(1603794498.023:54): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.13" name="/sys/bus/" pid=5425 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 104.772375] audit: type=1400 audit(1603794498.027:55): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.13" name="/sys/class/" pid=5425 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 105.178621] audit: type=1400 audit(1603794498.436:56): apparmor="DENIED" operation="mkdir" profile="geocaching.evilbunny_geocaching_0.0.13" name="/opt/click.ubuntu.com/geocaching.evilbunny/0.0.13/py/__pycache__/" pid=5425 comm="QPythonWorker" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011 [ 105.226465] audit: type=1400 audit(1603794498.484:57): apparmor="DENIED" operation="mkdir" profile="geocaching.evilbunny_geocaching_0.0.13" name="/opt/click.ubuntu.com/geocaching.evilbunny/0.0.13/py/__pycache__/" pid=5425 comm="QPythonWorker" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011 [ 106.789084] audit: type=1400 audit(1603794500.049:58): apparmor="DENIED" operation="open" profile="geocaching.evilbunny_geocaching_0.0.13" name="/proc/5425/mounts" pid=5425 comm="QPythonWorker" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011 [ 106.922152] audit: type=1400 audit(1603794500.181:59): apparmor="DENIED" operation="exec" profile="geocaching.evilbunny_geocaching_0.0.13" name="/sbin/ldconfig" pid=5577 comm="QPythonWorker" requested_mask="x" denied_mask="x" fsuid=32011 ouid=0 [ 106.942891] audit: type=1400 audit(1603794500.201:60): apparmor="DENIED" operation="exec" profile="geocaching.evilbunny_geocaching_0.0.13" name="/bin/dash" pid=5579 comm="QPythonWorker" requested_mask="x" denied_mask="x" fsuid=32011 ouid=0 [ 111.131108] kauditd_printk_skb: 14 callbacks suppressed [ 111.131123] audit: type=1107 audit(1603794504.395:75): pid=1938 uid=102 auid=4294967295 ses=4294967295 subj==unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/com/lomiri/hfd" interface="com.lomiri.hfd.Vibrator" member="vibrate" mask="send" name="com.lomiri.hfd" pid=5425 label="geocaching.evilbunny_geocaching_0.0.13" peer_pid=1969 peer_label="unconfined" exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?' [ 115.088005] audit: type=1400 audit(1603794508.349:76): apparmor="DENIED" operation="mknod" profile="geocaching.evilbunny_geocaching_0.0.13" name="/home/phablet/.cache/qt_cache_check" pid=5425 comm="qmlscene" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011
Below trigger when I open the sms app
[ 1324.355093] audit: type=1400 audit(1603795717.902:77): apparmor="DENIED" operation="open" profile="messaging-app" name="/sys/bus/" pid=18589 comm="messaging-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 1324.364124] audit: type=1400 audit(1603795717.914:78): apparmor="DENIED" operation="open" profile="messaging-app" name="/sys/devices/platform/gpio-keys/input/input2/" pid=18589 comm="messaging-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 1324.365838] audit: type=1400 audit(1603795717.914:79): apparmor="DENIED" operation="open" profile="messaging-app" name="/sys/devices/platform/gpio-keys/input/input2/event2/" pid=18589 comm="messaging-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 1324.366931] audit: type=1400 audit(1603795717.914:80): apparmor="DENIED" operation="open" profile="messaging-app" name="/sys/devices/platform/soc/1c21800.lradc/input/input3/" pid=18589 comm="messaging-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 1324.368208] audit: type=1400 audit(1603795717.918:81): apparmor="DENIED" operation="open" profile="messaging-app" name="/sys/devices/platform/soc/1c21800.lradc/input/input3/event3/" pid=18589 comm="messaging-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 1324.369405] audit: type=1400 audit(1603795717.918:82): apparmor="DENIED" operation="open" profile="messaging-app" name="/sys/devices/platform/soc/1c2ac00.i2c/i2c-0/0-005d/input/input1/" pid=18589 comm="messaging-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 1324.370032] audit: type=1400 audit(1603795717.918:83): apparmor="DENIED" operation="open" profile="messaging-app" name="/sys/devices/platform/soc/1c2ac00.i2c/i2c-0/0-005d/input/input1/event1/" pid=18589 comm="messaging-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 1324.370577] audit: type=1400 audit(1603795717.918:84): apparmor="DENIED" operation="open" profile="messaging-app" name="/sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/input/input0/" pid=18589 comm="messaging-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0 [ 1324.371400] audit: type=1400 audit(1603795717.922:85): apparmor="DENIED" operation="open" profile="messaging-app" name="/sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/input/input0/event0/" pid=18589 comm="messaging-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
-
Those appear to be normal, @evilbunny.
[ 104.550108] audit: type=1400 audit(1603794497.811:53): apparmor="DENIED" operation="mkdir" profile="geocaching.evilbunny_geocaching_0.0.13" name="/opt/click.ubuntu.com/geocaching.evilbunny/0.0.13/py/__pycache__/" pid=5425 comm="QPythonWorker" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011
Here your app is being denied the ability to create its pycache directory in
/opt/click.ubuntu.com/
. This is expected, the only directories you have permission to create files in are its named directories in~/.cache/
,~/.local/share/
, and~/.config/
.The rest should be unconcerning unless you run into a problem in some app functionality.
-
Ok, thanks for the help.