Bug 1321526

Summary: SELinux is preventing evince-thumbnai from 'add_name' accesses on the directory 850508ef80da78b83a926cf2a1cc95e2.png.
Product: [Fedora] Fedora Reporter: Nikolay Chesnokov <chesnokov_n>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 23CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8f0d12601618978d868b9f38ae03baf738752a8a6c9749a6a72a716e3a45379a;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 19:39: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:

Description Nikolay Chesnokov 2016-03-28 08:03:51 UTC
Description of problem:
SELinux is preventing evince-thumbnai from 'add_name' accesses on the directory 850508ef80da78b83a926cf2a1cc95e2.png.

*****  Plugin catchall_labels (83.8 confidence) suggests   *******************

If you want to allow evince-thumbnai to have add_name access on the 850508ef80da78b83a926cf2a1cc95e2.png directory
Then необходимо изменить метку на 850508ef80da78b83a926cf2a1cc95e2.png
Do
# semanage fcontext -a -t FILE_TYPE '850508ef80da78b83a926cf2a1cc95e2.png'
где FILE_TYPE может принимать значения: cache_home_t, gstreamer_home_t, texlive_home_t, thumb_home_t, thumb_tmp_t, thumb_tmpfs_t, tmp_t, tmpfs_t, user_fonts_cache_t, user_home_dir_t, user_tmp_t.
Затем выполните: 
restorecon -v '850508ef80da78b83a926cf2a1cc95e2.png'


*****  Plugin catchall (17.1 confidence) suggests   **************************

If вы считаете, что evince-thumbnai следует разрешить доступ add_name к 850508ef80da78b83a926cf2a1cc95e2.png directory по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# grep evince-thumbnai /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:unlabeled_t:s0
Target Objects                850508ef80da78b83a926cf2a1cc95e2.png [ dir ]
Source                        evince-thumbnai
Source Path                   evince-thumbnai
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.5-300.fc23.x86_64 #1 SMP Thu
                              Mar 10 17:54:44 UTC 2016 x86_64 x86_64
Alert Count                   44
First Seen                    2016-03-28 09:30:17 MSK
Last Seen                     2016-03-28 10:52:31 MSK
Local ID                      9a462fa6-4714-49cf-8571-ca8d569cf905

Raw Audit Messages
type=AVC msg=audit(1459151551.416:673): avc:  denied  { add_name } for  pid=5342 comm="evince-thumbnai" name="850508ef80da78b83a926cf2a1cc95e2.png" scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=dir permissive=0


Hash: evince-thumbnai,thumb_t,unlabeled_t,dir,add_name


Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.5-300.fc23.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2016-03-29 16:09:30 UTC
Where is "850508ef80da78b83a926cf2a1cc95e2.png" file stored? 

Could you run: 
# restorecon -Rv ~/

Could you reproduce this issue?

Comment 2 Fedora End Of Life 2016-11-24 16:15:29 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2016-12-20 19:39:59 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.