jail and uname

Patrick Lamaiziere patfbsd at davenulle.org
Sat Jul 3 07:13:37 UTC 2010


Le Sat, 03 Jul 2010 14:13:13 +0800,
Aiza <aiza21 at 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.


More information about the freebsd-questions mailing list