aboutsummaryrefslogtreecommitdiffci
path: root/config.sh
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-11-05 15:13:58 +0400
commit2460fc9bcc626c812f099221de38b592a431f3c4 (patch)
treecb0a0aae90454c98bc1db96d9c20dd60c2af0ff7 /config.sh
parent748d42464adb9604596cdf37e7e75710da55ad93 (diff)
downloadkiwi-descriptions-2460fc9bcc626c812f099221de38b592a431f3c4.tar.gz
kiwi-descriptions-2460fc9bcc626c812f099221de38b592a431f3c4.zip
fix: sensor auto-rotate - fastrpc node name, ssc-accel tag, SELinux QRTR
perms
Diffstat (limited to 'config.sh')
-rwxr-xr-xconfig.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/config.sh b/config.sh
index 9385627..dd6f458 100755
--- a/config.sh
+++ b/config.sh
@@ -709,6 +709,22 @@ install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system
# hexagonrpc.service in through the drop-in above.
systemctl enable hexagonrpc.service
+# Fedora's SELinux policy has no qipcrtr_socket permissions for
+# iiosensorproxy_t; the libssc backend needs them to probe the QRTR bus, and
+# without them the daemon exits with "No sensors or missing kernel drivers".
+# Compile and install the local module that grants them (see the .te for
+# details). checkmodule/semodule_package come from checkpolicy; it stays
+# installed because removing it takes policycoreutils-python-utils
+# (semanage, audit2allow) with it.
+dnf install -y checkpolicy
+install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/share/selinux/iio-qipcrtr.te \
+ /usr/local/share/selinux/iio-qipcrtr.te
+checkmodule -M -m -o /usr/local/share/selinux/iio-qipcrtr.mod \
+ /usr/local/share/selinux/iio-qipcrtr.te
+semodule_package -o /usr/local/share/selinux/iio-qipcrtr.pp \
+ -m /usr/local/share/selinux/iio-qipcrtr.mod
+semodule -i /usr/local/share/selinux/iio-qipcrtr.pp
+
# Cameras (msm/camss). Nothing has to be wired up at boot. libcamera's "simple"
# pipeline handler claims qcom-camss and builds the media graph itself in
# configure(), including flipping the csiphy -> msm_csid0 link between the rear