Bug 1662443

Summary: Strongswan & dns resolver
Product: [Fedora] Fedora Reporter: lejeczek <peljasz>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: 29CC: dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.14.2-46.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-17 02:16:16 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 lejeczek 2018-12-28 14:50:18 UTC
Description of problem:

Strongswan when ups a connection/tunnel wants to get to local resolver but if fails:

...
maximum IKE_SA lifetime 3543s
installing DNS server 10.3.1.99 via resolvconf
resolvconf: Failed to set DNS configuration: Access denied
removing DNS server 10.3.1.99 via resolvconf
resolvconf: Failed to revert interface configuration: Access denied
adding DNS server failed
installing DNS server 10.3.1.99 via resolvconf
resolvconf: Failed to set DNS configuration: Access denied
removing DNS server 10.3.1.99 via resolvconf
resolvconf: Failed to revert interface configuration: Access denied
adding DNS server failed
handling INTERNAL_IP4_DNS attribute failed
installing DNS server 10.3.1.99 via resolvconf
resolvconf: Failed to set DNS configuration: Access denied
removing DNS server 10.3.1.99 via resolvconf
resolvconf: Failed to revert interface configuration: Access denied
adding DNS server failed
handling INTERNAL_IP4_DNS attribute failed
installing new virtual IP 10.3.1.19

It would be great to have a boolean for that.


# ausearch -ts 14:40 | grep -Ei '(resolv|swan)' | audit2allow 


#============= ipsec_mgmt_t ==============
allow ipsec_mgmt_t systemd_resolved_t:dbus send_msg;


(maybe more?)

Many thanks, L.

Version-Release number of selected component (if applicable):

selinux-policy-3.14.2-44.fc29.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Lukas Vrabec 2019-01-08 17:05:03 UTC
commit d7e7fe57077889f2cf4c9220cbf4a06d2d264b9b (HEAD -> rawhide)
Author: Lukas Vrabec <lvrabec>
Date:   Tue Jan 8 18:04:41 2019 +0100

    Allow ipsec_t domain dbus chat with systemd_resolved_t BZ(1662443)

Comment 2 Fedora Update System 2019-01-13 15:44:31 UTC
selinux-policy-3.14.2-46.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6a20cfef61

Comment 3 Fedora Update System 2019-01-14 03:02:49 UTC
selinux-policy-3.14.2-46.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-6a20cfef61

Comment 4 Fedora Update System 2019-01-17 02:16:16 UTC
selinux-policy-3.14.2-46.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.