diff options
author | Serge E. Hallyn <serue@us.ibm.com> | 2006-10-02 05:18:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 10:57:21 -0400 |
commit | e9ff3990f08e9a0c2839cc22808b01732ea5b3e4 (patch) | |
tree | c638a7b89f0c5e8adc410316d06ca1de8b8dabee /net/sunrpc/clnt.c | |
parent | 0bdd7aab7f0ecd5d337910816aa058c18398628e (diff) |
[PATCH] namespaces: utsname: switch to using uts namespaces
Replace references to system_utsname to the per-process uts namespace
where appropriate. This includes things like uname.
Changes: Per Eric Biederman's comments, use the per-process uts namespace
for ELF_PLATFORM, sunrpc, and parts of net/ipv4/ipconfig.c
[jdike@addtoit.com: UML fix]
[clg@fr.ibm.com: cleanup]
[akpm@osdl.org: build fix]
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Andrey Savochkin <saw@sw.ru>
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 124ff0ceb55b..78696f2dc7d6 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -161,10 +161,10 @@ static struct rpc_clnt * rpc_new_client(struct rpc_xprt *xprt, char *servname, s | |||
161 | } | 161 | } |
162 | 162 | ||
163 | /* save the nodename */ | 163 | /* save the nodename */ |
164 | clnt->cl_nodelen = strlen(system_utsname.nodename); | 164 | clnt->cl_nodelen = strlen(utsname()->nodename); |
165 | if (clnt->cl_nodelen > UNX_MAXNODENAME) | 165 | if (clnt->cl_nodelen > UNX_MAXNODENAME) |
166 | clnt->cl_nodelen = UNX_MAXNODENAME; | 166 | clnt->cl_nodelen = UNX_MAXNODENAME; |
167 | memcpy(clnt->cl_nodename, system_utsname.nodename, clnt->cl_nodelen); | 167 | memcpy(clnt->cl_nodename, utsname()->nodename, clnt->cl_nodelen); |
168 | return clnt; | 168 | return clnt; |
169 | 169 | ||
170 | out_no_auth: | 170 | out_no_auth: |