Bug 675070 - SELinux is preventing Xtend from using the 'execstack' accesses on a process.
Summary: SELinux is preventing Xtend from using the 'execstack' accesses on a process.
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:18ae18644fc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-04 07:09 UTC by RANDY
Modified: 2011-03-11 15:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-11 15:27:36 UTC
Type: ---


Attachments (Terms of Use)

Description RANDY 2011-02-04 07:09:13 UTC
SELinux is preventing Xtend from using the 'execstack' accesses on a process.

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

If you believe that 
None
should not require execstack
Then you should clear the execstack flag and see if Xtend works correctly.
Report this as a bug on None.
You can clear the exestack flag by executing:
Do
execstack -c None

*****  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 Xtend 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 Xtend /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                        Xtend
Source Path                   Xtend
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-25.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
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                   5
First Seen                    Fri 04 Feb 2011 01:52:41 AM EST
Last Seen                     Fri 04 Feb 2011 02:02:12 AM EST
Local ID                      52be3354-d37f-4751-80dc-76c902229f36

Raw Audit Messages
type=AVC msg=audit(1296802932.346:27992): avc:  denied  { execstack } for  pid=2887 comm="Xtend" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process


Hash: Xtend,unconfined_t,unconfined_t,process,execstack

audit2allow

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

allow unconfined_t self:process execstack;

audit2allow -R

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

allow unconfined_t self:process execstack;

Comment 1 Daniel Walsh 2011-02-04 14:58:38 UTC
What kind of application is Xtend?  Java? Mono?

You can label this application execmem_exec_t if you want to allow this access.

# semanage fcontext -a -t execmem_exec_t PATHTO/Xtend
# restorecon -v PATHTO/Xtend


Note You need to log in before you can comment on or make changes to this bug.