Bug 2319766
| Summary: | iio-sensor-proxy systemd unit service fails | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Kefah Issa <kefah.issa> |
| Component: | iio-sensor-proxy | Assignee: | Michel Lind <michel> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 41 | CC: | baq2r1ll2, gnome-sig, igor.raits, kde-sig, manthony.nw, michel, mjs, patrick.lang, post, y9t7sypezp, zpytela |
| Target Milestone: | --- | Keywords: | Desktop |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-11-25 08:11:05 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Kefah Issa
2024-10-18 12:19:50 UTC
The generated iio_sensor.te file
module iio_sensor 1.0;
require {
type device_t;
type sysfs_t;
type iiosensorproxy_t;
class file write;
class dir { add_name write };
class unix_dgram_socket create;
class chr_file { open read };
}
#============= iiosensorproxy_t ==============
allow iiosensorproxy_t device_t:chr_file { open read };
allow iiosensorproxy_t self:unix_dgram_socket create;
allow iiosensorproxy_t sysfs_t:dir write;
allow iiosensorproxy_t sysfs_t:dir add_name;
allow iiosensorproxy_t sysfs_t:file write;
I can confirm this bug also affects Fedora 41 Beta on Microsoft 2 in 1 and Dell tablet devices for me. The live iso for the Beta downloaded from the Fedora site and the initial installation both work correctly. However, after a dnf update, the screen autorotation stops working. The workarounds in the previous message both work for me once logged into the Gnome desktop however, the GDM login screen still does not rotate automatically. In previous Fedora releases, both the GDM and Gnome desktop screens rotated automatically. Also, in previous Fedora releases, the screen brightness responded to the surrounding light levels automatically. I believe this funcionality is also provided via iio-sensor-proxy. This appears to be a duplicate of the following bug, which is filed against component selinux-policy: Bug 2324181 - selinux is denying iio-sensor-proxy write access to sysfs which it needs for certain iio sensors The first part has been resolved, the second one continues in bz#2324181. |