Bug 1911572

Summary: StrongSwan not configured with libcap support
Product: [Fedora] Fedora Reporter: Demi Marie Obenour <demiobenour>
Component: strongswanAssignee: Pavel Šimerda <code>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 33CC: code, davide, mikhail.zabaluev, pwouters
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: strongswan-5.9.1-1.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-29 14:30:32 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 Demi Marie Obenour 2020-12-30 05:39:28 UTC
Description of problem:
StrongSwan cannot drop its privileges after startup.

Version-Release number of selected component (if applicable):
strongswan-5.9.0-2.fc33.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Setup an unpriviled user for StrongSwan to drop privileges to.
2. Configure StrongSwan to drop its privileges
3. Start the VPN

Actual results:
StrongSwan is not built with libcap support, so StrongSwan is not able to do its job after it has dropped privileges.

Expected results:
StrongSwan is built with libcap support, so even after dropping privileges, it still retains enough capabilities to function.

Additional info:

Comment 1 Davide Cavalca 2021-02-11 22:46:46 UTC
Put up https://src.fedoraproject.org/rpms/strongswan/pull-request/11 to fix this

Comment 2 Fedora Update System 2021-02-12 19:23:06 UTC
FEDORA-2021-394a40648b has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Demi Marie Obenour 2021-03-27 07:01:18 UTC
This still needs to be backported to Fedora 33 and 34.

Comment 4 Davide Cavalca 2021-03-27 16:11:58 UTC
strongswan-5.9.1-1.fc33 and strongswan-5.9.1-1.fc34 should both include this already.

Comment 5 Demi Marie Obenour 2021-03-29 14:30:32 UTC
(In reply to Davide Cavalca from comment #4)
> strongswan-5.9.1-1.fc33 and strongswan-5.9.1-1.fc34 should both include this
> already.

Good catch, thanks!