Bug 1530530 - SELinux is preventing mkdir from 'write' accesses on the directory /root.
Summary: SELinux is preventing mkdir from 'write' accesses on the directory /root.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:02bbf4facf81043f21714f96f98...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-03 09:44 UTC by Aleksandar Kostadinov
Modified: 2018-01-10 02:06 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-283.21.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-10 02:06:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Aleksandar Kostadinov 2018-01-03 09:44:49 UTC
Description of problem:
Probably related to mounting external hard drive. But I've no idea what caused it really.
SELinux is preventing mkdir from 'write' accesses on the directory /root.

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

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

Additional Information:
Source Context                system_u:system_r:fsdaemon_t:s0
Target Context                system_u:object_r:admin_home_t:s0
Target Objects                /root [ dir ]
Source                        mkdir
Source Path                   mkdir
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           filesystem-3.3-3.fc27.x86_64
Policy RPM                    selinux-policy-3.13.1-283.17.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.14.5-300.fc27.x86_64 #1 SMP Mon
                              Dec 11 16:00:36 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-12-20 19:23:50 EET
Last Seen                     2017-12-20 19:23:50 EET
Local ID                      2326181e-9e8c-4081-b387-fea8243b1bdf

Raw Audit Messages
type=AVC msg=audit(1513790630.854:780): avc:  denied  { write } for  pid=11542 comm="mkdir" name="root" dev="dm-1" ino=100663393 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir permissive=0


Hash: mkdir,fsdaemon_t,admin_home_t,dir,write

Version-Release number of selected component:
selinux-policy-3.13.1-283.17.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.14.8-300.fc27.x86_64
type:           libreport

Potential duplicate: bug 1400562

Comment 1 Fedora Update System 2018-01-05 14:46:04 UTC
selinux-policy-3.13.1-283.21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 2 Fedora Update System 2018-01-05 14:49:00 UTC
selinux-policy-3.13.1-283.21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 3 Fedora Update System 2018-01-06 21:08:36 UTC
selinux-policy-3.13.1-283.21.fc27 has been pushed to the Fedora 27 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-0d8506aba4

Comment 4 Fedora Update System 2018-01-10 02:06:44 UTC
selinux-policy-3.13.1-283.21.fc27 has been pushed to the Fedora 27 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.