Bug 1479534

Summary: Connection files with incorrect permission
Product: [Fedora] Fedora Reporter: Bruno A. Crespo <bruno>
Component: NetworkManagerAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: bgalvani, dcbw, fgiudici, lkundrak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 19:21:05 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 Bruno A. Crespo 2017-08-08 18:10:20 UTC
Description of problem:

When NetworkManager saves a plugin's connection file, it uses incorrect permissions and the file is rejected from this moment.

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

NetworkManager-1.4.4-5.fc25.x86_64


How reproducible:

Always



Steps to Reproduce:
1. 

[root@obelix ~]# cd /etc/NetworkManager/system-connections
[root@obelix system-connections]# nmcli conn add type vpn vpn-type openvpn con-name foo ifname '*'
Connection 'foo' (c6173ba8-878d-4667-8f34-af7b79515e7f) successfully added.
[root@obelix system-connections]# ls -l foo
-rw-r--r-- 1 root root 249 Aug  8 20:08 foo

Actual results:

The file has 0644 perms

Expected results:

The file must have 0600 perms

Additional info:

It happens with several plugins, not just openvpn

Comment 1 Bruno A. Crespo 2017-08-08 19:21:05 UTC
It seems that my directory /etc/NetworkManager and several subdirectories has a default ACL.  I don't understand why, because I don't put this ACL.