Description of problem:
SELinux is preventing openconnect from read, write access on the chr_file vhost-net.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that openconnect should be allowed read write access on the vhost-net 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:
# 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 <Unknown>
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 3
First Seen 2023-07-10 08:29:28 CEST
Last Seen 2023-07-13 09:38:21 CEST
Local ID 4feb84e0-815e-460d-a69a-841216dec8b5
Raw Audit Messages
type=AVC msg=audit(1689233901.486:394): avc: denied { read write } for pid=6223 comm="openconnect" name="vhost-net" dev="devtmpfs" ino=664 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
kernel: 6.3.12-200.fc38.x86_64
package: selinux-policy-targeted-38.20-1.fc38.noarch
hashmarkername: setroubleshoot
reason: SELinux is preventing openconnect from read, write access on the chr_file vhost-net.
type: libreport
component: selinux-policy
component: selinux-policy
Description of problem: SELinux is preventing openconnect from read, write access on the chr_file vhost-net. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that openconnect should be allowed read write access on the vhost-net 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: # 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 <Unknown> 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 3 First Seen 2023-07-10 08:29:28 CEST Last Seen 2023-07-13 09:38:21 CEST Local ID 4feb84e0-815e-460d-a69a-841216dec8b5 Raw Audit Messages type=AVC msg=audit(1689233901.486:394): avc: denied { read write } for pid=6223 comm="openconnect" name="vhost-net" dev="devtmpfs" ino=664 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 kernel: 6.3.12-200.fc38.x86_64 package: selinux-policy-targeted-38.20-1.fc38.noarch hashmarkername: setroubleshoot reason: SELinux is preventing openconnect from read, write access on the chr_file vhost-net. type: libreport component: selinux-policy component: selinux-policy