Bug 648261

Summary: SELinux is preventing /usr/libexec/nm-openvpn-service "getattr" access on /etc/openvpn/dial.p12.
Product: [Fedora] Fedora Reporter: Pavel Stehule <pavel.stehule>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:cccb73c546d1aa2ea2a3a499705927778de48192fe4d8509baa0fe73082733ed
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-01 09:05:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Stehule 2010-10-31 18:37:11 UTC
Summary:

SELinux is preventing /usr/libexec/nm-openvpn-service "getattr" access on
/etc/openvpn/dial.p12.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by nm-openvpn-serv. It is not expected that this
access is required by nm-openvpn-serv and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:NetworkManager_t:s0
Target Context                system_u:object_r:openvpn_etc_t:s0
Target Objects                /etc/openvpn/dial.p12 [ file ]
Source                        nm-openvpn-serv
Source Path                   /usr/libexec/nm-openvpn-service
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           NetworkManager-openvpn-0.8.1-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-4.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.6-45.fc14.i686.PAE #1 SMP Mon
                              Oct 18 23:49:30 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Sun 31 Oct 2010 07:34:03 PM CET
Last Seen                     Sun 31 Oct 2010 07:34:03 PM CET
Local ID                      dcc5b7a1-643b-4613-bde7-d38f619548ad
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1288550043.100:50): avc:  denied  { getattr } for  pid=2221 comm="nm-openvpn-serv" path="/etc/openvpn/dial.p12" dev=sda8 ino=286206 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:openvpn_etc_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1288550043.100:50): arch=40000003 syscall=197 success=yes exit=0 a0=6 a1=bfdc0830 a2=52bff4 a3=6 items=0 ppid=1001 pid=2221 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nm-openvpn-serv" exe="/usr/libexec/nm-openvpn-service" subj=system_u:system_r:NetworkManager_t:s0 key=(null)



Hash String generated from  catchall,nm-openvpn-serv,NetworkManager_t,openvpn_etc_t,file,getattr
audit2allow suggests:

#============= NetworkManager_t ==============
allow NetworkManager_t openvpn_etc_t:file getattr;

Comment 1 Miroslav Grepl 2010-11-01 09:05:51 UTC

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