Bug 2186996 - SELinux is preventing mariadbd from 'search' accesses on the directory net.
Summary: SELinux is preventing mariadbd from 'search' accesses on the directory net.
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: mysql-selinux
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Schorm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4543e3b644fd226b4089e115da1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-15 17:57 UTC by dan
Modified: 2023-07-28 00:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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