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
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
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
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