Bug 1479534 - Connection files with incorrect permission
Summary: Connection files with incorrect permission
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-08 18:10 UTC by Bruno A. Crespo
Modified: 2017-08-08 19:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 19:21:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.