Bug 1740600 - SELinux is preventing php-fpm from 'open' accesses on the Datei /mnt/data/goecklingen/dse/edit.php.
Summary: SELinux is preventing php-fpm from 'open' accesses on the Datei /mnt/data/goe...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6394d0d23a7e7a8ce8eb243e08d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-13 10:48 UTC by Jean-Jacques Sarton
Modified: 2019-11-25 16:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-25 16:13:59 UTC
Type: ---


Attachments (Terms of Use)

Description Jean-Jacques Sarton 2019-08-13 10:48:04 UTC
Description of problem:
SELinux is preventing php-fpm from 'open' accesses on the Datei /mnt/data/goecklingen/dse/edit.php.

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

Wenn Sie denken, dass es php-fpm standardmäßig erlaubt sein sollte, open Zugriff auf edit.php file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'php-fpm' --raw | audit2allow -M my-phpfpm
# semodule -X 300 -i my-phpfpm.pp

Additional Information:
Source Context                system_u:system_r:httpd_t:s0
Target Context                system_u:object_r:unlabeled_t:s0
Target Objects                /mnt/data/goecklingen/dse/edit.php [ file ]
Source                        php-fpm
Source Path                   php-fpm
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.3-43.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.2.7-200.fc30.x86_64 #1 SMP Thu
                              Aug 8 05:35:29 UTC 2019 x86_64 x86_64
Alert Count                   3
First Seen                    2019-08-13 12:42:10 CEST
Last Seen                     2019-08-13 12:42:17 CEST
Local ID                      0eba1889-edaa-44b9-93f8-d2cd88c0c07e

Raw Audit Messages
type=AVC msg=audit(1565692937.153:276): avc:  denied  { open } for  pid=1254 comm="php-fpm" path="/mnt/data/goecklingen/dse/edit.php" dev="sdb4" ino=26093749 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1 trawcon="unconfined_u:object_r:httpd_rw_sys_content_t:s0"


Hash: php-fpm,httpd_t,unlabeled_t,file,open

Version-Release number of selected component:
selinux-policy-3.14.3-43.fc30.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.2.7-200.fc30.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-08-13 16:16:57 UTC
Hi, 

Is /mnt/data/goecklingen/dse/ store for your webpages? 

THanks,
Lukas.

Comment 2 Lukas Vrabec 2019-11-25 16:13:59 UTC
Based on no response, closing the ticket.


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