[Devel] Re: [PATCH 3/3] proc: make UTS-related sysctls utsns aware
Sam Vilain
sam.vilain at catalyst.net.nz
Wed May 24 20:51:54 PDT 2006
Andrew Morton wrote:
> Sam Vilain <sam.vilain at catalyst.net.nz> wrote:
>
>>Add a new function proc_do_utsns_string, that derives the pointer
>> into the uts_namespace->name structure, currently based on the
>> filename of the dentry in /proc, and calls _proc_do_string()
>> ---
>> RFC only - not tested yet. builds, though
>
>
> So... is it tested yet?
No, I was waiting for feedback
(hackhackhack)
ok, now it's tested
root at ken:~# ./chuts /bin/bash
root at ken:~# uname -a
Linux ken 2.6.17-rc4-mm2-g2214c350 #8 PREEMPT Thu May 25 09:32:27 NZST
2006 x86_64 GNU/Linux
root at ken:~# hostname bert
root at ken:~# uname -a
Linux bert 2.6.17-rc4-mm2-g2214c350 #8 PREEMPT Thu May 25 09:32:27 NZST
2006 x86_64 GNU/Linux
root at ken:~# exit
root at ken:~# uname -a
Linux ken 2.6.17-rc4-mm2-g2214c350 #8 PREEMPT Thu May 25 09:32:27 NZST
2006 x86_64 GNU/Linux
root at ken:~# cat /proc/sys/kernel/hostname
ken
root at ken:~# ./chuts /bin/sh -c "hostname bert && cat
/proc/sys/kernel/hostname"
bert
root at ken:~# cat /proc/sys/kernel/hostname
ken
root at ken:~# ./chuts /bin/sh -c "echo 'bob' > /proc/sys/kernel/hostname
&& uname -n"
bob
root at ken:~# uname -n
ken
> You owe me three Signed-off-by:s, please.
They should be coming your way seperately very shortly. I've revised
the third one (namespaces-utsname-sysctl-hack-cleanup-2.patch), see my
reply to Dave Hansen's e-mail. The revised version is the one I tested.
--
Sam Vilain, Catalyst IT (NZ) Ltd.
phone: +64 4 499 2267 cell: +64 21 55 40 50
DDI: +64 4 803 2342 PGP ID: 0x66B25843
More information about the Devel
mailing list