Bug 689946

Summary: SELinux is preventing /usr/sbin/vpnc from 'sendto' accesses on the unix_dgram_socket /dev/log.
Product: [Fedora] Fedora Reporter: Matěj Cepl <mcepl>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: dwalsh, jamescape777, mcepl, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:09e68fccaaf832724879a37c359d1cfeb3b480d206540e95cbf635275d4a1f04
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-22 20:47:03 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 Matěj Cepl 2011-03-22 20:36:48 UTC
SELinux is preventing /usr/sbin/vpnc from 'sendto' accesses on the unix_dgram_socket /dev/log.

Connecting to the RH vpn via NetworkManager-vpnc.
*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that vpnc should be allowed sendto access on the log unix_dgram_socket 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 vpnc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:vpnc_t:s0
Target Context                system_u:system_r:init_t:s0
Target Objects                /dev/log [ unix_dgram_socket ]
Source                        vpnc
Source Path                   /usr/sbin/vpnc
Port                          <Neznámé>
Host                          (removed)
Source RPM Packages           vpnc-0.5.3-9.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-5.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38-1.fc15.x86_64 #1 SMP Tue Mar
                              15 05:29:00 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Út 22. březen 2011, 21:35:49 CET
Last Seen                     Út 22. březen 2011, 21:35:49 CET
Local ID                      56cff8d0-b1a9-41b6-ad59-d96bc6a591da

Raw Audit Messages
type=AVC msg=audit(1300826149.622:73): avc:  denied  { sendto } for  pid=2401 comm="vpnc" path="/dev/log" scontext=system_u:system_r:vpnc_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=unix_dgram_socket


type=SYSCALL msg=audit(1300826149.622:73): arch=x86_64 syscall=connect success=yes exit=0 a0=6 a1=7fc751a5b7c0 a2=6e a3=0 items=0 ppid=2396 pid=2401 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=vpnc exe=/usr/sbin/vpnc subj=system_u:system_r:vpnc_t:s0 key=(null)

Hash: vpnc,vpnc_t,init_t,unix_dgram_socket,sendto

audit2allow

#============= vpnc_t ==============
allow vpnc_t init_t:unix_dgram_socket sendto;

audit2allow -R

#============= vpnc_t ==============
allow vpnc_t init_t:unix_dgram_socket sendto;

Comment 1 Daniel Walsh 2011-03-22 20:47:03 UTC

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