RFR[ 9u-dev] JDK-8075773 - jps running as root fails with 7u75, works fine with 7u72

Dmitry Samersoff dmitry.samersoff at oracle.com
Thu May 14 10:06:40 UTC 2015


Cheleswer,

I would recommend to simple change

ll. 222 of original code to

uid_t euid = geteuid();
if (euid != 0 && statp->st_uid != euid) {
   return false;
}

-Dmitry

On 2015-05-14 12:26, cheleswer sahu wrote:
> Hi,
> Please review the code changes for
> https://bugs.openjdk.java.net/browse/JDK-8075773. I have built and
> tested JDK9 with fix successfully. As I do not have an account for OpenJDK,
> David Buck will push the fix into jdk9/hs-rt/.
> 
> Web review link: http://cr.openjdk.java.net/~dbuck/8075773/webrev.01/
> 
> Regards,
> Cheleswer
> 
> 
> 
> 
> 
> 
> 
> 
> 


-- 
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.


More information about the serviceability-dev mailing list