RFR[ 9u-dev] JDK-8075773 - jps running as root fails after the fix of JDK-8050807
cheleswer sahu
cheleswer.sahu at oracle.com
Mon Jul 27 17:07:06 UTC 2015
Hi,
Please review the code changes for
"https://bugs.openjdk.java.net/browse/JDK-8075773" .
Web review Link: http://cr.openjdk.java.net/~poonam/8075773/webrev.00/
Bug brief: This bug was introduced after the fix of JDK-8050807. JPS
reads the process information from
"/tmp/hsperfdata_$username_$ProcessID". In order to ensure the file is
secure to open and read, it tries to match the UID with the effective
user ID of that file. When JPS is run as root user this check gets failed.
Fix: If JPS is running as a root user, then the check which matches, UID
with effective user id is skipped.
I have test this fix, it's working fine and found no security issue.
Regards,
Cheleswer
More information about the hotspot-runtime-dev
mailing list