aboutsummaryrefslogtreecommitdiffci
path: root/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
authorGravatar Saya Andy <saya.andy@posteo.com> 2026-09-09 02:04:43 +0700
committerGravatar Saya Andy <saya.andy@posteo.com> 2026-09-27 23:44:47 +0700
commitf07eb0cecbea72de81c5d5cdef5d357f8d31cb91 (patch)
tree7bc8e5fc05171e404979761558deab84ff62d831 /root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr
parent943408430879aac8dfe37382977491709bdbb67c (diff)
downloadkiwi-descriptions-f07eb0cecbea72de81c5d5cdef5d357f8d31cb91.tar.gz
kiwi-descriptions-f07eb0cecbea72de81c5d5cdef5d357f8d31cb91.zip
fix: sensor auto-rotate - fastrpc node name, ssc-accel tag, SELinux QRTR
perms
Diffstat (limited to 'root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr')
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/share/selinux/iio-qipcrtr.te19
1 files changed, 19 insertions, 0 deletions
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/share/selinux/iio-qipcrtr.te b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/share/selinux/iio-qipcrtr.te
new file mode 100644
index 0000000..d92dc21
--- /dev/null
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/share/selinux/iio-qipcrtr.te
@@ -0,0 +1,19 @@
+module iio-qipcrtr 1.0;
+
+// Fedora's policy grants iiosensorproxy_t no qipcrtr_socket permissions at
+// all: the class exists but nothing allows it, because upstream
+// iio-sensor-proxy talks to sensors over IIO and never needed QRTR. The SSC
+// backend libssc brings in here reaches the Qualcomm Sensor Core over the
+// QRTR bus (libssc probes AF_QIPCRTR first; the fastrpc/hexagonrpcd path is
+// what actually serves this board, but the probe alone gets the daemon
+// killed by "QRTR bus unavailable" + "No sensors" without these perms).
+//
+// Hand-written rather than audit2allow'd per-incident: create/bind/... is
+// the full client lifecycle, so a policy reload or libssc update cannot
+// surface a new denied perm one at a time.
+require {
+ type iiosensorproxy_t;
+ class qipcrtr_socket { create bind connect read write getattr setattr getopt setopt shutdown };
+}
+
+allow iiosensorproxy_t self:qipcrtr_socket { create bind connect read write getattr setattr getopt setopt shutdown };