[Devel] Re: [PATCH 3/7] uts namespaces: use init_utsname when appropriate

Kir Kolyshkin kir at openvz.org
Sat Apr 8 17:12:58 PDT 2006


Sam Vilain wrote:

>On Sat, 2006-04-08 at 01:09 -0600, Eric W. Biederman wrote:
>  
>
>>>-#define ELF_PLATFORM  (system_utsname.machine)
>>>+#define ELF_PLATFORM  (init_utsname()->machine)
>>> 
>>> #ifdef __KERNEL__
>>> #define SET_PERSONALITY(ex, ibcs2) do { } while (0)
>>>      
>>>
>>I think this one needs to be utsname()->machine.
>>Currently it doesn't matter.  But Herbert has expressed
>>the desire to make a machine appear like an older one.
>>    
>>
>
>This is extremely useful for faking it as "i386" on x86_64 systems, for
>instance.
>  
>
Could 'setarch' be of any help here? Works fine for us. Or am I missing 
something?




More information about the Devel mailing list