From: "Serge E. Hallyn" <email@example.com>
To: "Eric W. Biederman" <firstname.lastname@example.org>
Cc: "Serge E. Hallyn" <email@example.com>,
Herbert Xu <firstname.lastname@example.org>,
Andrew Morton <email@example.com>,
Daniel Lezcano <firstname.lastname@example.org>,
Cedric Le Goater <email@example.com>,
Linux Containers <firstname.lastname@example.org>,
Pavel Emelyanov <email@example.com>,
David Miller <firstname.lastname@example.org>
Subject: Re: [PATCH 4/4] net: Implement the per network namespace sysctl infrastructure
Date: Fri, 30 Nov 2007 18:01:50 -0600 [thread overview]
Message-ID: <20071201000150.GA18758@sergelap.austin.ibm.com> (raw)
Quoting Eric W. Biederman (email@example.com):
> "Serge E. Hallyn" <firstname.lastname@example.org> writes:
> > Hey Eric,
> > the patches look nice.
> > The hand-forcing of the passed-in net_ns into a copy of current->nsproxy
> > does make it seem like nsproxy may not be the best choice of what to
> > pass in. Doesn't only net_sysctl_root->lookup() look at the argument?
> Yes. Although I call it from __register_sysctl_paths.
> > But I assume you don't want to be more general than sending in a
> > nsproxy so as to dissuade abuse of this interface for needlessly complex
> > sysctl interfaces?
> A bit of that. I would love to pass in a task_struct so you can use
> anything from a task. The trouble is I don't have any task_structs or
> nsproxys with the proper value at the point where I am first setting
> this up. Further I have to have the full sysctl lookup working or I
> could not call sysctl_check.
> > (Well I expect that'll become clear once the the patches using this
> > come out.)
> > Are you planning to use this infrastructure for the uts and ipc
> > sysctls as well?
> Yes. Where it comes in especially useful, is I can move /proc/sys
> to /proc/sys/<tgid>/task/<pid>/sys. And get a particular processes
> view of sysctl.
> We also get a little more reuse of common functions.
> Otherwise Pavel does have a point that using this for uts and ipc
> is not a savings lines of code wise.
> After having seen Pavel changes I am asking myself if there is a sane
> way to remove the ctl_name argument from the ctl_path.
> Anyway where I am with the nsproxy question was that I don't
> see anything easily better. What I have works and gets the job
> done, and doesn't have any module unload races or holes where a sloppy
> programmer can mess up the sysctl tree. We needed a solution.
> Trying any harder to find something better would take ages. So
> I figured this implementation was good enough.
I agree. So it's already in -mm but still
Acked-by: Serge Hallyn <email@example.com>
next prev parent reply other threads:[~2007-12-01 0:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4742C73C.firstname.lastname@example.org>
2007-11-29 17:40 ` [PATCH 0/4] Sysctl namespace support Eric W. Biederman
2007-11-29 17:45 ` [PATCH 1/4] sysctl: Add register_sysctl_paths function Eric W. Biederman
2007-11-29 17:46 ` [PATCH 2/4] sysctl: Remember the ctl_table we passed to register_sysctl_paths Eric W. Biederman
2007-11-29 17:51 ` [PATCH 3/4] sysctl: Infrastructure for per namespace sysctls Eric W. Biederman
2007-11-29 17:53 ` [PATCH 4/4] net: Implement the per network namespace sysctl infrastructure Eric W. Biederman
2007-11-30 16:18 ` Serge E. Hallyn
2007-11-30 16:23 ` Pavel Emelyanov
2007-11-30 21:49 ` Eric W. Biederman
2007-12-01 0:01 ` Serge E. Hallyn [this message]
2007-11-30 12:56 ` [PATCH 0/4] Sysctl namespace support Herbert Xu
2007-11-30 13:25 ` Eric W. Biederman
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).