Bug 810508
Summary: | network service can't talk to firewalld | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jiri Popelka <jpopelka> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 17 | CC: | dominick.grift, dwalsh, mgrepl, notting, twoerner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.10.0-114.fc17 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-18 22:50:37 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
Jiri Popelka
2012-04-06 13:30:39 UTC
Jiri what label do these processes run with dhcpc_t? IE Does the init script run firewall I have just checked in a fix to allow dhclient to dbus chat with the firewall daemon selinux-policy-3.10.0-112.fc17 (In reply to comment #1) > IE Does the init script run firewall It runs firewall-cmd (command line interface to firewalld) In ifup-post: /usr/bin/firewall-cmd --zone="${ZONE}" --change --interface="${DEVICE}" In ifdown-post: /usr/bin/firewall-cmd --remove --interface="${DEVICE}" (In reply to comment #2) > I have just checked in a fix to allow dhclient to dbus chat with the firewall > daemon > selinux-policy-3.10.0-112.fc17 I don't understand. I hadn't mentioned dhclient anywhere, had I ? I believe ifup and ifdown run dhclient and dhclient is not allowed to talk to firewalld. What AVC messages are you seeing when you execute this? ausearch -m avc dhclient is not talking to firewalld, but /etc/sysconfig/network-scripts/ifdown-post and /etc/sysconfig/network-scripts/ifup-post are using firewall-cmd to talk to firewalld. Well what context to they run as they should be running as unconfined_t which should be able to send dbus messages to firewalld, I guess we need to allow firewalld to send messages to unconfined_t? I now allow unconfined_t, sysadm_t and networkmanager to dbus chat with firewalld. (In reply to comment #4) > What AVC messages are you seeing when you execute this? > ausearch -m avc 'ausearch -m avc' doesn't show any new entry after restarting network service. and ausearch -m user_avc (In reply to comment #9) > ausearch -m user_avc time->Wed Apr 11 09:13:11 2012 type=USER_AVC msg=audit(1334128391.889:9368): pid=0 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: denied { send_msg } for msgtype=method_return dest=:1.330 spid=5506 tpid=5913 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=dbus exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Apr 11 09:13:36 2012 type=USER_AVC msg=audit(1334128416.926:9373): pid=0 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: denied { send_msg } for msgtype=error error_name=org.freedesktop.DBus.Python.dbus.exceptions.DBusException dest=:1.330 spid=5506 tpid=5913 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=dbus exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' Which means they run with initrc_t context. $ ausearch -m user_avc |audit2allow -M mypolicy $ semodule -i mypol.pp then it should work. Yes we should allow this. selinux-policy-3.10.0-114.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-114.fc17 Package selinux-policy-3.10.0-114.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-114.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-5870/selinux-policy-3.10.0-114.fc17 then log in and leave karma (feedback). selinux-policy-3.10.0-114.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |