This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Re: Permission to task and proc
- From: Mark Wielaard <mark at klomp dot org>
- To: Yao Qi <qiyao at cn dot ibm dot com>
- Cc: frysk <frysk at sourceware dot org>
- Date: Wed, 19 Jul 2006 11:46:15 +0200
- Subject: Re: Permission to task and proc
- References: <20060719051057.GD28727@GreenHouse.cn.ibm.com>
On Wed, 2006-07-19 at 13:10 +0800, Yao Qi wrote:
> Is there any api to check process or task permission in java? I could
> not find, so I equal permission of /proc/<pid>/exe to process
> permission.
Seems that is the best you can do. Otherwise you will have to add a
'native' method. But the best I can think of is trying to attach to the
thread with ptrace to really know whether or not we can monitor it
(ptrace can also fail when another process is already ptracing it).
Cheers,
Mark