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 rather heavyweight.
Something like a sysctl would be best. 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 rather
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 don't want to
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 running in a
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 Zilog Zeus