Bug 785552

Summary: SELinux is preventing /usr/bin/ffmpeg from 'create' accesses on the fichier 29-01-2012_15:14:23.gdm.avi.
Product: [Fedora] Fedora Reporter: valveur
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:67e961bdd111d55423a85edbc8b58f3b67f3e99a4217e0ce29e8bbf6e76c39ae
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-30 12:16:58 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 valveur 2012-01-29 14:18:02 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.9-1.fc16.i686
reason:         SELinux is preventing /usr/bin/ffmpeg from 'create' accesses on the fichier 29-01-2012_15:14:23.gdm.avi.
time:           dim. 29 janv. 2012 15:17:46 CET

description:
:SELinux is preventing /usr/bin/ffmpeg from 'create' accesses on the fichier 29-01-2012_15:14:23.gdm.avi.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that ffmpeg should be allowed create access on the 29-01-2012_15:14:23.gdm.avi file 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 ffmpeg /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:user_home_t:s0
:Target Objects                29-01-2012_15:14:23.gdm.avi [ file ]
:Source                        ffmpeg
:Source Path                   /usr/bin/ffmpeg
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           ffmpeg-0.8.8-1.fc16.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-72.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.9-1.fc16.i686 #1 SMP Fri Jan 13
:                              17:14:41 UTC 2012 i686 i686
:Alert Count                   5
:First Seen                    sam. 28 janv. 2012 19:17:57 CET
:Last Seen                     dim. 29 janv. 2012 15:14:24 CET
:Local ID                      0ae99e7e-8db2-4a08-9ee8-98041349d97c
:
:Raw Audit Messages
:type=AVC msg=audit(1327846464.81:65): avc:  denied  { create } for  pid=1576 comm="ffmpeg" name="29-01-2012_15:14:23.gdm.avi" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=filenode=(removed) type=AVC msg=audit(1327846464.081:65): avc:  denied  { write } for  pid=1576 comm="ffmpeg" name="29-01-2012_15:14:23.gdm.avi" dev=sda10 ino=35509 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1327846464.81:65): arch=i386 syscall=open success=yes exit=EINTR a0=85d3d20 a1=8241 a2=1b6 a3=bfa236cc items=0 ppid=1558 pid=1576 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ffmpeg exe=/usr/bin/ffmpeg subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)
:
:Hash: ffmpeg,xdm_t,user_home_t,file,create
:
:audit2allow
:
:#============= xdm_t ==============
:allow xdm_t user_home_t:file { write create };
:
:audit2allow -R
:
:#============= xdm_t ==============
:allow xdm_t user_home_t:file { write create };
:

Comment 1 Miroslav Grepl 2012-01-30 12:16:58 UTC
Could you try to execute

$ restorecon -R -v /home/

and reopen the bug if this happens again.