Bug 665932

Summary: SELinux is preventing /usr/libexec/rhythmbox-metadata from using the 'execstack' accesses on a process.
Product: [Fedora] Fedora Reporter: Craig Horrocks <craig_horrocks>
Component: rhythmboxAssignee: Bastien Nocera <bnocera>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: bnocera, dwalsh, jadeallenx, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:c09ce6882cd4677310865923a3c5323f2a8ff641506dc614caebf34166f8cbbd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-30 14:02:31 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 Craig Horrocks 2010-12-28 01:35:10 UTC
SELinux is preventing /usr/libexec/rhythmbox-metadata from using the 'execstack' accesses on a process.

SELinux is preventing /usr/libexec/rhythmbox-metadata from using the execstack access on a process.

Plugin: allow_execstack 
you do not think /usr/libexec/rhythmbox-metadata should need to map stack memory
that is both writable and executable.If you do not think /usr/libexec/rhythmbox-metadata should need to map stack memory that is both writable and executable.
you need to report a bug. This is a potentially dangerous access.


Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                Unknown [ process ]
Source                        rhythmbox-metad
Source Path                   /usr/libexec/rhythmbox-metadata
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           rhythmbox-0.13.2-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-18.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.i686 #1 SMP
                              Thu Dec 23 16:17:40 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Tue 28 Dec 2010 02:27:22 PM NZDT
Last Seen                     Tue 28 Dec 2010 02:27:22 PM NZDT
Local ID                      80c1acaf-700a-4e8a-aba7-356940902f2b

Raw Audit Messages
type=AVC msg=audit(1293499642.118:26086): avc:  denied  { execstack } for  pid=15526 comm="rhythmbox-metad" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process

rhythmbox-metad,unconfined_t,unconfined_t,process,execstack
type=SYSCALL msg=audit(1293499642.118:26086): arch=i386 syscall=mprotect success=no exit=EACCES a0=bfc0d000 a1=1000 a2=1000007 a3=bfc0ba5c items=0 ppid=1 pid=15526 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=rhythmbox-metad exe=/usr/libexec/rhythmbox-metadata subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
rhythmbox-metad,unconfined_t,unconfined_t,process,execstack

#============= unconfined_t ==============
#!!!! This avc can be allowed using the boolean 'allow_execstack'

allow unconfined_t self:process execstack;

Comment 1 Daniel Walsh 2010-12-28 13:16:06 UTC
Rhythmbox should not require execstack.

Comment 2 Craig Horrocks 2010-12-29 01:29:18 UTC
Hi Daniel

Thanks for your comment.  This SE Linux issue occurred after an update of the MPEG component.

I have not had any SELinux messages today. I had shutdown and re-started.

I hope this helps.

Craig

Comment 3 Daniel Walsh 2010-12-30 14:02:31 UTC
So this is probably related to a library.

You can either turn on the allow_execstack boolean or follow try to turn off the execstack flag in the library.

*** This bug has been marked as a duplicate of bug 652297 ***