problem with amavisd and postfix

Mike Holcomb mike.holcomb at gmail.com
Mon Jan 31 19:11:44 CET 2005


> 
> > BTW: Is there an easy way to detect that a program is running in a jail?
> The only way I know to detect programs running in a jail is calling ps and
> cheking if there's a jota in the thir field, like the example below
> # ps ax | grep postfix
>  2717  ??  SsJ    0:03.57 /kolab/libexec/postfix/master
>                     |------ See the big J in here?
> 

The easiest way to pragmatically know you are in a jail is to check
the sysctl security.jail.jailed

1 = jailed, 0 = not jailed

Mike




More information about the users mailing list