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 1144482

Summary: SELinux is preventing /usr/libexec/nm-openconnect-service from read, write access on the chr_file tun.
Product: [Fedora] Fedora Reporter: Jared Smith <jsmith.fedora>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: crobinso, dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d0a48837503396506e982cbaeea103fdf7078cc8f3ed2b1a7a9c78593fa9e3b5
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-07 15:41:30 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 Jared Smith 2014-09-19 13:58:01 UTC
Description of problem:
Trying to establish a VPN connection using NetworkManager-openconnect, and it fails with this SELinux message.

Connecting manually with the openconnect command-line client works fine.
SELinux is preventing /usr/libexec/nm-openconnect-service from read, write access on the chr_file tun.

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

If you believe that nm-openconnect-service should be allowed read write access on the tun chr_file 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 nm-openconnect- /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:NetworkManager_t:s0
Target Context                system_u:object_r:svirt_image_t:s0:c209,c483
Target Objects                tun [ chr_file ]
Source                        nm-openconnect-
Source Path                   /usr/libexec/nm-openconnect-service
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           NetworkManager-openconnect-0.9.8.4-4.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-79.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.16.1-301.fc21.x86_64 #1 SMP Mon
                              Aug 25 13:06:39 UTC 2014 x86_64 x86_64
Alert Count                   4
First Seen                    2014-09-15 11:23:20 EDT
Last Seen                     2014-09-19 09:56:35 EDT
Local ID                      3504f530-38ce-4ebb-a2e0-bd4e74c0c3cc

Raw Audit Messages
type=AVC msg=audit(1411134995.725:8795): avc:  denied  { read write } for  pid=21244 comm="nm-openconnect-" name="tun" dev="devtmpfs" ino=10303 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:svirt_image_t:s0:c209,c483 tclass=chr_file permissive=0


type=SYSCALL msg=audit(1411134995.725:8795): arch=x86_64 syscall=open success=no exit=EACCES a0=4036f7 a1=2 a2=3e0 a3=121 items=0 ppid=1 pid=21244 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=nm-openconnect- exe=/usr/libexec/nm-openconnect-service subj=system_u:system_r:NetworkManager_t:s0 key=(null)

Hash: nm-openconnect-,NetworkManager_t,svirt_image_t,chr_file,read,write

Version-Release number of selected component:
selinux-policy-3.13.1-79.fc21.noarch

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.1-301.fc21.x86_64
type:           libreport

Comment 1 Cole Robinson 2014-10-07 15:41:30 UTC

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