Bug 1325983 - SELinux is preventing httpd from 'getattr' accesses on the file /var/www/realwebtest/index.php.
Summary: SELinux is preventing httpd from 'getattr' accesses on the file /var/www/real...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f41db01964b2c9adc8abc5a12cc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-11 14:08 UTC by Diego Garcia
Modified: 2016-04-12 10:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-12 10:08:34 UTC
Type: ---


Attachments (Terms of Use)

Description Diego Garcia 2016-04-11 14:08:58 UTC
Description of problem:
SELinux is preventing httpd from 'getattr' accesses on the file /var/www/realwebtest/index.php.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If quiere arreglar la etiqueta.
La etiqueta predeterminada de /var/www/realwebtest/index.php debería ser httpd_sys_content_t.
Then puede ejecutar restorecon.
Do
# /sbin/restorecon -v /var/www/realwebtest/index.php

*****  Plugin catchall (1.49 confidence) suggests   **************************

If cree que de manera predeterminada, httpd debería permitir acceso getattr sobre  index.php file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
permita el acceso momentáneamente executando:
# grep httpd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:httpd_t:s0
Target Context                system_u:object_r:dosfs_t:s0
Target Objects                /var/www/realwebtest/index.php [ file ]
Source                        httpd
Source Path                   httpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-158.12.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.4.6-301.fc23.x86_64 #1 SMP Wed
                              Mar 30 16:43:58 UTC 2016 x86_64 x86_64
Alert Count                   15
First Seen                    2016-04-11 08:53:51 COT
Last Seen                     2016-04-11 09:04:31 COT
Local ID                      9b7d1713-05f8-4213-b4d9-8b6c940dac7a

Raw Audit Messages
type=AVC msg=audit(1460383471.677:472): avc:  denied  { getattr } for  pid=9812 comm="httpd" path="/var/www/realwebtest/index.php" dev="dm-0" ino=12191473 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:dosfs_t:s0 tclass=file permissive=0


Hash: httpd,httpd_t,dosfs_t,file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-158.12.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-301.fc23.x86_64
type:           libreport

Comment 1 Daniel Walsh 2016-04-11 20:13:42 UTC
Do you have a dosfs mounted on /var/www/realwebtest, or was this a file you mv'd to this location.  If it was mv'd the alert told you what to do.


*****  Plugin restorecon (99.5 confidence) suggests   ************************

If quiere arreglar la etiqueta.
La etiqueta predeterminada de /var/www/realwebtest/index.php debería ser httpd_sys_content_t.
Then puede ejecutar restorecon.
Do
# /sbin/restorecon -v /var/www/realwebtest/index.php


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