Bug 2223968 - SELinux is preventing openconnect from read, write access on the chr_file vhost-net.
Summary: SELinux is preventing openconnect from read, write access on the chr_file vho...
Keywords:
Status: CLOSED DUPLICATE of bug 2221507
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5030f5cd0cffef5b19098f080bb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-19 12:26 UTC by Jonathan Haas
Modified: 2023-07-19 12:30 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-19 12:30:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.99 KB, text/plain)
2023-07-19 12:26 UTC, Jonathan Haas
no flags Details
File: os_info (734 bytes, text/plain)
2023-07-19 12:27 UTC, Jonathan Haas
no flags Details

Description Jonathan Haas 2023-07-19 12:26:57 UTC
Description of problem:
SELinux denial happened after entering password and successfully establishing Anyconnect/Openconnect VPN connection.
SELinux is preventing openconnect from read, write access on the chr_file vhost-net.

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

Wenn Sie denken, dass es openconnect standardmäßig erlaubt sein sollte, read write Zugriff auf vhost-net chr_file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'openconnect' --raw | audit2allow -M my-openconnect
# semodule -X 300 -i my-openconnect.pp

Additional Information:
Source Context                system_u:system_r:vpnc_t:s0
Target Context                system_u:object_r:vhost_device_t:s0
Target Objects                vhost-net [ chr_file ]
Source                        openconnect
Source Path                   openconnect
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.20-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.20-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.3.12-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Jul 6 04:05:18 UTC 2023 x86_64
Alert Count                   2
First Seen                    2023-07-12 13:54:09 CEST
Last Seen                     2023-07-19 14:21:38 CEST
Local ID                      6b049f6e-a977-4a52-86f9-a5d3c2820073

Raw Audit Messages
type=AVC msg=audit(1689769298.885:451): avc:  denied  { read write } for  pid=56447 comm="openconnect" name="vhost-net" dev="devtmpfs" ino=530 scontext=system_u:system_r:vpnc_t:s0 tcontext=system_u:object_r:vhost_device_t:s0 tclass=chr_file permissive=0


Hash: openconnect,vpnc_t,vhost_device_t,chr_file,read,write

Version-Release number of selected component:
selinux-policy-targeted-38.20-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.11
package:        selinux-policy-targeted-38.20-1.fc38.noarch
kernel:         6.3.12-200.fc38.x86_64
type:           libreport
hashmarkername: setroubleshoot
component:      selinux-policy
comment:        SELinux denial happened after entering password and successfully establishing Anyconnect/Openconnect VPN connection.
reason:         SELinux is preventing openconnect from read, write access on the chr_file vhost-net.
component:      selinux-policy

Comment 1 Jonathan Haas 2023-07-19 12:26:59 UTC
Created attachment 1976513 [details]
File: description

Comment 2 Jonathan Haas 2023-07-19 12:27:01 UTC
Created attachment 1976514 [details]
File: os_info

Comment 3 Jonathan Haas 2023-07-19 12:30:01 UTC

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


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