Re: Jail detection

2003-01-03 Thread phk
In message <[EMAIL PROTECTED]>, Ju lian Elischer writes: >> Use sysctl to pick up your own proc, look for the jail flag. It takes >> less than 10 lines of C. > >I can't see anything relevant in sysctl -a. We don't return binary blobs from sysctl -a. -- Poul-Henning Kamp | UNIX since Zil

Re: Jail detection

2003-01-03 Thread Scot Hetzel
From: "Julian Elischer" <[EMAIL PROTECTED]> > We have some software we'd like to behave slightly differently if it is > in a jail. > > What methods do people use to detect they are in a jail? There's a program called in.jail (/usr/ports/sysutils/jailer) that is capable of detecting if it is runnin

Re: Jail detection

2003-01-03 Thread Julian Elischer
On Fri, 3 Jan 2003 [EMAIL PROTECTED] wrote: > In message <[EMAIL PROTECTED]>, Ju > lian Elischer writes: > > > >We have some software we'd like to behave slightly differently if it is > >in a jail. > > > >What methods do people use to detect they are in a jail? > >procfs/curproc might work but I

Re: Jail detection

2003-01-03 Thread phk
In message <[EMAIL PROTECTED]>, Ju lian Elischer writes: > >We have some software we'd like to behave slightly differently if it is >in a jail. > >What methods do people use to detect they are in a jail? >procfs/curproc might work but I don't want to depend on procfs. >ps aux can be used but seems