public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: "Serge E. Hallyn" <serue@us.ibm.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
	Containers <containers@lists.osdl.org>,
	clg@fr.ibm.com, linux-kernel@vger.kernel.org,
	Pavel Emelyanov <xemul@openvz.org>,
	Benjamin Thery <benjamin.thery@bull.net>
Subject: Re: [RFC][PATCH 0/7] Clone PTS namespace
Date: Fri, 25 Apr 2008 12:47:27 -0700	[thread overview]
Message-ID: <m1lk314sz4.fsf@frodo.ebiederm.org> (raw)
In-Reply-To: <20080425192102.GA17896@sergelap.austin.ibm.com> (Serge E. Hallyn's message of "Fri, 25 Apr 2008 14:21:02 -0500")

"Serge E. Hallyn" <serue@us.ibm.com> writes:


> Heh, well I tried several approaches - adding tag_ops to kset, to ktype,
> etc.  Finally ended up just calling sysfs_enable_tagging on
> /sys/kernel/uids when that is created.  It's now working perfectly.

Sounds good.

>> I suspect since you are working on this and I seem to be stuck
>> in molasses at the moment it makes sense to figure out what it
>> will take to handle the uid namespace before pushing these
>> patches again.
>
> I had ported your patches to 2.6.25, but Benjamin in the meantime ported
> them to 2.6.25-mm1.  Since that's closer to the -net tree it's a more
> useful port, so I'll let him post his patchset.  Then I'll send the
> userns patch on top of that.  While I'm not actually able to send
> network traffic over a veth dev (I probably am still not setting it up
> right), I am able to pass veth devices into network namespaces, and the
> user namespaces are properly handled.
>
> I believe Benjamin did notice a problem with some symlinks not existing,
> and I think we want one more patch on top of yours removing the
> hold_net() from sysfs_mount, which I don't think was what you really
> wanted to do.  By simply removing that, if all tasks in a netns go away,
> the netns actually goes away and a lookup under a bind-mounted copy of
> its /sys/class/net is empty.

I will have to look, I need to refresh myself on where all of this code is.
I think hold_net was what I wanted.  A record that there is a user
but not something that will keep the network namespace from going away.

Essentially hold_net should be a debugging check rather then a
real limitation.


> Anyway the patches should be hitting the list next week.

Cool.  We can figure out what we need to do to merge them from
there.

>> Taking a quick look and having a clue what we will need to
>> do for a theoretical device namespace is also a possibility.
>
> I'm not sure I'm familiar enough with the kobject/class/sysfs/device
> relationships yet to comment on that.  It doesn't look like it should
> really be a problem, though simply adding tags to every directory
> under /sys/class (/sys/class/tty, /sys/class/usb_device, etc) doesn't
> seem like necessarily the nicest way to go...

True.  And the goal is something maintainable.  There are still a lot
of implications of a device namespace left unexamined so we shall see.

Eric

  reply	other threads:[~2008-04-25 19:47 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-08 21:53 [RFC][PATCH 0/7] Clone PTS namespace sukadev
2008-04-08 21:58 ` [RFC][PATCH 1/7]: Propagate error code from devpts_pty_new sukadev
2008-04-08 21:58 ` [RFC][PATCH 2/7]: Factor out PTY index allocation sukadev
2008-04-08 21:59 ` [RFC][PATCH 3/7]: Enable multiple mounts of /dev/pts sukadev
2008-04-08 21:59 ` [RFC][PATCH 4/7]: Allow mknod of ptmx and tty in devpts sukadev
2008-04-08 22:00 ` [RFC][PATCH 5/7]: Implement get_pts_ns() and put_pts_ns() sukadev
2008-04-08 22:00 ` [RFC][PATCH 6/7]: Determine pts_ns from a pty's inode sukadev
2008-04-08 22:00 ` [RFC][PATCH 7/7]: Enable cloning PTY namespaces sukadev
2008-04-09  0:53 ` [RFC][PATCH 0/7] Clone PTS namespace H. Peter Anvin
2008-04-09 16:23   ` sukadev
2008-04-09 18:01     ` H. Peter Anvin
2008-04-09 19:16       ` serge
2008-04-09 22:38         ` H. Peter Anvin
2008-04-09 22:15   ` Eric W. Biederman
2008-04-10  1:59     ` Serge E. Hallyn
2008-04-10  7:36       ` Eric W. Biederman
2008-04-10 16:44         ` Serge E. Hallyn
2008-04-10 20:58           ` sukadev
2008-04-22 14:25         ` Serge E. Hallyn
2008-04-22 18:53           ` Eric W. Biederman
2008-04-23 14:36             ` Serge E. Hallyn
2008-04-23 17:57               ` Serge E. Hallyn
2008-04-23 18:49                 ` Eric W. Biederman
2008-04-25 19:21                   ` Serge E. Hallyn
2008-04-25 19:47                     ` Eric W. Biederman [this message]
2008-04-26 13:02                       ` Serge E. Hallyn

Reply instructions:

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1lk314sz4.fsf@frodo.ebiederm.org \
    --to=ebiederm@xmission.com \
    --cc=benjamin.thery@bull.net \
    --cc=clg@fr.ibm.com \
    --cc=containers@lists.osdl.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=serue@us.ibm.com \
    --cc=xemul@openvz.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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