Bug 848860
| Summary: | AVC while trying to run /usr/bin/firewall-cmd from confined libvirtd | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Laine Stump <laine> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 18 | CC: | dominick.grift, dwalsh, mgrepl, twoerner |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-16 17:53:29 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: | |||
Fixed in selinux-policy-3.11.1-9.fc18.noarch |
We're trying to switch libvirt over to using firewalld rather than calling iptables and ebtables directly (firewalld is present in F17, but disabled by default; it will be enabled by default in F18). The interaction with firewalld is through that package's commandline utility, /usr/bin/firewall-cmd. When we try to call firewall-cmd from libvirtd, we get the following AVC: type=USER_AVC msg=audit(1345131322.154:3428): 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.256 spid=10350 tpid=11648 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tclass=dbus exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' I've rerun in permissive mode and this is the only AVC that shows up in the audit logs, so hopefully a policy for just this one thing will permit it to run.