Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1165572 - SELinux is preventing /usr/sbin/openvpn from 'add_name' accesses on the directory nm-openvpn-70853bdb-58e2-424d-96bc-b16a1f999bb3.
Summary: SELinux is preventing /usr/sbin/openvpn from 'add_name' accesses on the direc...
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:1dd1abd6336bdbc565a3ba57651...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-19 09:12 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:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Paolo Bonzini 2014-11-19 09:12:17 UTC
Description of problem:
Starting OpenVPN connection via NetworkManager.
SELinux is preventing /usr/sbin/openvpn from 'add_name' accesses on the directory nm-openvpn-70853bdb-58e2-424d-96bc-b16a1f999bb3.

Possibly the transition from NM context to openvpn context should not have happened?

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

If you believe that openvpn should be allowed add_name access on the nm-openvpn-70853bdb-58e2-424d-96bc-b16a1f999bb3 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                nm-openvpn-70853bdb-58e2-424d-96bc-b16a1f999bb3 [
                              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.2-300.fc21.x86_64 #1 SMP Thu
                              Oct 30 19:23:48 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-11-18 13:20:52 CET
Last Seen                     2014-11-18 13:20:52 CET
Local ID                      3e5590a0-dc44-4644-a626-e13a16546009

Raw Audit Messages
type=AVC msg=audit(1416313252.873:6482): avc:  denied  { add_name } for  pid=30642 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=SYSCALL msg=audit(1416313252.873:6482): arch=x86_64 syscall=bind success=yes exit=0 a0=4 a1=7fb544d05464 a2=6e a3=21 items=0 ppid=30539 pid=30642 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,add_name

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:19 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.