Bug 1585359 - SELinux is preventing mpd from 'search' accesses on the directory .config.
Summary: SELinux is preventing mpd from 'search' accesses on the directory .config.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5751507b551e771d87378c01723...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-02 01:02 UTC by Tim
Modified: 2018-06-09 20:41 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.14.2-22.fc29 selinux-policy-3.14.1-32.fc28
Clone Of:
Environment:
Last Closed: 2018-06-09 20:41:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim 2018-06-02 01:02:16 UTC
Description of problem:
Tried to start mpd service (sudo serivce mpd start)
SELinux is preventing mpd from 'search' accesses on the directory .config.

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

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

Additional Information:
Source Context                system_u:system_r:mpd_t:s0
Target Context                system_u:object_r:config_home_t:s0
Target Objects                .config [ dir ]
Source                        mpd
Source Path                   mpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-30.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.12-300.fc28.x86_64 #1 SMP Fri
                              May 25 21:13:28 UTC 2018 x86_64 x86_64
Alert Count                   2
First Seen                    2018-03-19 03:21:33 EDT
Last Seen                     2018-06-01 20:56:03 EDT
Local ID                      70f23e2c-65db-46d3-aefb-8468ddd1e9bf

Raw Audit Messages
type=AVC msg=audit(1527900963.13:1329): avc:  denied  { search } for  pid=6922 comm="mpd" name=".config" dev="dm-0" ino=524290 scontext=system_u:system_r:mpd_t:s0 tcontext=system_u:object_r:config_home_t:s0 tclass=dir permissive=0


Hash: mpd,mpd_t,config_home_t,dir,search

Version-Release number of selected component:
selinux-policy-3.14.1-30.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.12-300.fc28.x86_64
type:           libreport

Potential duplicate: bug 1358731

Comment 1 Fedora Update System 2018-06-06 13:36:18 UTC
selinux-policy-3.14.1-32.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-743a9247de

Comment 2 Fedora Update System 2018-06-07 13:16:51 UTC
selinux-policy-3.14.1-32.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-743a9247de

Comment 3 Fedora Update System 2018-06-09 20:41:58 UTC
selinux-policy-3.14.1-32.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


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