Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2009 19:03:23 +0000
From:      xorquewasp@googlemail.com
To:        freebsd-hackers@freebsd.org
Subject:   definitive way to set uname in jail?
Message-ID:  <20091129190323.GA90778@logik.internal.network>

next in thread | raw e-mail | index | archive | help
It seems that the only way to set the output of uname in
a jail is to define environment variables.

Unfortunately, there doesn't seem to be a reliable way
to unconditionally set them (a process might do the
equivalent of 'env -i /bin/sh' and unset them, etc).

Apart from just patching the uname utility before I
copy it into a jail, is there really a good way to do
this?

I would love to just be able to set a sysctl and have
this work.

$ jls | grep i386
    29  127.1.0.13      7.2-i386-gnat_build           /usr/jails/7.2-i386-gnat_build
$ sudo jexec 29 csh
FreeBSD 7.2-i386-gnat_build 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

Regards,
xw



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