Bug 2186996

Summary: SELinux is preventing mariadbd from 'search' accesses on the directory net.
Product: [Fedora] Fedora Reporter: dan
Component: mysql-selinuxAssignee: Michal Schorm <mschorm>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: amessina, hhorak, ljavorsk, mschorm
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4543e3b644fd226b4089e115da133e4c6f0af10dc68a4c015d3cf0a19425839a;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 dan 2023-04-15 17:57:16 UTC
Description of problem:
Remote SQL read.
SELinux is preventing mariadbd from 'search' accesses on the directory net.

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

If you believe that mariadbd should be allowed search access on the net directory 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 'mariadbd' --raw | audit2allow -M my-mariadbd
# semodule -X 300 -i my-mariadbd.pp

Additional Information:
Source Context                system_u:system_r:mysqld_t:s0
Target Context                system_u:object_r:sysctl_net_t:s0
Target Objects                net [ dir ]
Source                        mariadbd
Source Path                   mariadbd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-37.19-1.fc37.noarch
Local Policy RPM              mysql-selinux-1.0.5-2.fc37.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.2.9-200.fc37.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Mar 30 22:31:57 UTC 2023
                              x86_64 x86_64
Alert Count                   131
First Seen                    2023-03-04 19:24:27 EST
Last Seen                     2023-04-15 12:55:55 EDT
Local ID                      8ac44691-eaa0-468d-944c-fcd363443412

Raw Audit Messages
type=AVC msg=audit(1681577755.426:35281): avc:  denied  { search } for  pid=1303 comm="mariadbd" name="net" dev="proc" ino=19476 scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0


Hash: mariadbd,mysqld_t,sysctl_net_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-37.19-1.fc37.noarch

Additional info:
component:      mysql-selinux
reporter:       libreport-2.17.4
hashmarkername: setroubleshoot
kernel:         6.2.9-200.fc37.x86_64
type:           libreport

Comment 1 Fedora Admin user for bugzilla script actions 2023-07-28 00:13:26 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.