Bug 419921

Summary: Error Installing Netbeans version 6
Product: [Fedora] Fedora Reporter: Ronald Canete <ronaldcanete>
Component: java-1.7.0-icedteaAssignee: Thomas Fitzsimmons <fitzsim>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: installation of netbeans-6.0-linux.sh
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-12-12 18:33: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:
Attachments:
Description Flags
Netbeans 6 installation error none

Description Ronald Canete 2007-12-11 15:58:25 UTC
Summary
    SELinux is preventing /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0/jre/bin/java
    from loading /tmp/nbi-53920.tmp which requires text relocation.

Detailed Description
    The /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0/jre/bin/java application
    attempted to load /tmp/nbi-53920.tmp which requires text relocation.  This
    is a potential security problem. Most libraries do not need this permission.
    Libraries are sometimes coded incorrectly and request this permission.  The
    http://people.redhat.com/drepper/selinux-mem.html web page explains how to
    remove this requirement.  You can configure SELinux temporarily to allow
    /tmp/nbi-53920.tmp to use relocation as a workaround, until the library is
    fixed. Please file a http://bugzilla.redhat.com/bugzilla/enter_bug.cgi
    against this package.

Allowing Access
    If you trust /tmp/nbi-53920.tmp to run correctly, you can change the file
    context to textrel_shlib_t. "chcon -t textrel_shlib_t /tmp/nbi-53920.tmp"
    You must also change the default file context files on the system in order
    to preserve them even on a full relabel.  "semanage fcontext -a -t
    textrel_shlib_t /tmp/nbi-53920.tmp"

    The following command will allow this access:
    chcon -t textrel_shlib_t /tmp/nbi-53920.tmp

Additional Information        

Source Context                system_u:system_r:java_t:s0-s0:c0.c1023
Target Context                system_u:object_r:tmp_t:s0
Target Objects                /tmp/nbi-53920.tmp [ file ]
Affected RPM Packages         java-1.7.0-icedtea-1.7.0.0-0.19.b21.snapshot.fc8
                              [application]
Policy RPM                    selinux-policy-3.0.8-62.fc8
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.allow_execmod
Host Name                     sa-ruh-dclin-01
Platform                      Linux sa-ruh-dclin-01 2.6.23.8-63.fc8 #1 SMP Wed
                              Nov 21 18:51:08 EST 2007 i686 athlon
Alert Count                   1
First Seen                    Mon 10 Dec 2007 05:59:22 PM AST
Last Seen                     Mon 10 Dec 2007 05:59:22 PM AST
Local ID                      01529e95-d0a8-4d0e-9ee5-348367b828f8
Line Numbers                  

Raw Audit Messages            

avc: denied { execmod } for comm=java dev=dm-0 egid=0 euid=0
exe=/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0/jre/bin/java exit=-13 fsgid=0
fsuid=0 gid=0 items=0 path=/tmp/nbi-53920.tmp pid=10761
scontext=system_u:system_r:java_t:s0-s0:c0.c1023 sgid=0
subj=system_u:system_r:java_t:s0-s0:c0.c1023 suid=0 tclass=file
tcontext=system_u:object_r:tmp_t:s0 tty=pts1 uid=0

Comment 1 Ronald Canete 2007-12-11 15:58:25 UTC
Created attachment 284271 [details]
Netbeans 6 installation error

Comment 2 Lillian Angel 2007-12-12 18:33:09 UTC

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