Bug 834643

Summary: AVC's of NetworkManager-openvpn
Product: Red Hat Enterprise Linux 6 Reporter: David Jaša <djasa>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: low    
Version: 6.3CC: dwalsh, mgrepl, mmalik
Target Milestone: beta   
Target Release: 6.4   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-25 10:56:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Jaša 2012-06-22 16:14:49 UTC
Description of problem:


Version-Release number of selected component (if applicable):
NetworkManager-0.8.1-33.el6.x86_64
NetworkManager-openvpn-0.8.1-0.1.git20100609.el6.x86_64
wpa_supplicant-0.7.3-3.el6.x86_64
selinux-policy-3.7.19-154.el6.noarch
RHEL 6.3

How reproducible:
always

Steps to Reproduce:
1. connect to an openvpn gateway
2.
3.
  
Actual results:
I'm getting AVCs below in /var/log/messages (audit/audit.log is silent)

Expected results:
no AVCs

Additional info:
# tail -fn0 /var/log/messages | grep -i avc
Jun 22 18:07:35 dhcp-29-7 kernel: type=1400 audit(1340381255.140:107714): avc:  denied  { rlimitinh } for  pid=5273 comm="modprobe" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:insmod_t:s0 tclass=process
Jun 22 18:07:35 dhcp-29-7 kernel: type=1400 audit(1340381255.140:107715): avc:  denied  { siginh } for  pid=5273 comm="modprobe" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:insmod_t:s0 tclass=process
Jun 22 18:07:35 dhcp-29-7 kernel: type=1400 audit(1340381255.140:107716): avc:  denied  { noatsecure } for  pid=5273 comm="modprobe" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:insmod_t:s0 tclass=process
// right after dialog appeared
Jun 22 18:08:07 dhcp-29-7 kernel: type=1400 audit(1340381287.511:107717): avc:  denied  { rlimitinh } for  pid=5276 comm="openvpn" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:openvpn_t:s0 tclass=process
Jun 22 18:08:07 dhcp-29-7 kernel: type=1400 audit(1340381287.511:107718): avc:  denied  { siginh } for  pid=5276 comm="openvpn" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:openvpn_t:s0 tclass=process
Jun 22 18:08:07 dhcp-29-7 kernel: type=1400 audit(1340381287.511:107719): avc:  denied  { noatsecure } for  pid=5276 comm="openvpn" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:openvpn_t:s0 tclass=process
Jun 22 18:08:11 dhcp-29-7 kernel: type=1400 audit(1340381291.738:107720): avc:  denied  { rlimitinh } for  pid=5284 comm="nscd" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:initrc_t:s0 tclass=process
Jun 22 18:08:11 dhcp-29-7 kernel: type=1400 audit(1340381291.738:107721): avc:  denied  { siginh } for  pid=5284 comm="nscd" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:initrc_t:s0 tclass=process
Jun 22 18:08:11 dhcp-29-7 kernel: type=1400 audit(1340381291.738:107722): avc:  denied  { noatsecure } for  pid=5284 comm="nscd" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:initrc_t:s0 tclass=process
Jun 22 18:08:11 dhcp-29-7 kernel: type=1400 audit(1340381291.753:107723): avc:  denied  { rlimitinh } for  pid=5287 comm="nscd" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:nscd_t:s0 tclass=process
Jun 22 18:08:11 dhcp-29-7 kernel: type=1400 audit(1340381291.753:107724): avc:  denied  { siginh } for  pid=5287 comm="nscd" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:nscd_t:s0 tclass=process
Jun 22 18:08:11 dhcp-29-7 kernel: type=1400 audit(1340381291.753:107725): avc:  denied  { noatsecure } for  pid=5287 comm="nscd" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:nscd_t:s0 tclass=process
Jun 22 18:08:11 dhcp-29-7 kernel: type=1400 audit(1340381291.756:107726): avc:  denied  { rlimitinh } for  pid=5288 comm="nscd" scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:initrc_t:s0 tclass=process
// connected

Comment 2 David Jaša 2012-06-22 16:21:24 UTC
Just forgot to add version of openvpn itself:
openvpn-2.2.1-1.el6.x86_64

NM-openvpn is from EPEL.

Comment 3 Miroslav Grepl 2012-06-22 16:21:54 UTC
You turned off dontaudit rules.

# semodule -B

Comment 4 David Jaša 2012-06-22 16:44:47 UTC
Ah, after 'semodule -B', the avc's are gone.

It reappears again when I run 'semodule -DB', which I got left from https://bugzilla.redhat.com/show_bug.cgi?id=823601#c2 .

'ausearch -m avc -ts recent' says just '<no matches>' and two empty lines.

Comment 5 Milos Malik 2012-06-25 07:01:43 UTC
This looks like not a bug to me.