]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-usernet.sgml.in
Teach lxc_unshare about interfaces, mounts, hostname, daemonize
[mirror_lxc.git] / doc / lxc-usernet.sgml.in
CommitLineData
df3415e0
SH
1<!--
2
3lxc: linux Container library
4
5(C) Copyright Canonical Ltd. 2013
6
7Authors:
8Serge Hallyn <serge.hallyn@ubuntu.com>
9
10This library is free software; you can redistribute it and/or
11modify it under the terms of the GNU Lesser General Public
12License as published by the Free Software Foundation; either
13version 2.1 of the License, or (at your option) any later version.
14
15This library is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18Lesser General Public License for more details.
19
20You should have received a copy of the GNU Lesser General Public
21License along with this library; if not, write to the Free Software
22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
24-->
25
26<!DOCTYPE refentry PUBLIC @docdtd@ [
27
28<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
29]>
30
31<refentry>
32
33 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
34
35 <refmeta>
36 <refentrytitle>lxc-usernet</refentrytitle>
37 <manvolnum>5</manvolnum>
38 </refmeta>
39
40 <refnamediv>
41 <refname>lxc-usernet</refname>
42
43 <refpurpose>
44 unprivileged user network administration file.
45 </refpurpose>
46 </refnamediv>
47
48 <refsect1>
49 <title>Description</title>
50
51 <para>
52 <filename>@LXC_USERNIC_CONF@</filename> controls the limits which the
53 program <command>lxc-user-nic</command> places on network interfaces
54 which an unprivileged user may create.
55 </para>
56
57 <refsect2>
58 <title>Configuration</title>
59 <para>
60 This file consists of multiple entries, one per line, of the form:
61 </para>
62
63 <para>
64 <command>user</command> <command>type</command> <command>bridge</command> <command>number</command>
65 </para>
66 <para>
67 Where
68 </para>
69
70 <variablelist>
71
72 <varlistentry>
73 <term>
74 <option>user</option>
75 </term>
76 <listitem>
77 <para>
78 is the username to whom this entry applies.
79 </para>
80 </listitem>
81 </varlistentry>
82
83 <varlistentry>
84 <term>
85 <option>type</option>
86 </term>
87 <listitem>
88 <para>
89 is the type of network interface being allowed. Only veth
90 is currently supported.
91 </para>
92 </listitem>
93 </varlistentry>
94
95 <varlistentry>
96 <term>
97 <option>bridge</option>
98 </term>
99 <listitem>
100 <para>
101 is the bridge to which the network interfaces may be attached, for
102 instance <filename>lxcbr0</filename>.
103 </para>
104 </listitem>
105 </varlistentry>
106
107 <varlistentry>
108 <term>
109 <option>number</option>
110 </term>
111 <listitem>
112 <para>
113 is the number of network interfaces of the given type which the
114 given user may attach to the given bridge, for instance <filename>2</filename>.
115 </para>
116 </listitem>
117 </varlistentry>
118 </variablelist>
119 </refsect2>
120
121 </refsect1>
122
123 <refsect1>
124 <title>See Also</title>
125 <simpara>
126 <citerefentry>
127 <refentrytitle><command>lxc</command></refentrytitle>
128 <manvolnum>1</manvolnum>
129 </citerefentry>,
130 <citerefentry>
131 <refentrytitle><command>lxc-user-nic</command></refentrytitle>
132 <manvolnum>1</manvolnum>
133 </citerefentry>
134 </simpara>
135 </refsect1>
136
137 <refsect1>
138 <title>Author</title>
139 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
140 </refsect1>
141
142</refentry>
143
144<!-- Keep this comment at the end of the file
145Local variables:
146mode: sgml
147sgml-omittag:t
148sgml-shorttag:t
149sgml-minimize-attributes:nil
150sgml-always-quote-attributes:t
151sgml-indent-step:2
152sgml-indent-data:t
153sgml-parent-document:nil
154sgml-default-dtd-file:nil
155sgml-exposed-tags:nil
156sgml-local-catalogs:nil
157sgml-local-ecat-files:nil
158End:
159-->