Skip site navigation (1)Skip section navigation (2)
Date:      08 Dec 2002 00:26:40 -0600
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-hackers@freebsd.org
Subject:   How to which jail a process lives in?
Message-ID:  <87ptsdt49r.fsf@pooh.honeypot.net>

next in thread | raw e-mail | index | archive | help
I've been looking at <sys/jail.h> and related files, and realize that the
prison structure lives in kernelspace.  Without that resource available to
end users, is there a way to find (in a userspace program) which jail a
particular task belongs to?

I wrote the JailAdmin program that a few people use, and I currently get
that information from /proc.  However, for many reasons, I'd prefer to
switch to reading the output of kvm_getprocs(), but I can't give up the old
system until I can find a way to get the same information.

Out of curiosity, is there a particular reason not to make a copy of the
prison struct available to userspace programs?
-- 
Kirk Strauser
In Googlis non est, ergo non est.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87ptsdt49r.fsf>