Bug 1592085

Summary: SELinux is preventing gdk-pixbuf-thum from using the 'dac_read_search' capabilities.
Product: [Fedora] Fedora Reporter: Subliminal_Sabotage <daysofstatics>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: dwalsh, emptyhousewilliams, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:58ba9cbaaa5b6dc84d18c1d7e95bc1959a7959a11697089020512432a8db9b6c;
Fixed In Version: selinux-policy-3.14.1-36.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-29 03:24:16 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 Subliminal_Sabotage 2018-06-16 22:03:48 UTC
Description of problem:
SELinux is preventing gdk-pixbuf-thum from using the 'dac_read_search' capabilities.

*****  Plugin dac_override (91.4 confidence) suggests   **********************

Si desea ayudar a identificar si el dominio necesita este acceso o bien tiene un archivo con permisos equivocados en el sistema
Then active la auditoría completa para obtener información de la ruta relacionada con el archivo conflictivo, y vuelva a generar el error.
Do

Active auditoría completa
# auditctl -w /etc/shadow -p w
Intente recrear el AVC. Luego ejecute
# ausearch -m avc -ts recent
Si observa un registro PATH compruebe los permisos y propietarios del archivo y corríjalos,
o bien abra un informe en bugzilla.

*****  Plugin catchall (9.59 confidence) suggests   **************************

Si cree que gdk-pixbuf-thum debería tener la capacidad de dac_read_search de forma predeterminada.
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 temporalmente ejecutando:
# ausearch -c 'gdk-pixbuf-thum' --raw | audit2allow -M mi-gdkpixbufthum
# semodule -X 300 -i mi-gdkpixbufthum.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Objects                Unknown [ capability ]
Source                        gdk-pixbuf-thum
Source Path                   gdk-pixbuf-thum
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-32.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.14-300.fc28.x86_64 #1 SMP Tue
                              Jun 5 16:23:44 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-06-13 17:39:07 -04
Last Seen                     2018-06-13 17:39:07 -04
Local ID                      4c07ffa5-0c0a-4baa-909c-a20d525518b9

Raw Audit Messages
type=AVC msg=audit(1528925947.448:3448): avc:  denied  { dac_read_search } for  pid=11526 comm="gdk-pixbuf-thum" capability=2  scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tclass=capability permissive=0


Hash: gdk-pixbuf-thum,thumb_t,thumb_t,capability,dac_read_search

Version-Release number of selected component:
selinux-policy-3.14.1-32.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.14-300.fc28.x86_64
type:           libreport

Potential duplicate: bug 1442237

Comment 1 Oswaldo Casasola 2018-07-10 05:33:45 UTC
*** Bug 1599570 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Update System 2018-07-25 22:30:18 UTC
selinux-policy-3.14.1-36.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1050fb248b

Comment 3 Fedora Update System 2018-07-26 16:32:27 UTC
selinux-policy-3.14.1-36.fc28 has been pushed to the Fedora 28 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-1050fb248b

Comment 4 Fedora Update System 2018-07-29 03:24:16 UTC
selinux-policy-3.14.1-36.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.