Date: Sat, 3 Jul 2010 09:14:34 +0200 From: Patrick Lamaiziere <patfbsd@davenulle.org> To: freebsd-questions@freebsd.org Subject: Re: jail and uname Message-ID: <20100703091434.297ec2ea@davenulle.org> In-Reply-To: <4C2ED4F9.2010408@comclark.com> References: <4C2ED4F9.2010408@comclark.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Le Sat, 03 Jul 2010 14:13:13 +0800, Aiza <aiza21@comclark.com> a écrit : > From the console of a jail I issue uname –r and get 8.0-RELEASE-p3, > which is the release level of the host. I know the jail is running a > pristine minimum install of 8.0-RELEASE. > > I would think issuing uname from within a jail environment should > respond with the info of the jail environment. Uname uses some sysctl to retrieve OS information, so they are stored in the kernel. For example : kern.ostype: FreeBSD kern.osrelease: 8.1-PRERELEASE > Is this not a security violation? No I don't think.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100703091434.297ec2ea>