Bug 1950642
| Summary: | selinux is preventing gnome-shell to access sock_file with write access. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Martin Wolf <mwolf> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 34 | CC: | dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, plautrba, vmojzis, zpytela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-04-19 16:16:00 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 1949712 *** |
sealert -l 9f7c707c-592b-42b1-8a01-4ccd44e43d40 SELinux hindert gnome-shell daran, mit write-Zugriff auf sock_file dbus-ZQv2LliIUE zuzugreifen. ***** Plugin catchall (100. Wahrscheinlichkeit) schlägt vor ************** Wenn Sie denken, dass es gnome-shell standardmäßig erlaubt sein sollte, write Zugriff auf dbus-ZQv2LliIUE sock_file zu erhalten. Dann sie sollten dies als Fehler melden. Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen. Ausführen zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen: # ausearch -c 'gnome-shell' --raw | audit2allow -M my-gnomeshell # semodule -X 300 -i my-gnomeshell.pp zusätzliche Information: Quellkontext system_u:system_r:xdm_t:s0-s0:c0.c1023 Zielkontext system_u:object_r:tmp_t:s0 Zielobjekte dbus-ZQv2LliIUE [ sock_file ] Quelle gnome-shell Quellpfad gnome-shell Port <Unknown> Host localhost.localdomain RPM-Pakete der Quelle RPM-Pakete des Ziels SELinux Policy RPM selinux-policy-targeted-34-1.fc34.noarch Local Policy RPM selinux-policy-targeted-34-1.fc34.noarch SELinux aktiviert True Richtlinientyp targeted Enforcing-Modus Enforcing Rechnername localhost.localdomain Plattform Linux localhost.localdomain 5.11.14-300.fc34.x86_64 #1 SMP Wed Apr 14 15:25:23 UTC 2021 x86_64 x86_64 Anzahl der Alarme 49 Zuerst gesehen 2021-04-16 16:30:57 CEST Zuletzt gesehen 2021-04-17 12:36:57 CEST Lokale ID 9f7c707c-592b-42b1-8a01-4ccd44e43d40 Raw-Audit-Meldungen type=AVC msg=audit(1618655817.322:807): avc: denied { write } for pid=1743 comm="ibus-x11" name="dbus-ZQv2LliIUE" dev="tmpfs" ino=49 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=sock_file permissive=0 Hash: gnome-shell,xdm_t,tmp_t,sock_file,write