[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: definitive way to set uname in jail?
From: xorquewasp () googlemail ! com
Date: 2009-11-29 19:03:23
Message-ID: 20091129190323.GA90778 () logik ! internal ! network
[Download RAW message or body]
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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic