IBM Support

IC77016: DB2 SETUP WIZARD MIGHT BE UNABLE TO LAUNCH WHEN SELINUX IS ENABLED AND ALLOW_EXECSTACK IS OFF

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When SELinux is set to enforce (rather than permissive) and the
    SELinux boolean value allow_execstack is set to
    off the DB2 Setup wizard might not be able to start.
    
    You might get a failure like this:
    
    # ./db2setup
    
    DBI1190I  db2setup is preparing the DB2 Setup wizard which will
    guide you through the program setup process. Please wait.
    
    Failed to find VM - aborting
    
    Moreover, you can see following error message in the
    db2setup.err log file:
    
    # cat /tmp/db2setup.err
    failed to open
    </tmp/db2.tmp.23925/db2/linuxamd64/java/jre/lib/amd64/default/li
    bjvm.so>
    - reason:
    </tmp/db2.tmp.23925/db2/linuxamd64/java/jre/lib/amd64/default/li
    bjvm.so:
    cannot enable executable stack as shared object requires:
    Permission denied>
    

Local fix

  • By setting selinux to "permissive" you get around this issue.
    You
    can also set the allow_execstack boolean value to "on" when
    SELinux is set to "enforce" by executing this command:
    
    
    #setsebool allow_execstack=on
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * This will affect DB2 v9.7 users who use the DB2 Setup Wizard *
    * on Linux and Unix platforms                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When SELinux is set to enforce (rather than permissive) and  *
    * the SELinux boolean value allow_execstack is set to off the  *
    * DB2 Setup wizard might not be able to start.                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 v9.7, Fix pack 5.                             *
    ****************************************************************
    

Problem conclusion

  • Adjusted the checking condition for Script
    Delivered in DB2 v9.7, Fix pack 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC77016

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-06-17

  • Closed date

    2011-12-07

  • Last modified date

    2011-12-07

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC77016

Modified date: 07 December 2011