1
From ebiederm@xmission.com Tue Jan 22 09:14:18 2013
2
Return-Path: <ebiederm@xmission.com>
3
X-Original-To: serge@hallyn.com
4
Delivered-To: serge@hallyn.com
5
Received: by mail.hallyn.com (Postfix, from userid 5001)
6
id DAC33C80F4; Tue, 22 Jan 2013 09:14:18 +0000 (UTC)
7
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail
9
X-Spam-Status: No, score=0.1 required=8.0 tests=BAD_ENC_HEADER,BAYES_00
10
autolearn=no version=3.3.1
11
Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232])
12
(using TLSv1 with cipher AES256-SHA (256/256 bits))
13
(No client certificate requested)
14
by mail.hallyn.com (Postfix) with ESMTPS id 274ACC80D1
15
for <serge@hallyn.com>; Tue, 22 Jan 2013 09:14:14 +0000 (UTC)
16
Received: from out01.mta.xmission.com ([166.70.13.231])
17
by out02.mta.xmission.com with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
19
(envelope-from <ebiederm@xmission.com>)
20
id 1TxZuB-0006Xm-N5; Tue, 22 Jan 2013 02:12:31 -0700
21
Received: from in02.mta.xmission.com ([166.70.13.52])
22
by out01.mta.xmission.com with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
24
(envelope-from <ebiederm@xmission.com>)
25
id 1TxZuA-0005NR-BQ; Tue, 22 Jan 2013 02:12:30 -0700
26
Received: from c-98-207-153-68.hsd1.ca.comcast.net ([98.207.153.68] helo=eric-ThinkPad-X220.xmission.com)
27
by in02.mta.xmission.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
29
(envelope-from <ebiederm@xmission.com>)
30
id 1TxZu7-0004Pj-Ec; Tue, 22 Jan 2013 02:12:30 -0700
31
From: ebiederm@xmission.com (Eric W. Biederman)
32
To: Nicolas =?utf-8?Q?Fran=C3=A7ois?= <nicolas.francois@centraliens.net>
33
Cc: <Pkg-shadow-devel@lists.alioth.debian.org>, Linux Containers <containers@lists.linux-foundation.org>, "Michael Kerrisk \(man-pages\)" <mtk.manpages@gmail.com>, "Serge E. Hallyn" <serge@hallyn.com>
34
References: <87d2wxshu0.fsf@xmission.com>
35
Date: Tue, 22 Jan 2013 01:12:23 -0800
36
In-Reply-To: <87d2wxshu0.fsf@xmission.com> (Eric W. Biederman's message of
37
"Tue, 22 Jan 2013 01:11:19 -0800")
38
Message-ID: <877gn5shs8.fsf@xmission.com>
39
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)
41
Content-Type: text/plain
42
X-XM-AID: U2FsdGVkX18YouPWtKNAX3LovSW2+p/ONbuCHMFEQpM=
43
X-SA-Exim-Connect-IP: 98.207.153.68
44
X-SA-Exim-Mail-From: ebiederm@xmission.com
45
Subject: [PATCH 01/11] Documentation for /etc/subuid and /etc/subgid
46
X-SA-Exim-Version: 4.2.1 (built Wed, 14 Nov 2012 14:26:46 -0700)
47
X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com)
54
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
56
man/Makefile.am | 4 ++
57
man/subgid.5.xml | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
58
man/subuid.5.xml | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
59
3 files changed, 244 insertions(+), 0 deletions(-)
60
create mode 100644 man/subgid.5.xml
61
create mode 100644 man/subuid.5.xml
63
Index: shadow/man/Makefile.am
64
===================================================================
65
--- shadow.orig/man/Makefile.am 2013-02-01 15:26:14.428082026 -0600
66
+++ shadow/man/Makefile.am 2013-02-01 15:27:37.000000000 -0600
85
Index: shadow/man/subgid.5.xml
86
===================================================================
87
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
88
+++ shadow/man/subgid.5.xml 2013-02-01 15:26:14.424082026 -0600
90
+<?xml version="1.0" encoding="UTF-8"?>
92
+ Copyright (c) 2013 Eric W. Biederman
93
+ All rights reserved.
95
+ Redistribution and use in source and binary forms, with or without
96
+ modification, are permitted provided that the following conditions
98
+ 1. Redistributions of source code must retain the above copyright
99
+ notice, this list of conditions and the following disclaimer.
100
+ 2. Redistributions in binary form must reproduce the above copyright
101
+ notice, this list of conditions and the following disclaimer in the
102
+ documentation and/or other materials provided with the distribution.
103
+ 3. The name of the copyright holders or contributors may not be used to
104
+ endorse or promote products derived from this software without
105
+ specific prior written permission.
107
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
108
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
109
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
110
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
111
+ HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
112
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
113
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
114
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
115
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
116
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
117
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
119
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
120
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
121
+<!-- SHADOW-CONFIG-HERE -->
123
+<refentry id='subgid.5'>
125
+ <refentrytitle>subgid</refentrytitle>
126
+ <manvolnum>5</manvolnum>
127
+ <refmiscinfo class="sectdesc">File Formats and Conversions</refmiscinfo>
128
+ <refmiscinfo class="source">shadow-utils</refmiscinfo>
129
+ <refmiscinfo class="version">&SHADOW_UTILS_VERSION;</refmiscinfo>
131
+ <refnamediv id='name'>
132
+ <refname>subgid</refname>
133
+ <refpurpose>the subordinate gid file</refpurpose>
136
+ <refsect1 id='description'>
137
+ <title>DESCRIPTION</title>
139
+ Each line in <filename>/etc/subgid</filename> contains
140
+ a user id and a range of suboridinate user ids that user
143
+ This is specified with three fields delimited by colons
144
+ (<quote>:</quote>).
147
+ <itemizedlist mark='bullet'>
149
+ <para>login name</para>
152
+ <para>numerical subordinate user ID</para>
155
+ <para>numerical subordinate user ID count</para>
160
+ This file specifies the group IDs to be that each user may use
161
+ with the <command>newgidmap</command> command that ordinary users can use to
162
+ configure gid mapping in a user namespace.
166
+ Multiple ranges may be specified per user ID.
171
+ <refsect1 id='files'>
172
+ <title>FILES</title>
175
+ <term><filename>/etc/subgid</filename></term>
177
+ <para>Per user subordinate group IDs.</para>
181
+ <term><filename>/etc/subgid-</filename></term>
183
+ <para>Backup file for /etc/subgid.</para>
189
+ <refsect1 id='see_also'>
190
+ <title>SEE ALSO</title>
193
+ <refentrytitle>subuid</refentrytitle><manvolnum>5</manvolnum>
196
+ <refentrytitle>logindefs</refentrytitle><manvolnum>5</manvolnum>
199
+ <refentrytitle>newuidmap</refentrytitle><manvolnum>1</manvolnum>
202
+ <refentrytitle>newgidmap</refentrytitle><manvolnum>1</manvolnum>
205
+ <refentrytitle>usermod</refentrytitle><manvolnum>8</manvolnum>
210
Index: shadow/man/subuid.5.xml
211
===================================================================
212
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
213
+++ shadow/man/subuid.5.xml 2013-02-01 15:26:14.424082026 -0600
215
+<?xml version="1.0" encoding="UTF-8"?>
217
+ Copyright (c) 2013 Eric W. Biederman
218
+ All rights reserved.
220
+ Redistribution and use in source and binary forms, with or without
221
+ modification, are permitted provided that the following conditions
223
+ 1. Redistributions of source code must retain the above copyright
224
+ notice, this list of conditions and the following disclaimer.
225
+ 2. Redistributions in binary form must reproduce the above copyright
226
+ notice, this list of conditions and the following disclaimer in the
227
+ documentation and/or other materials provided with the distribution.
228
+ 3. The name of the copyright holders or contributors may not be used to
229
+ endorse or promote products derived from this software without
230
+ specific prior written permission.
232
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
233
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
234
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
235
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
236
+ HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
237
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
238
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
239
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
240
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
241
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
242
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
244
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
245
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
246
+<!-- SHADOW-CONFIG-HERE -->
248
+<refentry id='subuid.5'>
250
+ <refentrytitle>subuid</refentrytitle>
251
+ <manvolnum>5</manvolnum>
252
+ <refmiscinfo class="sectdesc">File Formats and Conversions</refmiscinfo>
253
+ <refmiscinfo class="source">shadow-utils</refmiscinfo>
254
+ <refmiscinfo class="version">&SHADOW_UTILS_VERSION;</refmiscinfo>
256
+ <refnamediv id='name'>
257
+ <refname>subuid</refname>
258
+ <refpurpose>the subordinate uid file</refpurpose>
261
+ <refsect1 id='description'>
262
+ <title>DESCRIPTION</title>
264
+ Each line in <filename>/etc/subuid</filename> contains
265
+ a user id and a range of suboridinate user ids that user
268
+ This is specified with three fields delimited by colons
269
+ (<quote>:</quote>).
272
+ <itemizedlist mark='bullet'>
274
+ <para>login name</para>
277
+ <para>numerical subordinate user ID</para>
280
+ <para>numerical subordinate user ID count</para>
285
+ This file specifies the user IDs to be that each user may use
286
+ with the <command>newuidmap</command> command that ordinary users can use to
287
+ configure uid mapping in a user namespace.
291
+ Multiple ranges may be specified per user ID.
296
+ <refsect1 id='files'>
297
+ <title>FILES</title>
300
+ <term><filename>/etc/subuid</filename></term>
302
+ <para>Per user subordinate user IDs.</para>
306
+ <term><filename>/etc/subuid-</filename></term>
308
+ <para>Backup file for /etc/subuid.</para>
314
+ <refsect1 id='see_also'>
315
+ <title>SEE ALSO</title>
318
+ <refentrytitle>subgid</refentrytitle><manvolnum>5</manvolnum>
321
+ <refentrytitle>logindefs</refentrytitle><manvolnum>5</manvolnum>
324
+ <refentrytitle>newuidmap</refentrytitle><manvolnum>1</manvolnum>
327
+ <refentrytitle>newgidmap</refentrytitle><manvolnum>1</manvolnum>
330
+ <refentrytitle>usermod</refentrytitle><manvolnum>8</manvolnum>