United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4861802 missing /proc/<pid> dir in chroot env. causes 1.4.1 java to fail
JDK-4861802 : missing /proc/ dir in chroot env. causes 1.4.1 java to fail

Details
Type:
Bug
Submit Date:
2003-05-09
Status:
Closed
Updated Date:
2003-09-10
Project Name:
JDK
Resolved Date:
2003-06-18
Component:
hotspot
OS:
solaris_8
Sub-Component:
runtime
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.1_02
Fixed Versions:
1.4.1_05 (05)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
customer using 1.4.1_02

usr/sbin/chroot /chroot /usr/j2se/bin/java -version

Output is:

Need Solaris 2.6 (SunOS 5.6) or later.
Abort

I was able to reproduce this in house and running truss I find that
/proc/<pid> is looked for but not found.  It is at that point that
the error message about needing 2.6 or later is encountered.

This scenario works fine for 1.3.1 where you can see the /proc entry in the  truss and it is also not being found, but it still proceeds.

Needing/exposing /proc in the chroot environment is a security risk.

Why would 1.4.1 now require this where 1.3.1 did not?


                                    

Comments
EVALUATION


###@###.### 2003-05-13
We provide no guarantee that java should work in a chroot environment.
However, the error message is wrong (since we are indeed on Solaris 8),
and that should be fixed.

It appears that there is leftover code for determining if are on Solaris
2.5.1 or older, but that the check should no longer be made.  If this check
is no longer made (based on /proc/*) then the absence of /proc might not
hurt.



###@###.### 2003-05-21
Java should work in a chroot environment with the fix, and not access
/proc/*.  However, because /proc/* cannot be accessed, java cannot
determine whether the new libthread (T2) is in use, and assumes not.
This may cause some small performance loss, and increase the likelihood
of some types of races conditions which affect reliability.  (And
we're working on those.)
                                     
2004-06-11
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.4.1_05
1.4.2_02
tiger

FIXED IN:
1.4.1_05
1.4.2_02
tiger

INTEGRATED IN:
1.4.1_05
1.4.2_02
tiger-beta

VERIFIED IN:
1.4.1_05
1.4.2_02


                                     
2004-06-14



Hardware and Software, Engineered to Work Together