Bug 1165574 - SELinux is preventing /usr/sbin/openvpn from 'write' accesses on the directory NetworkManager.
Summary: SELinux is preventing /usr/sbin/openvpn from 'write' accesses on the director...
Keywords:
Status: CLOSED DUPLICATE of bug 1165110
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:37dbd8d613b79cecefe196c5a07...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-19 09:13 UTC by Paolo Bonzini
Modified: 2014-11-19 13:50 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-19 13:50:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Paolo Bonzini 2014-11-19 09:13:32 UTC
Description of problem:
See also bug 1165572.
SELinux is preventing /usr/sbin/openvpn from 'write' accesses on the directory NetworkManager.

See also bug 1165572.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that openvpn should be allowed write access on the NetworkManager directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep openvpn /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:openvpn_t:s0
Target Context                system_u:object_r:NetworkManager_var_run_t:s0
Target Objects                NetworkManager [ dir ]
Source                        openvpn
Source Path                   /usr/sbin/openvpn
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           openvpn-2.3.4-4.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-92.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.17.3-300.fc21.x86_64 #1 SMP Fri
                              Nov 14 23:36:19 UTC 2014 x86_64 x86_64
Alert Count                   8
First Seen                    2014-11-17 10:17:35 CET
Last Seen                     2014-11-19 10:08:09 CET
Local ID                      0bd39cd4-1a31-4886-9362-03b8985eff50

Raw Audit Messages
type=AVC msg=audit(1416388089.495:473): avc:  denied  { write } for  pid=6804 comm="openvpn" name="NetworkManager" dev="tmpfs" ino=18097 scontext=system_u:system_r:openvpn_t:s0 tcontext=system_u:object_r:NetworkManager_var_run_t:s0 tclass=dir permissive=1


type=AVC msg=audit(1416388089.495:473): avc:  denied  { add_name } for  pid=6804 comm="openvpn" name="nm-openvpn-70853bdb-58e2-424d-96bc-b16a1f999bb3" scontext=system_u:system_r:openvpn_t:s0 tcontext=system_u:object_r:NetworkManager_var_run_t:s0 tclass=dir permissive=1


type=AVC msg=audit(1416388089.495:473): avc:  denied  { create } for  pid=6804 comm="openvpn" name="nm-openvpn-70853bdb-58e2-424d-96bc-b16a1f999bb3" scontext=system_u:system_r:openvpn_t:s0 tcontext=system_u:object_r:NetworkManager_var_run_t:s0 tclass=sock_file permissive=1


type=SYSCALL msg=audit(1416388089.495:473): arch=x86_64 syscall=bind success=yes exit=0 a0=4 a1=7ffb97bba464 a2=6e a3=21 items=0 ppid=6793 pid=6804 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=openvpn exe=/usr/sbin/openvpn subj=system_u:system_r:openvpn_t:s0 key=(null)

Hash: openvpn,openvpn_t,NetworkManager_var_run_t,dir,write

Version-Release number of selected component:
selinux-policy-3.13.1-92.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.17.3-300.fc21.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2014-11-19 13:50:34 UTC

*** This bug has been marked as a duplicate of bug 1165110 ***


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