Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754022AbaJMNrF (ORCPT ); Mon, 13 Oct 2014 09:47:05 -0400 Received: from static.92.5.9.176.clients.your-server.de ([176.9.5.92]:41226 "EHLO mail.hallyn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753872AbaJMNrA (ORCPT ); Mon, 13 Oct 2014 09:47:00 -0400 Date: Mon, 13 Oct 2014 15:46:59 +0200 From: "Serge E. Hallyn" To: Richard Guy Briggs Cc: linux-audit@redhat.com, linux-kernel@vger.kernel.org, containers@lists.linux-foundation.org, eparis@redhat.com, sgrubb@redhat.com, aviro@redhat.com, pmoore@redhat.com, arozansk@redhat.com, ebiederm@xmission.com, serge@hallyn.com Subject: Re: [PATCH V5 13/13] Documentation: add a section for /proc//ns/ Message-ID: <20141013134659.GL24703@mail.hallyn.com> References: <982503bc4e4c24cbdebd111b27191ed5bee75572.1412543112.git.rgb@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <982503bc4e4c24cbdebd111b27191ed5bee75572.1412543112.git.rgb@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Richard Guy Briggs (rgb@redhat.com): > --- Acked-by: Serge Hallyn (some nitpicking below) Thanks, Richard. IMO this patchset is great at the moment. Now if I checkpoint a container, migrate it to another machine, and restart it there, the serial numbers will no longer match, but as the creations are all logged, userspace can track the changed snum, so I don't believe that is a problem. (Pretty sure we've discussed that before, mostly mentioning it here to think through it myself) > Documentation/filesystems/proc.txt | 16 ++++++++++++++++ > 1 files changed, 16 insertions(+), 0 deletions(-) > > diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt > index ddc531a..c4bfd6f 100644 > --- a/Documentation/filesystems/proc.txt > +++ b/Documentation/filesystems/proc.txt > @@ -42,6 +42,7 @@ Table of Contents > 3.6 /proc//comm & /proc//task//comm > 3.7 /proc//task//children - Information about task children > 3.8 /proc//fdinfo/ - Information about opened file > + 3.9 /proc//ns/{,_snum} - Information about process namespaces > > 4 Configuring procfs > 4.1 Mount options > @@ -1744,6 +1745,21 @@ pair provide additional information particular to the objects they represent. > optional and may be omitted if no marks created yet. > > > +3.9 /proc//ns/{,_snum} - Information about process namespaces > +-------------------------------------------------------------------------- > +These files provides information about the namespaces within which the process s/provides/provide/ > +is contained. The files named only with the namespace type contain a > +link that lists the containing namespace' inode number in its proc filesystem. s/'/'s/ ... Maybe add "And which can be used with setns(2)." > +The files with suffix _snum contain a link that lists the containing > +namespace' instance serial number, unique per kernel since boot. The s/'/'s/ > +namespace types are self-describing. > + > +The output format of the inode links is: > + :[] > +The output format of the serial number links is: > + _snum:[] > + > + > ------------------------------------------------------------------------------ > Configuring procfs > ------------------------------------------------------------------------------ > -- > 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/