Bug 910011

Summary: SELinux is preventing /usr/bin/totem-video-thumbnailer from using the 'dac_override' capabilities.
Product: [Fedora] Fedora Reporter: Titas Chanda <titas.chanda>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dominick.grift, dwalsh, hafflys, metherid, mgrepl, sumitk014
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e1f2a821cd1816351e0e32a6ffb0cac284460486286e03134735f3a88a4d6cbc
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 09:16:46 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 Titas Chanda 2013-02-11 15:57:38 UTC
Description of problem:
SELinux is preventing /usr/bin/totem-video-thumbnailer from using the 'dac_override' capabilities.

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

If you want to help identify if domain needs this access or you have a file with the wrong permissions on your system
Then turn on full auditing to get path information about the offending file and generate the error again.
Do

Turn on full auditing
# auditctl -w /etc/shadow -p w
Try to recreate AVC. Then execute
# ausearch -m avc -ts recent
If you see PATH record check ownership/permissions on file, and fix it, 
otherwise report as a bugzilla.

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

If you believe that totem-video-thumbnailer should have the dac_override capability by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep appsrc0:src /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:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Objects                 [ capability ]
Source                        appsrc0:src
Source Path                   /usr/bin/totem-video-thumbnailer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           totem-3.6.3-2.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-76.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.10-4.fc18.x86_64 #1 SMP Tue
                              Dec 11 18:01:27 UTC 2012 x86_64 x86_64
Alert Count                   2
First Seen                    2013-02-11 21:21:16 IST
Last Seen                     2013-02-11 21:21:18 IST
Local ID                      bc5a8365-cf06-400e-9b34-849afa93b925

Raw Audit Messages
type=AVC msg=audit(1360597878.541:847): avc:  denied  { dac_override } for  pid=18933 comm="aqueue:src" capability=1  scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tclass=capability


type=SYSCALL msg=audit(1360597878.541:847): arch=x86_64 syscall=mkdir success=no exit=EACCES a0=7ff1f00011e0 a1=1c0 a2=ffffffffffffff80 a3=7ff1f7ffcf84 items=0 ppid=18862 pid=18933 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm=aqueue:src exe=/usr/bin/totem-video-thumbnailer subj=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 key=(null)

Hash: appsrc0:src,thumb_t,thumb_t,capability,dac_override

audit2allow

#============= thumb_t ==============
allow thumb_t self:capability dac_override;

audit2allow -R

#============= thumb_t ==============
allow thumb_t self:capability dac_override;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.10-4.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-02-12 12:48:50 UTC
Could you re-create it with

1. Turn on full auditing
# auditctl -w /etc/shadow -p w

2. Try to recreate AVC. Then execute
# ausearch -m avc -ts recent

Comment 2 Daniel Walsh 2013-02-12 17:45:06 UTC
He is running nautilus as root, not a good idea.  YOu should not run any GUI apps as root.

Comment 3 Miroslav Grepl 2013-02-13 09:23:59 UTC
*** Bug 910553 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2015-01-05 13:54:24 UTC
*** Bug 1178591 has been marked as a duplicate of this bug. ***