Bug 666411

Summary: SELinux is preventing /usr/bin/pidgin from using the 'execstack' accesses on a process.
Product: [Fedora] Fedora Reporter: Mads Kiilerich <mads>
Component: pidginAssignee: Stu Tomlinson <stu>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, gpvprasad, itamar, mgrepl, r.warren.06, stu
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:983683413d6a44a37d446ca5bbf21ecaa0c09b1781087ca67eb16fd9ac7e21eb
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-04 21:27:36 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 Mads Kiilerich 2010-12-30 15:10:51 UTC
SELinux is preventing /usr/bin/pidgin from using the 'execstack' accesses on a process.

*****  Plugin allow_execstack (53.1 confidence) suggests  ********************

If you do not think /usr/bin/pidgin should need to map stack memory that is both writable and executable.
Then you need to report a bug. This is a potentially dangerous access.
Do
contact your security administrator and report this issue.

*****  Plugin catchall_boolean (42.6 confidence) suggests  *******************

If you want to allow unconfined executables to make their stack executable.  This should never, ever be necessary. Probably indicates a badly coded executable, but could indicate an attack. This executable should be reported in bugzilla
Then you must tell SELinux about this by enabling the 'allow_execstack' boolean.
Do
setsebool -P allow_execstack 1

*****  Plugin catchall (5.76 confidence) suggests  ***************************

If you believe that pidgin should be allowed execstack access on processes labeled unconfined_t 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 /usr/bin/pidgin /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0
Target Context                unconfined_u:unconfined_r:unconfined_t:s0
Target Objects                Unknown [ process ]
Source                        pidgin
Source Path                   /usr/bin/pidgin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           pidgin-2.7.7-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-19.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.i686.PAE #1 SMP Thu
                              Dec 23 16:10:47 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Thu 30 Dec 2010 04:07:39 PM CET
Last Seen                     Thu 30 Dec 2010 04:07:39 PM CET
Local ID                      e4faef4f-e776-4350-91f8-bfee2d62883c

Raw Audit Messages
type=AVC msg=audit(1293721659.18:16905): avc:  denied  { execstack } for  pid=5297 comm="pidgin" scontext=unconfined_u:unconfined_r:unconfined_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=process

pidgin,unconfined_t,unconfined_t,process,execstack
type=SYSCALL msg=audit(1293721659.18:16905): arch=i386 syscall=mprotect success=yes exit=0 a0=bfb05000 a1=1000 a2=1000007 a3=bfb02840 items=0 ppid=1 pid=5297 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=pidgin exe=/usr/bin/pidgin subj=unconfined_u:unconfined_r:unconfined_t:s0 key=(null)
pidgin,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 Mads Kiilerich 2010-12-30 15:13:27 UTC
I assume this is a pidgin issue; it shouldn't need executable stack.

Comment 2 Stu Tomlinson 2010-12-30 15:24:06 UTC
Does this happen only when Pidgin is playing sounds? (try turning off Sounds in preferences to see if it stops). If so, this is probably a duplicate of bug #666055.

Comment 3 Mads Kiilerich 2010-12-30 15:45:52 UTC
I haven't been able to reproduce it yet - also not with the methods mention on bug bug 666055

Comment 4 Daniel Walsh 2011-01-04 15:21:00 UTC
Have a look at 652297 this might be related to bad libraries.

Comment 5 Mads Kiilerich 2011-01-04 16:17:58 UTC
Right, it seems to be a duplicate of https://bugzilla.rpmfusion.org/show_bug.cgi?id=1560

Comment 6 Daniel Walsh 2011-01-04 21:27:36 UTC

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

Comment 7 gpvprasad 2011-01-17 17:16:49 UTC
I recently upgraded my system with fedora 14 with the pre upgrade command is it causing issue

Comment 8 Daniel Walsh 2011-01-17 17:46:26 UTC
No it is probably libxvid.