Bug 1330582 - SELinux is preventing df from 'getattr' accesses on the directory /sys/kernel/config.
Summary: SELinux is preventing df from 'getattr' accesses on the directory /sys/kernel...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: httpd
Version: 23
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kaluža
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4ab384ba04e9dcbb4803dae7d8a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-26 14:02 UTC by siki_atra
Modified: 2016-04-27 12:26 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-27 12:26:41 UTC
Type: ---


Attachments (Terms of Use)

Description siki_atra 2016-04-26 14:02:45 UTC
Description of problem:
SELinux is preventing df from 'getattr' accesses on the directory /sys/kernel/config.

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

If cree que de manera predeterminada, df debería permitir acceso getattr sobre config directory.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
allow this access for now by executing:
# ausearch -c df --raw | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:httpd_t:s0
Target Context                system_u:object_r:configfs_t:s0
Target Objects                /sys/kernel/config [ dir ]
Source                        df
Source Path                   df
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.4.6-301.fc23.i686 #1 SMP Wed Mar
                              30 18:11:04 UTC 2016 i686 i686
Alert Count                   8
First Seen                    2016-04-22 15:06:37 PET
Last Seen                     2016-04-22 15:16:32 PET
Local ID                      2636de4f-6735-42aa-8638-d439a4e5e144

Raw Audit Messages
type=AVC msg=audit(1461356192.880:848): avc:  denied  { getattr } for  pid=13221 comm="df" path="/sys/kernel/config" dev="configfs" ino=1863 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:configfs_t:s0 tclass=dir permissive=0


Hash: df,httpd_t,configfs_t,dir,getattr


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

Potential duplicate: bug 1024468

Comment 1 Lukas Vrabec 2016-04-27 12:20:06 UTC
httpd folks,

Do you know whats going on here?

Comment 2 Joe Orton 2016-04-27 12:25:59 UTC
Nothing used from httpd itself, could be some PHP/python/... script uses a library which is trying to access that?

Comment 3 Joe Orton 2016-04-27 12:26:41 UTC
Oh, I missed the reference to df.  httpd doesn't run df.


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