Attach API on Linux and Root

Andrew Hughes gnu.andrew at redhat.com
Wed Jul 17 08:32:44 PDT 2013


----- Original Message -----
> Thanks for the patch, I think it sounds like a good idea. For consistency,
> however, we need to do the same modifications to the other platforms
> (solaris, windows) and preferably add tests for this functionality as well.
> 

The patch makes sense to me.

While a very similar patch makes sense for Solaris and *BSD (the BSD code
appears to actually be mostly the same as for GNU/Linux, bar renaming),
there appears to be no equivalent code in the Windows version and we
don't work on that platform.

> /Staffan
> 
> On 5 jul 2013, at 18:03, Elliott Baron <ebaron at redhat.com> wrote:
> 
> > Hi,
> > 
> > On 06/05/2013 06:05 PM, Elliott Baron wrote:
> >> Hi,
> >> 
> >> We use Hotspot's dynamic attach mechanism in our Thermostat monitoring
> >> tool [1], however we have discovered a bit of a problem with access
> >> control. One of our typical use-cases is to have our agent running as
> >> root, which will monitor all JVMs on the machine. We have noticed that
> >> our agent with root privileges cannot attach to other unprivileged users
> >> VMs, which seems to go against the principle of the root user.
> >> 
> >> I have attached a Hotspot patch and JDK patch targeting 7u-dev to allow
> >> root to attach to any user's VMs. I'd appreciate it if someone could take
> >> a look.
> >> 
> >> Thanks,
> >> Elliott
> >> 
> >> [1] http://icedtea.classpath.org/thermostat/
> > 
> > Ping, just making sure this patch doesn't slip through the cracks.
> > 
> > Thanks,
> > Elliott
> 
> 

-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07



More information about the serviceability-dev mailing list