Bug 1977268
Summary: | nm-openvpn applies incorrect SELinux labels when importing a VPN profile | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Vladislav Grigoryev <vg.aetera> |
Component: | NetworkManager-openvpn | Assignee: | Lubomir Rintel <lkundrak> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 34 | CC: | bgalvani, choeger, code, dcbw, fgiudici, lkundrak, nhed51+redhatbugzilla22, steve, thaller, vg.aetera |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-06-07 23:02:13 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
Vladislav Grigoryev
2021-06-29 11:10:41 UTC
nmcli doesn't explicitly label the files. It relies on the default label to be correct, based on the path (which is also why it chooses to place the file in ~/.cert/). Unclear why that isn't working... I also don't understand why restorecon sets them to `unconfined_u:object_r:home_cert_t:s0`, when it seems it should be `system_u:object_r:home_cert_t:s0`... This message is a reminder that Fedora Linux 34 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '34'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 34 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07. Fedora Linux 34 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. Thank you for reporting this bug and we are sorry it could not be fixed. Just here to note that I observed with fc36 Details: - Versions: $ uname -a Linux nhed-lt2 6.0.8-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 11 15:03:58 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux $ rpm -q NetworkManager-openvpn NetworkManager-openvpn-1.8.18-1.fc36.x86_64 - Using an openvpn config file with embedded certs with the openvpn client directly - works. - Importing the same openvpn config file to create a new Network Manager VPN config either through either the Gnome GUI or nmcli and proceeding to use causes a failure with an AVC denial log. - Following the suggestion by @vg.aetera to `sudo restorecon -R -v /root/.cert` immediately after importing the configh and before attempting to use the connection works (a workaround but not a great one for end users) |