[ale] Modification of UTS info in a namespace.

Chris Fowler cfowler at outpostsentinel.com
Tue May 18 20:46:16 EDT 2021


 I noticed today, after I loaded uname_hack later, that the chroots I'm managing with jchroot still reported x86_64, while my desktop reported i586.  I restarted the jchjroot process, ssh in, and uname then properly reported i586.

I'm googling but can't really figure out how I can modify the UTS of a program in a namespace.   If I can do that, I may not need to run uname_hack.  I can simply tell the UTS of those namespaces to report i586.

I'm also trying to figure out how to setup the veth points for each chroot from outside the chroot when I tell jchroot to setup a new network namespace.   It does that simply with CLONE_NEWNET in clone().   I can see the net ns under the pid, but instructions I have found tell me to use 'ip' to add a new net ns first.
jchroot creates a namespace and I just need to reference it somehow.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.ale.org/pipermail/ale/attachments/20210519/122e703e/attachment.htm>


More information about the Ale mailing list