This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Permission to task and proc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]