Re: How to find out if process runs chrooted?

2010-09-08 Thread Ted Unangst
On Wed, Sep 8, 2010 at 8:55 AM, Elmar Bschorer wrote: > short question - how can i find out if a process runs chrooted? > i couldn't find any hints in man chroot :-( fstat | awk '$4 == "root"'

Re: How to find out if process runs chrooted?

2010-09-08 Thread Bret S. Lambert
On Wed, Sep 08, 2010 at 02:55:19PM +0200, Elmar Bschorer wrote: > hi list, > > short question - how can i find out if a process runs chrooted? You write a syscall to check if fdp->fd_rdir is not NULL? > i couldn't find any hints in man chroot :-( > > thx, > Elmar

How to find out if process runs chrooted?

2010-09-08 Thread Elmar Bschorer
hi list, short question - how can i find out if a process runs chrooted? i couldn't find any hints in man chroot :-( thx, Elmar