Date: Fri, 3 Jan 2003 13:37:07 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: FreeBSD current users <current@FreeBSD.ORG> Subject: Jail detection Message-ID: <Pine.BSF.4.21.0301031332060.77781-100000@InterJet.elischer.org>
next in thread | raw e-mail | index | archive | help
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 could implement it (unless there's already something I missed), if it was considered the right answer. Also, does anyone wnow the mechanism for ping failing (in 4.x systems) from jails? Julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0301031332060.77781-100000>