Fedora Account System
Red Hat Associate
Red Hat Customer
As of libreswan 4.0, the NSS database used is moved from /etc/ipsec.d to /var/lib/nss/ipsec/ This requires a selinux policy addition: /var/lib/ipsec(/.*)? gen_context(system_u:object_r:ipsec_key_file_t,s0)
Fedora 32 has the same problem
I'm also experiencing this on Fedora 32 after downgrading(reinstalling) from 33
as a workaround, you can specify nssdir=/etc/ipsec.d in /etc/ipsec.conf in "config setup"
Thats good to know. I've already posted this on the libswan's github tracker and a kind sole there gave me the following SELinux workaround: semanage fcontext --add --type ipsec_key_file_t '/var/lib/ipsec(/.*)?' restorecon -rv /var/lib/ipsec And to undo after the package is fixed semanage fcontext --delete --type ipsec_key_file_t '/var/lib/ipsec(/.*)?'
In the bz description I can see contradicting path specification, I suppose it should be this one, but I'd rather have if confirmed: /var/lib/ipsec/nss If keys are only in the nss subdirectory, I will set the file context only for this one. I've just submitted a Fedora PR to address the issue: https://github.com/fedora-selinux/selinux-policy/pull/472
Yes, key material (public, private keys and certs) will only appear in /var/lib/ipsec/nss/ libreswna currently stores only the nss dir in /var/lib/ipsec/ We would have prefered to store it all there, but the debian maintainer wanted a seperate dir for nss, so we think it is better now to stick to one place instead of ending up with different places. Setting it for only the nss directory is fine.
Changing version for this BZ. This fix was backported.
*** Bug 1895436 has been marked as a duplicate of this bug. ***
FEDORA-2021-3036e7bf00 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-3036e7bf00
FEDORA-2021-3036e7bf00 has been pushed to the Fedora 32 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-3036e7bf00` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-3036e7bf00 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-3036e7bf00 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.