Bug 663505

Summary: SELinux is preventing /usr/lib64/nspluginwrapper/plugin-config from using the 'execstack' accesses on a process.
Product: [Fedora] Fedora Reporter: dilworthscott
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: bluevox.inc, bob, cedpren, chris.marshall.two, denvorhu, dwalsh, ibm58, icj, jameshusby, jim, johnvanrooy, lic_mario_77, mgrepl, nmontalban74, okrh, pkgale, rridler, sz.gruszczynski, thunderbirdtr
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:62be8e50893f6352be21916a9f8c31f30e36d1e95a449e8ded1c99edf229e860
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-16 09:37:09 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 dilworthscott 2010-12-16 00:01:41 UTC
SELinux is preventing /usr/lib64/nspluginwrapper/plugin-config from using the 'execstack' accesses on a process.

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

If you do not think /usr/lib64/nspluginwrapper/plugin-config 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 plugin-config 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/lib64/nspluginwrapper/plugin-config /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

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                        plugin-config
Source Path                   /usr/lib64/nspluginwrapper/plugin-config
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nspluginwrapper-1.3.0-15.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-16.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.9-64.fc14.x86_64 #1 SMP
                              Fri Dec 3 12:19:41 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Wed 15 Dec 2010 07:14:09 AM CST
Last Seen                     Wed 15 Dec 2010 05:04:07 PM CST
Local ID                      f583fa96-dfc6-44b8-9d5f-3484b210a2a6

Raw Audit Messages
type=AVC msg=audit(1292454247.784:18): avc:  denied  { execstack } for  pid=2663 comm="plugin-config" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process

plugin-config,unconfined_t,unconfined_t,process,execstack
type=SYSCALL msg=audit(1292454247.784:18): arch=x86_64 syscall=mprotect success=yes exit=0 a0=7fffdfc5f000 a1=1000 a2=1000007 a3=7f33e686d000 items=0 ppid=2661 pid=2663 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=plugin-config exe=/usr/lib64/nspluginwrapper/plugin-config subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
plugin-config,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 Miroslav Grepl 2010-12-16 09:37:09 UTC

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