Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2203546 | 7-pool | Kumar Srinivasan | P3 | Closed | Won't Fix |
Java fails to launch in the following scenario:
java is started from a ksh script, this script has a root owner and the s-bit it set.
Even java -version fails with the following message.
> ./launch.ksh
JAVA_HOME=/java/1.6.0/b65/solaris-sparc/
user is root
ld.so.1: java: fatal: libjli.so: open failed: No such file or directory
>ls -al launch.ksh
-rwsr-xr-x 1 root staff 88 Nov 23 06:16 launch.ksh
>cat launch.ksh
#!/bin/ksh
echo JAVA_HOME=$JAVA_HOME
echo user is `whami`
$JAVA_HOME/bin/java -version
This is a regression because until jdk6 build65 this script worked fine. This script still works fine with JDK5 update N. This script fails with JDK7.
java is started from a ksh script, this script has a root owner and the s-bit it set.
Even java -version fails with the following message.
> ./launch.ksh
JAVA_HOME=/java/1.6.0/b65/solaris-sparc/
user is root
ld.so.1: java: fatal: libjli.so: open failed: No such file or directory
>ls -al launch.ksh
-rwsr-xr-x 1 root staff 88 Nov 23 06:16 launch.ksh
>cat launch.ksh
#!/bin/ksh
echo JAVA_HOME=$JAVA_HOME
echo user is `whami`
$JAVA_HOME/bin/java -version
This is a regression because until jdk6 build65 this script worked fine. This script still works fine with JDK5 update N. This script fails with JDK7.
- backported by
-
JDK-2203546 REGRESSION: java fails to launch if the launching ksh script has the s-bit set
-
- Closed
-
- duplicates
-
JDK-6974773 ld.so.1: java: fatal: libjli.so: open failed: No such file or directory
-
- Closed
-
- relates to
-
JDK-4745674 REGRESSION: Unable to run java in setuid
-
- Resolved
-
-
JDK-8032021 Java command cannot run with setuid bit for user and group
-
- Open
-