Bug 1740600

Summary: SELinux is preventing php-fpm from 'open' accesses on the Datei /mnt/data/goecklingen/dse/edit.php.
Product: [Fedora] Fedora Reporter: Jean-Jacques Sarton <jj.sarton>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 30CC: dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6394d0d23a7e7a8ce8eb243e08dd921c96bd8534c73f31e8e312b0517ff8f001;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-25 16:13:59 UTC 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 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.