Bug 1647920
Summary: | ThinLinc unusable on Fedora 29 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Samuel <samuel> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 29 | CC: | dwalsh, lvrabec, mgrepl, ossman, plautrba |
Target Milestone: | --- | ||
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: | 2018-12-12 12:25:07 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: |
Description
Samuel
2018-11-08 14:39:24 UTC
I have reproduced the problem on two different machines, on which both worked flawlessly on Fedora 28, and both showing the exact same problem after upgrading to Fedora 29. This is also broken on Rawhide, so no recent fix it seems. Oddly enough sesearch doesn't really list this as permitted on Fedora 28 either: > $ sesearch -A -s init_t -t thinlinc_webaccess_t -c dbus -p send_msg > $ Yet it still works. There is very little difference between the f28 and f29 branches here: https://github.com/fedora-selinux/selinux-policy Perhaps it isn't a policy change but rather that systemd has started doing something new in Fedora 29? Or did dbus not properly enforce the rules before? Still, thinlinc_webaccess_t has this policy: > unconfined_domain(thinlinc_webaccess_t) So it shouldn't really be prevented from anything. Explicitly adding: > auth_use_nsswitch(thinlinc_webaccess_t) does get things up and rolling. Is there perhaps a missing call to that somewhere? Or should unconfined_domain() have a rule too allow all dbus communication? Still doesn't explain why Fedora 28 works though, because the rules for this seem to be the same... Help? :/ Ping! Could someone give us some guidance here? This will cause quite a bit of problems for our users. :/ Should we change the added policy? Or is this indeed a bug that we need to wait for you guys to fix? Hi, We don't ship policy for thinlinc. I don't know which package brings this policy but this SELinux macro will fix it: init_dbus_chat(thinlinc_webaccess_t) Could somebody add this macro there? THanks, Lukas. Sure, we can fix that. However, is it really sane that this is needed when the unconfined_domain() macro is used? It doesn't really match the description given for that macro. Or should we file a bug with the upstream refpolicy? I found some more commits on this theme upstream, and I've also reported the issue there: https://github.com/SELinuxProject/refpolicy/issues/18 For reference, the bug went away as I updated the system and dbus-daemon got replaced by dbus-broker. If I'm reading the code and traces correctly, dbus-broker does not do a check on replies so this bug is avoided. |