lkml.org 
[lkml]   [2009]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How much of a mess does OpenVZ make? ;) Was: What can OpenVZ do?
> How do you restore set of uts_namespace's?

clone(CLONE_NEWUTS);
sethostname(...)

> Kernel never exposes to userspace which are the same, which are independent.

I think you are addressing the problem from a kernel POV. If you see it
from the user POV, what he cares about is what the gethostname() returns
and not 'struct uts_namespace'.

that doesn't mean that C/R shouldn't be aware of the kernel implementation
but if you think in terms of user API, it makes life a easier.

Cheers,

C.


\
 
 \ /
  Last update: 2009-02-27 15:37    [W:0.211 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site