RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 834643 - AVC's of NetworkManager-openvpn
Summary: AVC's of NetworkManager-openvpn
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.3
Hardware: All
OS: Linux
low
low
Target Milestone: beta
: 6.4
Assignee: Miroslav Grepl
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-22 16:14 UTC by David Jaša
Modified: 2012-06-25 10:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-25 10:56:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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