]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc.container.conf.sgml.in
doc: s/aa_profile/apparmor.profile/g
[mirror_lxc.git] / doc / lxc.container.conf.sgml.in
CommitLineData
55fc19a1
SG
1<!--
2
3lxc: linux Container library
4
5(C) Copyright IBM Corp. 2007, 2008
6
7Authors:
8Daniel Lezcano <daniel.lezcano at free.fr>
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.container.conf</refentrytitle>
37 <manvolnum>5</manvolnum>
38 </refmeta>
39
40 <refnamediv>
41 <refname>lxc.container.conf</refname>
42
43 <refpurpose>
44 LXC container configuration file
45 </refpurpose>
46 </refnamediv>
47
48 <refsect1>
49 <title>Description</title>
50
51 <para>
b9986e43
CB
52 LXC is the well-known and heavily tested low-level Linux container
53 runtime. It is in active development since 2008 and has proven itself in
54 critical production environments world-wide. Some of its core contributors
55 are the same people that helped to implement various well-known
56 containerization features inside the Linux kernel.
55fc19a1
SG
57 </para>
58
59 <para>
b9986e43
CB
60 LXC's main focus is system containers. That is, containers which offer an
61 environment as close as possible as the one you'd get from a VM but
62 without the overhead that comes with running a separate kernel and
63 simulating all the hardware.
55fc19a1
SG
64 </para>
65
66 <para>
b9986e43
CB
67 This is achieved through a combination of kernel security features such as
68 namespaces, mandatory access control and control groups.
69 </para>
70
71 <para>
72 LXC has supports unprivileged containers. Unprivileged containers are
73 containers that are run without any privilege. This requires support for
74 user namespaces in the kernel that the container is run on. LXC was the
75 first runtime to support unprivileged containers after user namespaces
76 were merged into the mainline kernel.
77 </para>
78
79 <para>
80 In essence, user namespaces isolate given sets of UIDs and GIDs. This is
81 achieved by establishing a mapping between a range of UIDs and GIDs on the
82 host to a different (unprivileged) range of UIDs and GIDs in the
83 container. The kernel will translate this mapping in such a way that
84 inside the container all UIDs and GIDs appear as you would expect from the
85 host whereas on the host these UIDs and GIDs are in fact unprivileged. For
86 example, a process running as UID and GID 0 inside the container might
87 appear as UID and GID 100000 on the host. The implementation and working
88 details can be gathered from the corresponding user namespace man page.
89 UID and GID mappings can be defined with the <option>lxc.id_map</option>
90 key.
91 </para>
92
93 <para>
94 Linux containers are defined with a simple configuration file. Each
95 option in the configuration file has the form <command>key =
96 value</command> fitting in one line. The "#" character means the line is a
97 comment. List options, like capabilities and cgroups options, can be used
98 with no value to clear any previously defined values of that option.
99 </para>
100
101 <para>
102 LXC namespaces configuration keys by using single dots. This means complex
7fa3f2e9 103 configuration keys such as <option>lxc.net.0</option> expose various
104 subkeys such as <option>lxc.net.0.type</option>,
2e44ae28 105 <option>lxc.net.0.link</option>, <option>lxc.net.0.ipv6.address</option>, and
b9986e43 106 others for even more fine-grained configuration.
55fc19a1
SG
107 </para>
108
109 <refsect2>
110 <title>Configuration</title>
111 <para>
b9986e43
CB
112 In order to ease administration of multiple related containers, it is
113 possible to have a container configuration file cause another file to be
114 loaded. For instance, network configuration can be defined in one common
115 file which is included by multiple containers. Then, if the containers
116 are moved to another host, only one file may need to be updated.
55fc19a1
SG
117 </para>
118
119 <variablelist>
c464fd7e
SG
120 <varlistentry>
121 <term>
122 <option>lxc.include</option>
123 </term>
124 <listitem>
125 <para>
126 Specify the file to be included. The included file must be
127 in the same valid lxc configuration file format.
128 </para>
129 </listitem>
130 </varlistentry>
55fc19a1
SG
131 </variablelist>
132 </refsect2>
133
134 <refsect2>
135 <title>Architecture</title>
136 <para>
b9986e43
CB
137 Allows one to set the architecture for the container. For example, set a
138 32bits architecture for a container running 32bits binaries on a 64bits
139 host. This fixes the container scripts which rely on the architecture to
140 do some work like downloading the packages.
55fc19a1
SG
141 </para>
142
143 <variablelist>
c464fd7e
SG
144 <varlistentry>
145 <term>
146 <option>lxc.arch</option>
147 </term>
148 <listitem>
149 <para>
150 Specify the architecture for the container.
151 </para>
152 <para>
b9986e43 153 Some valid options are
c464fd7e
SG
154 <option>x86</option>,
155 <option>i686</option>,
156 <option>x86_64</option>,
157 <option>amd64</option>
158 </para>
159 </listitem>
160 </varlistentry>
55fc19a1
SG
161 </variablelist>
162
163 </refsect2>
164
165 <refsect2>
166 <title>Hostname</title>
167 <para>
b9986e43
CB
168 The utsname section defines the hostname to be set for the container.
169 That means the container can set its own hostname without changing the
170 one from the system. That makes the hostname private for the container.
55fc19a1
SG
171 </para>
172 <variablelist>
c464fd7e
SG
173 <varlistentry>
174 <term>
b67771bc 175 <option>lxc.uts.name</option>
c464fd7e
SG
176 </term>
177 <listitem>
178 <para>
179 specify the hostname for the container
180 </para>
181 </listitem>
182 </varlistentry>
55fc19a1
SG
183 </variablelist>
184 </refsect2>
185
186 <refsect2>
187 <title>Halt signal</title>
188 <para>
b9986e43
CB
189 Allows one to specify signal name or number sent to the container's
190 init process to cleanly shutdown the container. Different init systems
191 could use different signals to perform clean shutdown sequence. This
192 option allows the signal to be specified in kill(1) fashion, e.g.
193 SIGPWR, SIGRTMIN+14, SIGRTMAX-10 or plain number. The default signal is
194 SIGPWR.
55fc19a1
SG
195 </para>
196 <variablelist>
936762f3
BP
197 <varlistentry>
198 <term>
55c84efc 199 <option>lxc.signal.halt</option>
936762f3
BP
200 </term>
201 <listitem>
202 <para>
203 specify the signal used to halt the container
204 </para>
205 </listitem>
206 </varlistentry>
207 </variablelist>
208 </refsect2>
209
210 <refsect2>
211 <title>Reboot signal</title>
212 <para>
b9986e43
CB
213 Allows one to specify signal name or number to reboot the container.
214 This option allows signal to be specified in kill(1) fashion, e.g.
215 SIGTERM, SIGRTMIN+14, SIGRTMAX-10 or plain number. The default signal
216 is SIGINT.
936762f3
BP
217 </para>
218 <variablelist>
219 <varlistentry>
220 <term>
55c84efc 221 <option>lxc.signal.reboot</option>
936762f3
BP
222 </term>
223 <listitem>
224 <para>
225 specify the signal used to reboot the container
226 </para>
227 </listitem>
228 </varlistentry>
55fc19a1
SG
229 </variablelist>
230 </refsect2>
231
232 <refsect2>
233 <title>Stop signal</title>
234 <para>
b9986e43
CB
235 Allows one to specify signal name or number to forcibly shutdown the
236 container. This option allows signal to be specified in kill(1) fashion,
237 e.g. SIGKILL, SIGRTMIN+14, SIGRTMAX-10 or plain number. The default
238 signal is SIGKILL.
936762f3
BP
239 </para>
240 <variablelist>
241 <varlistentry>
242 <term>
55c84efc 243 <option>lxc.signal.stop</option>
936762f3
BP
244 </term>
245 <listitem>
246 <para>
247 specify the signal used to stop the container
248 </para>
249 </listitem>
250 </varlistentry>
55fc19a1
SG
251 </variablelist>
252 </refsect2>
253
67c660d0
SG
254 <refsect2>
255 <title>Init command</title>
256 <para>
257 Sets the command to use as the init system for the containers.
258
259 This option is ignored when using lxc-execute.
260
261 Defaults to: /sbin/init
262 </para>
263 <variablelist>
936762f3
BP
264 <varlistentry>
265 <term>
9dcf7b4d 266 <option>lxc.init.cmd</option>
936762f3
BP
267 </term>
268 <listitem>
269 <para>
270 Absolute path from container rootfs to the binary to use as init.
271 </para>
272 </listitem>
273 </varlistentry>
67c660d0
SG
274 </variablelist>
275 </refsect2>
276
dbca9237
PT
277 <refsect2>
278 <title>Init ID</title>
279 <para>
b9986e43
CB
280 Sets the UID/GID to use for the init system, and subsequent commands.
281 Note that using a non-root uid when booting a system container will
282 likely not work due to missing privileges. Setting the UID/GID is mostly
283 useful when running application container.
dbca9237
PT
284
285 Defaults to: UID(0), GID(0)
286 </para>
287 <variablelist>
288 <varlistentry>
289 <term>
9dcf7b4d 290 <option>lxc.init.uid</option>
dbca9237
PT
291 </term>
292 <listitem>
293 <para>
b9986e43 294 UID to use for init.
dbca9237
PT
295 </para>
296 </listitem>
297 </varlistentry>
298 <varlistentry>
299 <term>
9dcf7b4d 300 <option>lxc.init.gid</option>
dbca9237
PT
301 </term>
302 <listitem>
303 <para>
b9986e43 304 GID to use for init.
dbca9237
PT
305 </para>
306 </listitem>
307 </varlistentry>
308 </variablelist>
309 </refsect2>
310
4e6eb26b
CB
311 <refsect2>
312 <title>Ephemeral</title>
313 <para>
314 Allows one to specify whether a container will be destroyed on shutdown.
315 </para>
316 <variablelist>
317 <varlistentry>
318 <term>
319 <option>lxc.ephemeral</option>
320 </term>
321 <listitem>
322 <para>
323 The only allowed values are 0 and 1. Set this to 1 to destroy a
324 container on shutdown.
325 </para>
326 </listitem>
327 </varlistentry>
328 </variablelist>
329 </refsect2>
330
55fc19a1
SG
331 <refsect2>
332 <title>Network</title>
333 <para>
c464fd7e
SG
334 The network section defines how the network is virtualized in
335 the container. The network virtualization acts at layer
336 two. In order to use the network virtualization, parameters
337 must be specified to define the network interfaces of the
338 container. Several virtual interfaces can be assigned and used
339 in a container even if the system has only one physical
340 network interface.
55fc19a1
SG
341 </para>
342 <variablelist>
020104c3
MH
343 <varlistentry>
344 <term>
7fa3f2e9 345 <option>lxc.net</option>
020104c3
MH
346 </term>
347 <listitem>
348 <para>
349 may be used without a value to clear all previous network options.
350 </para>
351 </listitem>
352 </varlistentry>
c464fd7e
SG
353 <varlistentry>
354 <term>
7fa3f2e9 355 <option>lxc.net.[i].type</option>
c464fd7e
SG
356 </term>
357 <listitem>
358 <para>
359 specify what kind of network virtualization to be used
b9986e43
CB
360 for the container.
361 Multiple networks can be specified by using an additional index
362 <option>i</option>
7fa3f2e9 363 after all <option>lxc.net.*</option> keys. For example,
364 <option>lxc.net.0.type = veth</option> and
365 <option>lxc.net.1.type = veth</option> specify two different
b9986e43
CB
366 networks of the same type. All keys sharing the same index
367 <option>i</option> will be treated as belonging to the same
7fa3f2e9 368 network. For example, <option>lxc.net.0.link = br0</option>
369 will belong to <option>lxc.net.0.type</option>.
b9986e43 370 Currently, the different virtualization types can be:
c464fd7e
SG
371 </para>
372
373 <para>
374 <option>none:</option> will cause the container to share
375 the host's network namespace. This means the host
376 network devices are usable in the container. It also
377 means that if both the container and host have upstart as
378 init, 'halt' in a container (for instance) will shut down the
379 host.
380 </para>
381
382 <para>
383 <option>empty:</option> will create only the loopback
384 interface.
385 </para>
386
387 <para>
38005c54
MA
388 <option>veth:</option> a virtual ethernet pair
389 device is created with one side assigned to the container
390 and the other side attached to a bridge specified by
7fa3f2e9 391 the <option>lxc.net.[i].link</option> option.
38005c54
MA
392 If the bridge is not specified, then the veth pair device
393 will be created but not attached to any bridge.
394 Otherwise, the bridge has to be created on the system
395 before starting the container.
396 <command>lxc</command> won't handle any
397 configuration outside of the container.
398 By default, <command>lxc</command> chooses a name for the
c464fd7e 399 network device belonging to the outside of the
38005c54
MA
400 container, but if you wish to handle
401 this name yourselves, you can tell <command>lxc</command>
c464fd7e 402 to set a specific name with
7fa3f2e9 403 the <option>lxc.net.[i].veth.pair</option> option (except for
c464fd7e
SG
404 unprivileged containers where this option is ignored for security
405 reasons).
406 </para>
407
408 <para>
409 <option>vlan:</option> a vlan interface is linked with
410 the interface specified by
7fa3f2e9 411 the <option>lxc.net.[i].link</option> and assigned to
c464fd7e 412 the container. The vlan identifier is specified with the
7fa3f2e9 413 option <option>lxc.net.[i].vlan.id</option>.
c464fd7e
SG
414 </para>
415
416 <para>
417 <option>macvlan:</option> a macvlan interface is linked
418 with the interface specified by
7fa3f2e9 419 the <option>lxc.net.[i].link</option> and assigned to
c464fd7e 420 the container.
7fa3f2e9 421 <option>lxc.net.[i].macvlan.mode</option> specifies the
c464fd7e
SG
422 mode the macvlan will use to communicate between
423 different macvlan on the same upper device. The accepted
c15ea607
EL
424 modes are <option>private</option>, <option>vepa</option>,
425 <option>bridge</option> and <option>passthru</option>.
426 In <option>private</option> mode, the device never
427 communicates with any other device on the same upper_dev (default).
428 In <option>vepa</option> mode, the new Virtual Ethernet Port
c464fd7e
SG
429 Aggregator (VEPA) mode, it assumes that the adjacent
430 bridge returns all frames where both source and
431 destination are local to the macvlan port, i.e. the
432 bridge is set up as a reflective relay. Broadcast
433 frames coming in from the upper_dev get flooded to all
434 macvlan interfaces in VEPA mode, local frames are not
c15ea607 435 delivered locally. In <option>bridge</option> mode, it
c464fd7e
SG
436 provides the behavior of a simple bridge between
437 different macvlan interfaces on the same port. Frames
438 from one interface to another one get delivered directly
439 and are not sent out externally. Broadcast frames get
440 flooded to all other bridge ports and to the external
441 interface, but when they come back from a reflective
442 relay, we don't deliver them again. Since we know all
443 the MAC addresses, the macvlan bridge mode does not
c15ea607
EL
444 require learning or STP like the bridge module does. In
445 <option>passthru</option> mode, all frames received by
446 the physical interface are forwarded to the macvlan
447 interface. Only one macvlan interface in <option>passthru</option>
448 mode is possible for one physical interface.
c464fd7e
SG
449 </para>
450
451 <para>
452 <option>phys:</option> an already existing interface
7fa3f2e9 453 specified by the <option>lxc.net.[i].link</option> is
c464fd7e
SG
454 assigned to the container.
455 </para>
456 </listitem>
457 </varlistentry>
458
459 <varlistentry>
460 <term>
7fa3f2e9 461 <option>lxc.net.[i].flags</option>
c464fd7e
SG
462 </term>
463 <listitem>
464 <para>
b9986e43 465 Specify an action to do for the network.
c464fd7e
SG
466 </para>
467
468 <para><option>up:</option> activates the interface.
469 </para>
470 </listitem>
471 </varlistentry>
472
473 <varlistentry>
474 <term>
7fa3f2e9 475 <option>lxc.net.[i].link</option>
c464fd7e
SG
476 </term>
477 <listitem>
478 <para>
b9986e43
CB
479 Specify the interface to be used for real network traffic.
480 </para>
c464fd7e
SG
481 </listitem>
482 </varlistentry>
483
484 <varlistentry>
485 <term>
7fa3f2e9 486 <option>lxc.net.[i].mtu</option>
c464fd7e
SG
487 </term>
488 <listitem>
489 <para>
b9986e43 490 Specify the maximum transfer unit for this interface.
c464fd7e
SG
491 </para>
492 </listitem>
493 </varlistentry>
494
495 <varlistentry>
496 <term>
7fa3f2e9 497 <option>lxc.net.[i].name</option>
c464fd7e
SG
498 </term>
499 <listitem>
500 <para>
b9986e43
CB
501 The interface name is dynamically allocated, but if another name
502 is needed because the configuration files being used by the
503 container use a generic name, eg. eth0, this option will rename
504 the interface in the container.
c464fd7e
SG
505 </para>
506 </listitem>
507 </varlistentry>
508
509 <varlistentry>
510 <term>
7fa3f2e9 511 <option>lxc.net.[i].hwaddr</option>
c464fd7e
SG
512 </term>
513 <listitem>
514 <para>
b9986e43
CB
515 The interface mac address is dynamically allocated by default to
516 the virtual interface, but in some cases, this is needed to
517 resolve a mac address conflict or to always have the same
518 link-local ipv6 address. Any "x" in address will be replaced by
519 random value, this allows setting hwaddr templates.
c464fd7e
SG
520 </para>
521 </listitem>
522 </varlistentry>
523
524 <varlistentry>
525 <term>
9ff60df2 526 <option>lxc.net.[i].ipv4.address</option>
c464fd7e
SG
527 </term>
528 <listitem>
529 <para>
b9986e43
CB
530 Specify the ipv4 address to assign to the virtualized interface.
531 Several lines specify several ipv4 addresses. The address is in
532 format x.y.z.t/m, eg. 192.168.1.123/24.
c464fd7e
SG
533 </para>
534 </listitem>
535 </varlistentry>
536
537 <varlistentry>
538 <term>
7fa3f2e9 539 <option>lxc.net.[i].ipv4.gateway</option>
c464fd7e
SG
540 </term>
541 <listitem>
542 <para>
b9986e43
CB
543 Specify the ipv4 address to use as the gateway inside the
544 container. The address is in format x.y.z.t, eg. 192.168.1.123.
c464fd7e
SG
545
546 Can also have the special value <option>auto</option>,
547 which means to take the primary address from the bridge
548 interface (as specified by the
7fa3f2e9 549 <option>lxc.net.[i].link</option> option) and use that as
c464fd7e
SG
550 the gateway. <option>auto</option> is only available when
551 using the <option>veth</option> and
552 <option>macvlan</option> network types.
553 </para>
554 </listitem>
555 </varlistentry>
556
557
558 <varlistentry>
559 <term>
2e44ae28 560 <option>lxc.net.[i].ipv6.address</option>
c464fd7e
SG
561 </term>
562 <listitem>
563 <para>
b9986e43
CB
564 Specify the ipv6 address to assign to the virtualized
565 interface. Several lines specify several ipv6 addresses. The
566 address is in format x::y/m, eg.
567 2003:db8:1:0:214:1234:fe0b:3596/64
c464fd7e
SG
568 </para>
569 </listitem>
570 </varlistentry>
571
572 <varlistentry>
573 <term>
7fa3f2e9 574 <option>lxc.net.[i].ipv6.gateway</option>
c464fd7e
SG
575 </term>
576 <listitem>
577 <para>
b9986e43
CB
578 Specify the ipv6 address to use as the gateway inside the
579 container. The address is in format x::y, eg. 2003:db8:1:0::1
c464fd7e
SG
580
581 Can also have the special value <option>auto</option>,
582 which means to take the primary address from the bridge
583 interface (as specified by the
7fa3f2e9 584 <option>lxc.net.[i].link</option> option) and use that as
c464fd7e
SG
585 the gateway. <option>auto</option> is only available when
586 using the <option>veth</option> and
587 <option>macvlan</option> network types.
588 </para>
589 </listitem>
590 </varlistentry>
591
592 <varlistentry>
593 <term>
7fa3f2e9 594 <option>lxc.net.[i].script.up</option>
c464fd7e
SG
595 </term>
596 <listitem>
597 <para>
b9986e43 598 Add a configuration option to specify a script to be
c464fd7e
SG
599 executed after creating and configuring the network used
600 from the host side. The following arguments are passed
601 to the script: container name and config section name
602 (net) Additional arguments depend on the config section
603 employing a script hook; the following are used by the
604 network system: execution context (up), network type
605 (empty/veth/macvlan/phys), Depending on the network
606 type, other arguments may be passed:
607 veth/macvlan/phys. And finally (host-sided) device name.
608 </para>
609 <para>
610 Standard output from the script is logged at debug level.
611 Standard error is not logged, but can be captured by the
612 hook redirecting its standard error to standard output.
613 </para>
614 </listitem>
615 </varlistentry>
616
617 <varlistentry>
618 <term>
7fa3f2e9 619 <option>lxc.net.[i].script.down</option>
c464fd7e
SG
620 </term>
621 <listitem>
622 <para>
b9986e43 623 Add a configuration option to specify a script to be
c464fd7e
SG
624 executed before destroying the network used from the
625 host side. The following arguments are passed to the
626 script: container name and config section name (net)
627 Additional arguments depend on the config section
628 employing a script hook; the following are used by the
629 network system: execution context (down), network type
630 (empty/veth/macvlan/phys), Depending on the network
631 type, other arguments may be passed:
632 veth/macvlan/phys. And finally (host-sided) device name.
633 </para>
634 <para>
635 Standard output from the script is logged at debug level.
636 Standard error is not logged, but can be captured by the
637 hook redirecting its standard error to standard output.
638 </para>
639 </listitem>
640 </varlistentry>
55fc19a1
SG
641 </variablelist>
642 </refsect2>
643
644 <refsect2>
645 <title>New pseudo tty instance (devpts)</title>
646 <para>
c464fd7e
SG
647 For stricter isolation the container can have its own private
648 instance of the pseudo tty.
55fc19a1
SG
649 </para>
650 <variablelist>
c464fd7e
SG
651 <varlistentry>
652 <term>
232763d6 653 <option>lxc.pty.max</option>
c464fd7e
SG
654 </term>
655 <listitem>
656 <para>
657 If set, the container will have a new pseudo tty
658 instance, making this private to it. The value specifies
55fc19a1
SG
659 the maximum number of pseudo ttys allowed for a pts
660 instance (this limitation is not implemented yet).
c464fd7e
SG
661 </para>
662 </listitem>
663 </varlistentry>
55fc19a1
SG
664 </variablelist>
665 </refsect2>
666
667 <refsect2>
668 <title>Container system console</title>
669 <para>
c464fd7e
SG
670 If the container is configured with a root filesystem and the
671 inittab file is setup to use the console, you may want to specify
672 where the output of this console goes.
55fc19a1
SG
673 </para>
674 <variablelist>
c464fd7e
SG
675 <varlistentry>
676 <term>
677 <option>lxc.console.logfile</option>
678 </term>
679 <listitem>
680 <para>
681 Specify a path to a file where the console output will
682 be written.
683 </para>
684 </listitem>
685 </varlistentry>
686 <varlistentry>
687 <term>
3aed4934 688 <option>lxc.console.path</option>
c464fd7e
SG
689 </term>
690 <listitem>
691 <para>
692 Specify a path to a device to which the console will be
6e3bb289
CB
693 attached. The keyword 'none' will simply disable the
694 console. Note, when specifying 'none' and creating a device node
695 for the console in the container at /dev/console or bind-mounting
696 the hosts's /dev/console into the container at /dev/console the
697 container will have direct access to the hosts's /dev/console.
698 This is dangerous when the container has write access to the
699 device and should thus be used with caution.
c464fd7e
SG
700 </para>
701 </listitem>
702 </varlistentry>
55fc19a1
SG
703 </variablelist>
704 </refsect2>
705
706 <refsect2>
707 <title>Console through the ttys</title>
708 <para>
c464fd7e
SG
709 This option is useful if the container is configured with a root
710 filesystem and the inittab file is setup to launch a getty on the
711 ttys. The option specifies the number of ttys to be available for
712 the container. The number of gettys in the inittab file of the
713 container should not be greater than the number of ttys specified
714 in this option, otherwise the excess getty sessions will die and
715 respawn indefinitely giving annoying messages on the console or in
716 <filename>/var/log/messages</filename>.
55fc19a1
SG
717 </para>
718 <variablelist>
c464fd7e
SG
719 <varlistentry>
720 <term>
fe1c5887 721 <option>lxc.tty.max</option>
c464fd7e
SG
722 </term>
723 <listitem>
724 <para>
725 Specify the number of tty to make available to the
726 container.
727 </para>
728 </listitem>
729 </varlistentry>
55fc19a1
SG
730 </variablelist>
731 </refsect2>
732
733 <refsect2>
734 <title>Console devices location</title>
735 <para>
736 LXC consoles are provided through Unix98 PTYs created on the
c464fd7e
SG
737 host and bind-mounted over the expected devices in the container.
738 By default, they are bind-mounted over <filename>/dev/console</filename>
739 and <filename>/dev/ttyN</filename>. This can prevent package upgrades
740 in the guest. Therefore you can specify a directory location (under
741 <filename>/dev</filename> under which LXC will create the files and
742 bind-mount over them. These will then be symbolically linked to
743 <filename>/dev/console</filename> and <filename>/dev/ttyN</filename>.
744 A package upgrade can then succeed as it is able to remove and replace
745 the symbolic links.
55fc19a1
SG
746 </para>
747 <variablelist>
c464fd7e
SG
748 <varlistentry>
749 <term>
fe1c5887 750 <option>lxc.tty.dir</option>
c464fd7e
SG
751 </term>
752 <listitem>
753 <para>
754 Specify a directory under <filename>/dev</filename>
6e3bb289
CB
755 under which to create the container console devices. Note that LXC
756 will move any bind-mounts or device nodes for /dev/console into
757 this directory.
c464fd7e
SG
758 </para>
759 </listitem>
760 </varlistentry>
55fc19a1
SG
761 </variablelist>
762 </refsect2>
763
764 <refsect2>
765 <title>/dev directory</title>
766 <para>
c464fd7e
SG
767 By default, lxc creates a few symbolic links (fd,stdin,stdout,stderr)
768 in the container's <filename>/dev</filename> directory but does not
769 automatically create device node entries. This allows the container's
770 <filename>/dev</filename> to be set up as needed in the container
771 rootfs. If lxc.autodev is set to 1, then after mounting the container's
772 rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
c35d2909 773 (limited to 500k) and fill in a minimal set of initial devices.
55fc19a1
SG
774 This is generally required when starting a container containing
775 a "systemd" based "init" but may be optional at other times. Additional
776 devices in the containers /dev directory may be created through the
777 use of the <option>lxc.hook.autodev</option> hook.
778 </para>
779 <variablelist>
c464fd7e
SG
780 <varlistentry>
781 <term>
782 <option>lxc.autodev</option>
783 </term>
784 <listitem>
785 <para>
124fa0a8 786 Set this to 0 to stop LXC from mounting and populating a minimal
c464fd7e
SG
787 <filename>/dev</filename> when starting the container.
788 </para>
789 </listitem>
790 </varlistentry>
55fc19a1 791 </variablelist>
55fc19a1
SG
792 </refsect2>
793
794 <refsect2>
795 <title>Mount points</title>
796 <para>
c464fd7e
SG
797 The mount points section specifies the different places to be
798 mounted. These mount points will be private to the container
799 and won't be visible by the processes running outside of the
800 container. This is useful to mount /etc, /var or /home for
801 examples.
55fc19a1 802 </para>
592fd47a
SH
803 <para>
804 NOTE - LXC will generally ensure that mount targets and relative
805 bind-mount sources are properly confined under the container
806 root, to avoid attacks involving over-mounting host directories
807 and files. (Symbolic links in absolute mount sources are ignored)
808 However, if the container configuration first mounts a directory which
809 is under the control of the container user, such as /home/joe, into
810 the container at some <filename>path</filename>, and then mounts
811 under <filename>path</filename>, then a TOCTTOU attack would be
812 possible where the container user modifies a symbolic link under
813 his home directory at just the right time.
814 </para>
55fc19a1 815 <variablelist>
c464fd7e
SG
816 <varlistentry>
817 <term>
47148e96 818 <option>lxc.mount.fstab</option>
c464fd7e
SG
819 </term>
820 <listitem>
821 <para>
822 specify a file location in
823 the <filename>fstab</filename> format, containing the
824 mount information. The mount target location can and in
825 most cases should be a relative path, which will become
826 relative to the mounted container root. For instance,
827 </para>
b9986e43
CB
828 <programlisting>
829 proc proc proc nodev,noexec,nosuid 0 0
830 </programlisting>
c464fd7e
SG
831 <para>
832 Will mount a proc filesystem under the container's /proc,
833 regardless of where the root filesystem comes from. This
834 is resilient to block device backed filesystems as well as
835 container cloning.
836 </para>
837 <para>
838 Note that when mounting a filesystem from an
839 image file or block device the third field (fs_vfstype)
840 cannot be auto as with
55fc19a1 841 <citerefentry>
c464fd7e 842 <refentrytitle>mount</refentrytitle>
55fc19a1
SG
843 <manvolnum>8</manvolnum>
844 </citerefentry>
845 but must be explicitly specified.
c464fd7e
SG
846 </para>
847 </listitem>
848 </varlistentry>
849
850 <varlistentry>
851 <term>
852 <option>lxc.mount.entry</option>
853 </term>
854 <listitem>
855 <para>
856 specify a mount point corresponding to a line in the
857 fstab format.
f5b67b36
NC
858
859 Moreover lxc add two options to mount.
860 <option>optional</option> don't fail if mount does not work.
861 <option>create=dir</option> or <option>create=file</option>
862 to create dir (or file) when the point will be mounted.
c464fd7e
SG
863 </para>
864 </listitem>
865 </varlistentry>
866
867 <varlistentry>
868 <term>
869 <option>lxc.mount.auto</option>
870 </term>
871 <listitem>
872 <para>
873 specify which standard kernel file systems should be
874 automatically mounted. This may dramatically simplify
875 the configuration. The file systems are:
876 </para>
877 <itemizedlist>
878 <listitem>
879 <para>
880 <option>proc:mixed</option> (or <option>proc</option>):
881 mount <filename>/proc</filename> as read-write, but
882 remount <filename>/proc/sys</filename> and
883 <filename>/proc/sysrq-trigger</filename> read-only
884 for security / container isolation purposes.
885 </para>
886 </listitem>
887 <listitem>
888 <para>
889 <option>proc:rw</option>: mount
890 <filename>/proc</filename> as read-write
891 </para>
892 </listitem>
893 <listitem>
894 <para>
f24a52d5
SG
895 <option>sys:mixed</option> (or <option>sys</option>):
896 mount <filename>/sys</filename> as read-only but with
897 /sys/devices/virtual/net writable.
898 </para>
899 </listitem>
900 <listitem>
901 <para>
902 <option>sys:ro</option>:
c464fd7e
SG
903 mount <filename>/sys</filename> as read-only
904 for security / container isolation purposes.
905 </para>
906 </listitem>
907 <listitem>
908 <para>
909 <option>sys:rw</option>: mount
910 <filename>/sys</filename> as read-write
911 </para>
912 </listitem>
913 <listitem>
914 <para>
915 <option>cgroup:mixed</option>:
916 mount a tmpfs to <filename>/sys/fs/cgroup</filename>,
917 create directories for all hierarchies to which
918 the container is added, create subdirectories
919 there with the name of the cgroup, and bind-mount
920 the container's own cgroup into that directory.
921 The container will be able to write to its own
922 cgroup directory, but not the parents, since they
4608594e 923 will be remounted read-only.
c464fd7e
SG
924 </para>
925 </listitem>
926 <listitem>
927 <para>
928 <option>cgroup:ro</option>: similar to
929 <option>cgroup:mixed</option>, but everything will
930 be mounted read-only.
931 </para>
932 </listitem>
933 <listitem>
934 <para>
935 <option>cgroup:rw</option>: similar to
936 <option>cgroup:mixed</option>, but everything will
937 be mounted read-write. Note that the paths leading
938 up to the container's own cgroup will be writable,
939 but will not be a cgroup filesystem but just part
940 of the tmpfs of <filename>/sys/fs/cgroup</filename>
941 </para>
942 </listitem>
943 <listitem>
944 <para>
945 <option>cgroup</option> (without specifier):
946 defaults to <option>cgroup:rw</option> if the
947 container retains the CAP_SYS_ADMIN capability,
948 <option>cgroup:mixed</option> otherwise.
949 </para>
950 </listitem>
951 <listitem>
952 <para>
953 <option>cgroup-full:mixed</option>:
954 mount a tmpfs to <filename>/sys/fs/cgroup</filename>,
955 create directories for all hierarchies to which
956 the container is added, bind-mount the hierarchies
957 from the host to the container and make everything
958 read-only except the container's own cgroup. Note
959 that compared to <option>cgroup</option>, where
960 all paths leading up to the container's own cgroup
961 are just simple directories in the underlying
962 tmpfs, here
963 <filename>/sys/fs/cgroup/$hierarchy</filename>
964 will contain the host's full cgroup hierarchy,
965 albeit read-only outside the container's own cgroup.
966 This may leak quite a bit of information into the
967 container.
968 </para>
969 </listitem>
970 <listitem>
971 <para>
972 <option>cgroup-full:ro</option>: similar to
973 <option>cgroup-full:mixed</option>, but everything
974 will be mounted read-only.
975 </para>
976 </listitem>
977 <listitem>
978 <para>
979 <option>cgroup-full:rw</option>: similar to
980 <option>cgroup-full:mixed</option>, but everything
981 will be mounted read-write. Note that in this case,
982 the container may escape its own cgroup. (Note also
983 that if the container has CAP_SYS_ADMIN support
984 and can mount the cgroup filesystem itself, it may
985 do so anyway.)
986 </para>
987 </listitem>
988 <listitem>
989 <para>
990 <option>cgroup-full</option> (without specifier):
991 defaults to <option>cgroup-full:rw</option> if the
992 container retains the CAP_SYS_ADMIN capability,
993 <option>cgroup-full:mixed</option> otherwise.
994 </para>
995 </listitem>
996 </itemizedlist>
4608594e
SH
997 <para>
998 If cgroup namespaces are enabled, then any <option>cgroup</option>
999 auto-mounting request will be ignored, since the container can
1000 mount the filesystems itself, and automounting can confuse the
1001 container init.
1002 </para>
c464fd7e
SG
1003 <para>
1004 Note that if automatic mounting of the cgroup filesystem
1005 is enabled, the tmpfs under
1006 <filename>/sys/fs/cgroup</filename> will always be
1007 mounted read-write (but for the <option>:mixed</option>
1008 and <option>:ro</option> cases, the individual
1009 hierarchies,
1010 <filename>/sys/fs/cgroup/$hierarchy</filename>, will be
1011 read-only). This is in order to work around a quirk in
1012 Ubuntu's
b46f0553 1013 <citerefentry>
c464fd7e 1014 <refentrytitle>mountall</refentrytitle>
b46f0553
CS
1015 <manvolnum>8</manvolnum>
1016 </citerefentry>
c464fd7e
SG
1017 command that will cause containers to wait for user
1018 input at boot if
1019 <filename>/sys/fs/cgroup</filename> is mounted read-only
1020 and the container can't remount it read-write due to a
1021 lack of CAP_SYS_ADMIN.
1022 </para>
1023 <para>
1024 Examples:
1025 </para>
1026 <programlisting>
1027 lxc.mount.auto = proc sys cgroup
1028 lxc.mount.auto = proc:rw sys:rw cgroup-full:rw
1029 </programlisting>
1030 </listitem>
1031 </varlistentry>
55fc19a1
SG
1032
1033 </variablelist>
1034 </refsect2>
1035
1036 <refsect2>
1037 <title>Root file system</title>
1038 <para>
c464fd7e
SG
1039 The root file system of the container can be different than that
1040 of the host system.
55fc19a1
SG
1041 </para>
1042 <variablelist>
c464fd7e
SG
1043 <varlistentry>
1044 <term>
7a96a068 1045 <option>lxc.rootfs.path</option>
c464fd7e
SG
1046 </term>
1047 <listitem>
1048 <para>
1049 specify the root file system for the container. It can
1050 be an image file, a directory or a block device. If not
1051 specified, the container shares its root file system
1052 with the host.
1053 </para>
1054 <para>
f1c26f2c
SH
1055 For directory or simple block-device backed containers,
1056 a pathname can be used. If the rootfs is backed by a nbd
1057 device, then <filename>nbd:file:1</filename> specifies that
1058 <filename>file</filename> should be attached to a nbd device,
1059 and partition 1 should be mounted as the rootfs.
1060 <filename>nbd:file</filename> specifies that the nbd device
1061 itself should be mounted. <filename>overlayfs:/lower:/upper</filename>
1062 specifies that the rootfs should be an overlay with <filename>/upper</filename>
1063 being mounted read-write over a read-only mount of <filename>/lower</filename>.
1064 <filename>aufs:/lower:/upper</filename> does the same using aufs in place
280d2379
CB
1065 of overlayfs. For both <filename>overlayfs</filename> and
1066 <filename>aufs</filename> multiple <filename>/lower</filename>
1067 directories can be specified. <filename>loop:/file</filename> tells lxc to attach
f1c26f2c 1068 <filename>/file</filename> to a loop device and mount the loop device.
c464fd7e
SG
1069 </para>
1070 </listitem>
1071 </varlistentry>
1072
1073 <varlistentry>
1074 <term>
1075 <option>lxc.rootfs.mount</option>
1076 </term>
1077 <listitem>
1078 <para>
7a96a068 1079 where to recursively bind <option>lxc.rootfs.path</option>
c464fd7e
SG
1080 before pivoting. This is to ensure success of the
1081 <citerefentry>
1082 <refentrytitle><command>pivot_root</command></refentrytitle>
1083 <manvolnum>8</manvolnum>
1084 </citerefentry>
1085 syscall. Any directory suffices, the default should
1086 generally work.
1087 </para>
1088 </listitem>
1089 </varlistentry>
1090
1091 <varlistentry>
1092 <term>
1093 <option>lxc.rootfs.options</option>
1094 </term>
1095 <listitem>
1096 <para>
1097 extra mount options to use when mounting the rootfs.
1098 </para>
1099 </listitem>
1100 </varlistentry>
a17b1e65 1101
55fc19a1
SG
1102 </variablelist>
1103 </refsect2>
1104
1105 <refsect2>
1106 <title>Control group</title>
1107 <para>
c464fd7e
SG
1108 The control group section contains the configuration for the
1109 different subsystem. <command>lxc</command> does not check the
1110 correctness of the subsystem name. This has the disadvantage
1111 of not detecting configuration errors until the container is
1112 started, but has the advantage of permitting any future
1113 subsystem.
55fc19a1
SG
1114 </para>
1115 <variablelist>
c464fd7e
SG
1116 <varlistentry>
1117 <term>
1118 <option>lxc.cgroup.[subsystem name]</option>
1119 </term>
1120 <listitem>
1121 <para>
1122 specify the control group value to be set. The
1123 subsystem name is the literal name of the control group
1124 subsystem. The permitted names and the syntax of their
1125 values is not dictated by LXC, instead it depends on the
1126 features of the Linux kernel running at the time the
1127 container is started,
1128 eg. <option>lxc.cgroup.cpuset.cpus</option>
1129 </para>
1130 </listitem>
1131 </varlistentry>
55fc19a1
SG
1132 </variablelist>
1133 </refsect2>
1134
1135 <refsect2>
1136 <title>Capabilities</title>
1137 <para>
c464fd7e
SG
1138 The capabilities can be dropped in the container if this one
1139 is run as root.
55fc19a1
SG
1140 </para>
1141 <variablelist>
c464fd7e
SG
1142 <varlistentry>
1143 <term>
1144 <option>lxc.cap.drop</option>
1145 </term>
1146 <listitem>
1147 <para>
1148 Specify the capability to be dropped in the container. A
1149 single line defining several capabilities with a space
1150 separation is allowed. The format is the lower case of
1151 the capability definition without the "CAP_" prefix,
1152 eg. CAP_SYS_MODULE should be specified as
1153 sys_module. See
1154 <citerefentry>
1155 <refentrytitle><command>capabilities</command></refentrytitle>
1156 <manvolnum>7</manvolnum>
7eff30fd
MH
1157 </citerefentry>.
1158 If used with no value, lxc will clear any drop capabilities
1159 specified up to this point.
c464fd7e
SG
1160 </para>
1161 </listitem>
1162 </varlistentry>
1163 <varlistentry>
1164 <term>
1165 <option>lxc.cap.keep</option>
1166 </term>
1167 <listitem>
1168 <para>
1169 Specify the capability to be kept in the container. All other
1170 capabilities will be dropped. When a special value of "none" is
1171 encountered, lxc will clear any keep capabilities specified up
1172 to this point. A value of "none" alone can be used to drop all
1173 capabilities.
1174 </para>
1175 </listitem>
1176 </varlistentry>
55fc19a1
SG
1177 </variablelist>
1178 </refsect2>
1179
93f9e90d
WB
1180 <refsect2>
1181 <title>Resource limits</title>
1182 <para>
1183 The soft and hard resource limits for the container can be changed.
1184 Unprivileged containers can only lower them. Resources which are not
1185 explicitly specified will be inherited.
1186 </para>
1187 <variablelist>
1188 <varlistentry>
1189 <term>
240d4b74 1190 <option>lxc.prlimit.[limit name]</option>
93f9e90d
WB
1191 </term>
1192 <listitem>
1193 <para>
1194 Specify the resource limit to be set. A limit is specified as two
1195 colon separated values which are either numeric or the word
1196 'unlimited'. A single value can be used as a shortcut to set both
1197 soft and hard limit to the same value. The permitted names the
1198 "RLIMIT_" resource names in lowercase without the "RLIMIT_"
1199 prefix, eg. RLIMIT_NOFILE should be specified as "nofile". See
1200 <citerefentry>
1201 <refentrytitle><command>setrlimit</command></refentrytitle>
1202 <manvolnum>2</manvolnum>
1203 </citerefentry>.
1204 If used with no value, lxc will clear the resource limit
1205 specified up to this point. A resource with no explicitly
1206 configured limitation will be inherited from the process starting
1207 up the container.
1208 </para>
1209 </listitem>
1210 </varlistentry>
1211 </variablelist>
1212 </refsect2>
1213
55fc19a1
SG
1214 <refsect2>
1215 <title>Apparmor profile</title>
1216 <para>
c464fd7e
SG
1217 If lxc was compiled and installed with apparmor support, and the host
1218 system has apparmor enabled, then the apparmor profile under which the
1219 container should be run can be specified in the container
7a126ae1
SH
1220 configuration. The default is <command>lxc-container-default-cgns</command>
1221 if the host kernel is cgroup namespace aware, or
1222 <command>lxc-container-default</command> othewise.
55fc19a1
SG
1223 </para>
1224 <variablelist>
c464fd7e
SG
1225 <varlistentry>
1226 <term>
a1d5fdfd 1227 <option>lxc.apparmor.profile</option>
c464fd7e
SG
1228 </term>
1229 <listitem>
1230 <para>
1231 Specify the apparmor profile under which the container should
1232 be run. To specify that the container should be unconfined,
1233 use
1234 </para>
a1d5fdfd 1235 <programlisting>lxc.apparmor.profile = unconfined</programlisting>
7a126ae1
SH
1236 <para>
1237 If the apparmor profile should remain unchanged (i.e. if you
1238 are nesting containers and are already confined), then use
1239 </para>
a1d5fdfd 1240 <programlisting>lxc.apparmor.profile = unchanged</programlisting>
c464fd7e
SG
1241 </listitem>
1242 </varlistentry>
1243 <varlistentry>
1244 <term>
69e38e00 1245 <option>lxc.apparmor.allow_incomplete</option>
c464fd7e
SG
1246 </term>
1247 <listitem>
1248 <para>
1249 Apparmor profiles are pathname based. Therefore many file
1250 restrictions require mount restrictions to be effective against
1251 a determined attacker. However, these mount restrictions are not
1252 yet implemented in the upstream kernel. Without the mount
1253 restrictions, the apparmor profiles still protect against accidental
1254 damager.
1255 </para>
1256 <para>
1257 If this flag is 0 (default), then the container will not be
1258 started if the kernel lacks the apparmor mount features, so that a
1259 regression after a kernel upgrade will be detected. To start the
1260 container under partial apparmor protection, set this flag to 1.
1261 </para>
1262 </listitem>
1263 </varlistentry>
55fc19a1
SG
1264 </variablelist>
1265 </refsect2>
1266
1267 <refsect2>
1268 <title>SELinux context</title>
1269 <para>
c464fd7e
SG
1270 If lxc was compiled and installed with SELinux support, and the host
1271 system has SELinux enabled, then the SELinux context under which the
1272 container should be run can be specified in the container
1273 configuration. The default is <command>unconfined_t</command>,
1274 which means that lxc will not attempt to change contexts.
1275 See @DATADIR@/lxc/selinux/lxc.te for an example policy and more
1276 information.
55fc19a1
SG
1277 </para>
1278 <variablelist>
c464fd7e
SG
1279 <varlistentry>
1280 <term>
1281 <option>lxc.se_context</option>
1282 </term>
1283 <listitem>
1284 <para>
1285 Specify the SELinux context under which the container should
1286 be run or <command>unconfined_t</command>. For example
1287 </para>
1288 <programlisting>lxc.se_context = system_u:system_r:lxc_t:s0:c22</programlisting>
1289 </listitem>
1290 </varlistentry>
55fc19a1
SG
1291 </variablelist>
1292 </refsect2>
1293
1294 <refsect2>
1295 <title>Seccomp configuration</title>
1296 <para>
1297 A container can be started with a reduced set of available
c464fd7e
SG
1298 system calls by loading a seccomp profile at startup. The
1299 seccomp configuration file must begin with a version number
1300 on the first line, a policy type on the second line, followed
1301 by the configuration.
55fc19a1 1302 </para>
a7c27357
SH
1303 <para>
1304 Versions 1 and 2 are currently supported. In version 1, the
c464fd7e
SG
1305 policy is a simple whitelist. The second line therefore must
1306 read "whitelist", with the rest of the file containing one (numeric)
1307 sycall number per line. Each syscall number is whitelisted,
1308 while every unlisted number is blacklisted for use in the container
a7c27357
SH
1309 </para>
1310
1311 <para>
1312 In version 2, the policy may be blacklist or whitelist,
1313 supports per-rule and per-policy default actions, and supports
1314 per-architecture system call resolution from textual names.
1315 </para>
1316 <para>
1317 An example blacklist policy, in which all system calls are
1318 allowed except for mknod, which will simply do nothing and
1319 return 0 (success), looks like:
1320 </para>
b9986e43
CB
1321
1322 <programlisting>
1323 2
1324 blacklist
1325 mknod errno 0
1326 </programlisting>
1327
55fc19a1 1328 <variablelist>
c464fd7e
SG
1329 <varlistentry>
1330 <term>
0b427da0 1331 <option>lxc.seccomp.profile</option>
c464fd7e
SG
1332 </term>
1333 <listitem>
1334 <para>
1335 Specify a file containing the seccomp configuration to
1336 load before the container starts.
1337 </para>
1338 </listitem>
1339 </varlistentry>
55fc19a1
SG
1340 </variablelist>
1341 </refsect2>
1342
222ddc91
CB
1343 <refsect2>
1344 <title>PR_SET_NO_NEW_PRIVS</title>
1345 <para>
1346 With PR_SET_NO_NEW_PRIVS active execve() promises not to grant
1347 privileges to do anything that could not have been done without
1348 the execve() call (for example, rendering the set-user-ID and
1349 set-group-ID mode bits, and file capabilities non-functional).
1350 Once set, this bit cannot be unset. The setting of this bit is
1351 inherited by children created by fork() and clone(), and preserved
1352 across execve().
1353 Note that PR_SET_NO_NEW_PRIVS is applied after the container has
1354 changed into its intended AppArmor profile or SElinux context.
1355 </para>
1356 <variablelist>
1357 <varlistentry>
1358 <term>
1359 <option>lxc.no_new_privs</option>
1360 </term>
1361 <listitem>
1362 <para>
1363 Specify whether the PR_SET_NO_NEW_PRIVS flag should be set for the
1364 container. Set to 1 to activate.
1365 </para>
1366 </listitem>
1367 </varlistentry>
1368 </variablelist>
1369 </refsect2>
1370
55fc19a1
SG
1371 <refsect2>
1372 <title>UID mappings</title>
1373 <para>
1374 A container can be started in a private user namespace with
c464fd7e
SG
1375 user and group id mappings. For instance, you can map userid
1376 0 in the container to userid 200000 on the host. The root
1377 user in the container will be privileged in the container,
1378 but unprivileged on the host. Normally a system container
1379 will want a range of ids, so you would map, for instance,
1380 user and group ids 0 through 20,000 in the container to the
1381 ids 200,000 through 220,000.
55fc19a1
SG
1382 </para>
1383 <variablelist>
c464fd7e
SG
1384 <varlistentry>
1385 <term>
1386 <option>lxc.id_map</option>
1387 </term>
1388 <listitem>
1389 <para>
1390 Four values must be provided. First a character, either
1391 'u', or 'g', to specify whether user or group ids are
1392 being mapped. Next is the first userid as seen in the
1393 user namespace of the container. Next is the userid as
1394 seen on the host. Finally, a range indicating the number
1395 of consecutive ids to map.
1396 </para>
1397 </listitem>
1398 </varlistentry>
55fc19a1
SG
1399 </variablelist>
1400 </refsect2>
1401
1402 <refsect2>
1403 <title>Container hooks</title>
1404 <para>
1405 Container hooks are programs or scripts which can be executed
c464fd7e 1406 at various times in a container's lifetime.
55fc19a1
SG
1407 </para>
1408 <para>
1409 When a container hook is executed, information is passed both
c464fd7e
SG
1410 as command line arguments and through environment variables.
1411 The arguments are:
1412 <itemizedlist>
1413 <listitem><para> Container name. </para></listitem>
1414 <listitem><para> Section (always 'lxc'). </para></listitem>
1415 <listitem><para> The hook type (i.e. 'clone' or 'pre-mount'). </para></listitem>
0a2b5ab1 1416 <listitem><para> Additional arguments. In the
c464fd7e 1417 case of the clone hook, any extra arguments passed to
0a2b5ab1
WB
1418 lxc-clone will appear as further arguments to the hook.
1419 In the case of the stop hook, paths to filedescriptors
1420 for each of the container's namespaces along with their types
1421 are passed. </para></listitem>
c464fd7e
SG
1422 </itemizedlist>
1423 The following environment variables are set:
1424 <itemizedlist>
1425 <listitem><para> LXC_NAME: is the container's name. </para></listitem>
1426 <listitem><para> LXC_ROOTFS_MOUNT: the path to the mounted root filesystem. </para></listitem>
1427 <listitem><para> LXC_CONFIG_FILE: the path to the container configuration file. </para></listitem>
1428 <listitem><para> LXC_SRC_NAME: in the case of the clone hook, this is the original container's name. </para></listitem>
7a96a068 1429 <listitem><para> LXC_ROOTFS_PATH: this is the lxc.rootfs.path entry for the container. Note this is likely not where the mounted rootfs is to be found, use LXC_ROOTFS_MOUNT for that. </para></listitem>
c464fd7e 1430 </itemizedlist>
55fc19a1
SG
1431 </para>
1432 <para>
1433 Standard output from the hooks is logged at debug level.
1434 Standard error is not logged, but can be captured by the
1435 hook redirecting its standard error to standard output.
1436 </para>
1437 <variablelist>
c464fd7e
SG
1438 <varlistentry>
1439 <term>
1440 <option>lxc.hook.pre-start</option>
1441 </term>
1442 <listitem>
1443 <para>
1444 A hook to be run in the host's namespace before the
1445 container ttys, consoles, or mounts are up.
1446 </para>
1447 </listitem>
1448 </varlistentry>
55fc19a1
SG
1449 </variablelist>
1450 <variablelist>
c464fd7e
SG
1451 <varlistentry>
1452 <term>
1453 <option>lxc.hook.pre-mount</option>
1454 </term>
1455 <listitem>
1456 <para>
1457 A hook to be run in the container's fs namespace but before
1458 the rootfs has been set up. This allows for manipulation
1459 of the rootfs, i.e. to mount an encrypted filesystem. Mounts
1460 done in this hook will not be reflected on the host (apart from
1461 mounts propagation), so they will be automatically cleaned up
1462 when the container shuts down.
1463 </para>
1464 </listitem>
1465 </varlistentry>
55fc19a1
SG
1466 </variablelist>
1467 <variablelist>
c464fd7e
SG
1468 <varlistentry>
1469 <term>
1470 <option>lxc.hook.mount</option>
1471 </term>
1472 <listitem>
1473 <para>
1474 A hook to be run in the container's namespace after
1475 mounting has been done, but before the pivot_root.
1476 </para>
1477 </listitem>
1478 </varlistentry>
55fc19a1
SG
1479 </variablelist>
1480 <variablelist>
c464fd7e
SG
1481 <varlistentry>
1482 <term>
1483 <option>lxc.hook.autodev</option>
1484 </term>
1485 <listitem>
1486 <para>
1487 A hook to be run in the container's namespace after
1488 mounting has been done and after any mount hooks have
1489 run, but before the pivot_root, if
1490 <option>lxc.autodev</option> == 1.
1491 The purpose of this hook is to assist in populating the
1492 /dev directory of the container when using the autodev
1493 option for systemd based containers. The container's /dev
1494 directory is relative to the
1495 ${<option>LXC_ROOTFS_MOUNT</option>} environment
1496 variable available when the hook is run.
1497 </para>
1498 </listitem>
1499 </varlistentry>
55fc19a1
SG
1500 </variablelist>
1501 <variablelist>
c464fd7e
SG
1502 <varlistentry>
1503 <term>
1504 <option>lxc.hook.start</option>
1505 </term>
1506 <listitem>
1507 <para>
1508 A hook to be run in the container's namespace immediately
1509 before executing the container's init. This requires the
1510 program to be available in the container.
1511 </para>
1512 </listitem>
1513 </varlistentry>
55fc19a1 1514 </variablelist>
0a2b5ab1
WB
1515 <variablelist>
1516 <varlistentry>
1517 <term>
1518 <option>lxc.hook.stop</option>
1519 </term>
1520 <listitem>
1521 <para>
1522 A hook to be run in the host's namespace with references
1523 to the container's namespaces after the container has been shut
1524 down. For each namespace an extra argument is passed to the hook
1525 containing the namespace's type and a filename that can be used to
1526 obtain a file descriptor to the corresponding namespace, separated
1527 by a colon. The type is the name as it would appear in the
1528 <filename>/proc/PID/ns</filename> directory.
1529 For instance for the mount namespace the argument usually looks
1530 like <filename>mnt:/proc/PID/fd/12</filename>.
1531 </para>
1532 </listitem>
1533 </varlistentry>
1534 </variablelist>
55fc19a1 1535 <variablelist>
c464fd7e
SG
1536 <varlistentry>
1537 <term>
1538 <option>lxc.hook.post-stop</option>
1539 </term>
1540 <listitem>
1541 <para>
1542 A hook to be run in the host's namespace after the
1543 container has been shut down.
1544 </para>
1545 </listitem>
1546 </varlistentry>
55fc19a1
SG
1547 </variablelist>
1548 <variablelist>
c464fd7e
SG
1549 <varlistentry>
1550 <term>
1551 <option>lxc.hook.clone</option>
1552 </term>
1553 <listitem>
1554 <para>
1555 A hook to be run when the container is cloned to a new one.
1556 See <citerefentry><refentrytitle><command>lxc-clone</command></refentrytitle>
1557 <manvolnum>1</manvolnum></citerefentry> for more information.
1558 </para>
1559 </listitem>
1560 </varlistentry>
55fc19a1 1561 </variablelist>
37cf711b
SY
1562 <variablelist>
1563 <varlistentry>
1564 <term>
1565 <option>lxc.hook.destroy</option>
1566 </term>
1567 <listitem>
1568 <para>
1569 A hook to be run when the container is destroyed.
1570 </para>
1571 </listitem>
1572 </varlistentry>
1573 </variablelist>
55fc19a1
SG
1574 </refsect2>
1575
1576 <refsect2>
1577 <title>Container hooks Environment Variables</title>
1578 <para>
1579 A number of environment variables are made available to the startup
1580 hooks to provide configuration information and assist in the
1581 functioning of the hooks. Not all variables are valid in all
1582 contexts. In particular, all paths are relative to the host system
1583 and, as such, not valid during the <option>lxc.hook.start</option> hook.
1584 </para>
1585 <variablelist>
c464fd7e
SG
1586 <varlistentry>
1587 <term>
1588 <option>LXC_NAME</option>
1589 </term>
1590 <listitem>
1591 <para>
1592 The LXC name of the container. Useful for logging messages
1593 in common log environments. [<option>-n</option>]
1594 </para>
1595 </listitem>
1596 </varlistentry>
55fc19a1
SG
1597 </variablelist>
1598 <variablelist>
c464fd7e
SG
1599 <varlistentry>
1600 <term>
1601 <option>LXC_CONFIG_FILE</option>
1602 </term>
1603 <listitem>
1604 <para>
1605 Host relative path to the container configuration file. This
1606 gives the container to reference the original, top level,
1607 configuration file for the container in order to locate any
1608 additional configuration information not otherwise made
1609 available. [<option>-f</option>]
1610 </para>
1611 </listitem>
1612 </varlistentry>
55fc19a1
SG
1613 </variablelist>
1614 <variablelist>
c464fd7e
SG
1615 <varlistentry>
1616 <term>
1617 <option>LXC_CONSOLE</option>
1618 </term>
1619 <listitem>
1620 <para>
1621 The path to the console output of the container if not NULL.
3aed4934 1622 [<option>-c</option>] [<option>lxc.console.path</option>]
c464fd7e
SG
1623 </para>
1624 </listitem>
1625 </varlistentry>
55fc19a1
SG
1626 </variablelist>
1627 <variablelist>
c464fd7e
SG
1628 <varlistentry>
1629 <term>
1630 <option>LXC_CONSOLE_LOGPATH</option>
1631 </term>
1632 <listitem>
1633 <para>
1634 The path to the console log output of the container if not NULL.
1635 [<option>-L</option>]
1636 </para>
1637 </listitem>
1638 </varlistentry>
55fc19a1
SG
1639 </variablelist>
1640 <variablelist>
c464fd7e
SG
1641 <varlistentry>
1642 <term>
1643 <option>LXC_ROOTFS_MOUNT</option>
1644 </term>
1645 <listitem>
1646 <para>
1647 The mount location to which the container is initially bound.
1648 This will be the host relative path to the container rootfs
1649 for the container instance being started and is where changes
1650 should be made for that instance.
1651 [<option>lxc.rootfs.mount</option>]
1652 </para>
1653 </listitem>
1654 </varlistentry>
55fc19a1
SG
1655 </variablelist>
1656 <variablelist>
c464fd7e
SG
1657 <varlistentry>
1658 <term>
1659 <option>LXC_ROOTFS_PATH</option>
1660 </term>
1661 <listitem>
1662 <para>
1663 The host relative path to the container root which has been
1664 mounted to the rootfs.mount location.
7a96a068 1665 [<option>lxc.rootfs.path</option>]
c464fd7e
SG
1666 </para>
1667 </listitem>
1668 </varlistentry>
55fc19a1 1669 </variablelist>
07945418
KY
1670 <variablelist>
1671 <varlistentry>
1672 <term>
1673 <option>LXC_SRC_NAME</option>
1674 </term>
1675 <listitem>
1676 <para>
1677 Only for the clone hook. Is set to the original container name.
1678 </para>
1679 </listitem>
1680 </varlistentry>
1681 </variablelist>
c154af98
SG
1682 <variablelist>
1683 <varlistentry>
1684 <term>
1685 <option>LXC_TARGET</option>
1686 </term>
1687 <listitem>
1688 <para>
1689 Only for the stop hook. Is set to "stop" for a container
1690 shutdown or "reboot" for a container reboot.
1691 </para>
1692 </listitem>
1693 </varlistentry>
c4cafa08
SH
1694 </variablelist>
1695 <variablelist>
1696 <varlistentry>
1697 <term>
1698 <option>LXC_CGNS_AWARE</option>
1699 </term>
1700 <listitem>
1701 <para>
1702 If unset, then this version of lxc is not aware of cgroup
1703 namespaces. If set, it will be set to 1, and lxc is aware
1704 of cgroup namespaces. Note this does not guarantee that
1705 cgroup namespaces are enabled in the kernel. This is used
1706 by the lxcfs mount hook.
1707 </para>
1708 </listitem>
1709 </varlistentry>
c154af98 1710 </variablelist>
55fc19a1
SG
1711 </refsect2>
1712 <refsect2>
1713 <title>Logging</title>
1714 <para>
1715 Logging can be configured on a per-container basis. By default,
1716 depending upon how the lxc package was compiled, container startup
1717 is logged only at the ERROR level, and logged to a file named after
1718 the container (with '.log' appended) either under the container path,
1719 or under @LOGPATH@.
1720 </para>
1721 <para>
1722 Both the default log level and the log file can be specified in the
1723 container configuration file, overriding the default behavior. Note
1724 that the configuration file entries can in turn be overridden by the
1725 command line options to <command>lxc-start</command>.
1726 </para>
1727 <variablelist>
c464fd7e
SG
1728 <varlistentry>
1729 <term>
46cc906d 1730 <option>lxc.log.level</option>
c464fd7e
SG
1731 </term>
1732 <listitem>
1733 <para>
1734 The level at which to log. The log level is an integer in
1735 the range of 0..8 inclusive, where a lower number means more
1736 verbose debugging. In particular 0 = trace, 1 = debug, 2 =
1737 info, 3 = notice, 4 = warn, 5 = error, 6 = critical, 7 =
1738 alert, and 8 = fatal. If unspecified, the level defaults
1739 to 5 (error), so that only errors and above are logged.
1740 </para>
1741 <para>
1742 Note that when a script (such as either a hook script or a
1743 network interface up or down script) is called, the script's
1744 standard output is logged at level 1, debug.
1745 </para>
1746 </listitem>
1747 </varlistentry>
1748 <varlistentry>
1749 <term>
46cc906d 1750 <option>lxc.log</option>
c464fd7e
SG
1751 </term>
1752 <listitem>
1753 <para>
1754 The file to which logging info should be written.
1755 </para>
1756 </listitem>
1757 </varlistentry>
204dfdf2
BD
1758 <varlistentry>
1759 <term>
46cc906d 1760 <option>lxc.log.syslog</option>
204dfdf2
BD
1761 </term>
1762 <listitem>
1763 <para>
1764 Send logging info to syslog. It respects the log level defined in
46cc906d 1765 <command>lxc.log.level</command>. The argument should be the syslog
204dfdf2 1766 facility to use, valid ones are: daemon, local0, local1, local2,
917420dd 1767 local3, local4, local5, local5, local6, local7.
204dfdf2
BD
1768 </para>
1769 </listitem>
1770 </varlistentry>
55fc19a1
SG
1771 </variablelist>
1772 </refsect2>
1773
1774 <refsect2>
1775 <title>Autostart</title>
1776 <para>
1777 The autostart options support marking which containers should be
1778 auto-started and in what order. These options may be used by LXC tools
1779 directly or by external tooling provided by the distributions.
1780 </para>
1781
1782 <variablelist>
1783 <varlistentry>
1784 <term>
1785 <option>lxc.start.auto</option>
1786 </term>
1787 <listitem>
1788 <para>
1789 Whether the container should be auto-started.
1790 Valid values are 0 (off) and 1 (on).
1791 </para>
1792 </listitem>
1793 </varlistentry>
1794 <varlistentry>
1795 <term>
1796 <option>lxc.start.delay</option>
1797 </term>
1798 <listitem>
1799 <para>
1800 How long to wait (in seconds) after the container is
1801 started before starting the next one.
1802 </para>
1803 </listitem>
1804 </varlistentry>
1805 <varlistentry>
1806 <term>
1807 <option>lxc.start.order</option>
1808 </term>
1809 <listitem>
1810 <para>
1811 An integer used to sort the containers when auto-starting
1812 a series of containers at once.
1813 </para>
1814 </listitem>
1815 </varlistentry>
a8dfe4e0
WB
1816 <varlistentry>
1817 <term>
1818 <option>lxc.monitor.unshare</option>
1819 </term>
1820 <listitem>
1821 <para>
1822 If not zero the mount namespace will be unshared from the host
1823 before initializing the container (before running any pre-start
6039eaa2
WB
1824 hooks). This requires the CAP_SYS_ADMIN capability at startup.
1825 Default is 0.
a8dfe4e0
WB
1826 </para>
1827 </listitem>
1828 </varlistentry>
55fc19a1
SG
1829 <varlistentry>
1830 <term>
1831 <option>lxc.group</option>
1832 </term>
1833 <listitem>
1834 <para>
1835 A multi-value key (can be used multiple times) to put the
1836 container in a container group. Those groups can then be
1837 used (amongst other things) to start a series of related
1838 containers.
1839 </para>
1840 </listitem>
1841 </varlistentry>
1842 </variablelist>
1843 </refsect2>
015f0dd7
MW
1844
1845 <refsect2>
1846 <title>Autostart and System Boot</title>
1847 <para>
1848 Each container can be part of any number of groups or no group at all.
1849 Two groups are special. One is the NULL group, i.e. the container does
1850 not belong to any group. The other group is the "onboot" group.
1851 </para>
1852
1853 <para>
1854 When the system boots with the LXC service enabled, it will first
1855 attempt to boot any containers with lxc.start.auto == 1 that is a member
1856 of the "onboot" group. The startup will be in order of lxc.start.order.
1857 If an lxc.start.delay has been specified, that delay will be honored
1858 before attempting to start the next container to give the current
1859 container time to begin initialization and reduce overloading the host
1860 system. After starting the members of the "onboot" group, the LXC system
1861 will proceed to boot containers with lxc.start.auto == 1 which are not
1862 members of any group (the NULL group) and proceed as with the onboot
1863 group.
1864 </para>
1865
1866 </refsect2>
7c661726
MP
1867
1868 <refsect2>
1869 <title>Container Environment</title>
1870 <para>
c464fd7e
SG
1871 If you want to pass environment variables into the container (that
1872 is, environment variables which will be available to init and all of
1873 its descendents), you can use <command>lxc.environment</command>
1874 parameters to do so. Be careful that you do not pass in anything
1875 sensitive; any process in the container which doesn't have its
1876 environment scrubbed will have these variables available to it, and
1877 environment variables are always available via
1878 <command>/proc/PID/environ</command>.
7c661726
MP
1879 </para>
1880
1881 <para>
1882 This configuration parameter can be specified multiple times; once
1883 for each environment variable you wish to configure.
1884 </para>
1885
1886 <variablelist>
c464fd7e
SG
1887 <varlistentry>
1888 <term>
1889 <option>lxc.environment</option>
1890 </term>
1891 <listitem>
1892 <para>
1893 Specify an environment variable to pass into the container.
1894 Example:
1895 </para>
1896 <programlisting>
1897 lxc.environment = APP_ENV=production
1898 lxc.environment = SYSLOG_SERVER=192.0.2.42
1899 </programlisting>
1900 </listitem>
1901 </varlistentry>
7c661726
MP
1902 </variablelist>
1903 </refsect2>
1904
55fc19a1
SG
1905 </refsect1>
1906
1907 <refsect1>
1908 <title>Examples</title>
1909 <para>
c464fd7e
SG
1910 In addition to the few examples given below, you will find
1911 some other examples of configuration file in @DOCDIR@/examples
55fc19a1
SG
1912 </para>
1913 <refsect2>
1914 <title>Network</title>
1915 <para>This configuration sets up a container to use a veth pair
c464fd7e
SG
1916 device with one side plugged to a bridge br0 (which has been
1917 configured before on the system by the administrator). The
1918 virtual network device visible in the container is renamed to
1919 eth0.</para>
55fc19a1 1920 <programlisting>
b67771bc 1921 lxc.uts.name = myhostname
7fa3f2e9 1922 lxc.net.0.type = veth
1923 lxc.net.0.flags = up
1924 lxc.net.0.link = br0
1925 lxc.net.0.name = eth0
1926 lxc.net.0.hwaddr = 4a:49:43:49:79:bf
9ff60df2 1927 lxc.net.0.ipv4.address = 10.2.3.5/24 10.2.3.255
2e44ae28 1928 lxc.net.0.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3597
55fc19a1
SG
1929 </programlisting>
1930 </refsect2>
1931
1932 <refsect2>
1933 <title>UID/GID mapping</title>
1934 <para>This configuration will map both user and group ids in the
1935 range 0-9999 in the container to the ids 100000-109999 on the host.
1936 </para>
1937 <programlisting>
c464fd7e
SG
1938 lxc.id_map = u 0 100000 10000
1939 lxc.id_map = g 0 100000 10000
55fc19a1
SG
1940 </programlisting>
1941 </refsect2>
1942
1943 <refsect2>
1944 <title>Control group</title>
1945 <para>This configuration will setup several control groups for
1946 the application, cpuset.cpus restricts usage of the defined cpu,
1947 cpus.share prioritize the control group, devices.allow makes
1948 usable the specified devices.</para>
1949 <programlisting>
c464fd7e
SG
1950 lxc.cgroup.cpuset.cpus = 0,1
1951 lxc.cgroup.cpu.shares = 1234
1952 lxc.cgroup.devices.deny = a
1953 lxc.cgroup.devices.allow = c 1:3 rw
1954 lxc.cgroup.devices.allow = b 8:0 rw
55fc19a1
SG
1955 </programlisting>
1956 </refsect2>
1957
1958 <refsect2>
1959 <title>Complex configuration</title>
1960 <para>This example show a complex configuration making a complex
1961 network stack, using the control groups, setting a new hostname,
1962 mounting some locations and a changing root file system.</para>
1963 <programlisting>
b67771bc 1964 lxc.uts.name = complex
7fa3f2e9 1965 lxc.net.0.type = veth
1966 lxc.net.0.flags = up
1967 lxc.net.0.link = br0
1968 lxc.net.0.hwaddr = 4a:49:43:49:79:bf
9ff60df2 1969 lxc.net.0.ipv4.address = 10.2.3.5/24 10.2.3.255
2e44ae28
CB
1970 lxc.net.0.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3597
1971 lxc.net.0.ipv6.address = 2003:db8:1:0:214:5432:feab:3588
7fa3f2e9 1972 lxc.net.1.type = macvlan
1973 lxc.net.1.flags = up
1974 lxc.net.1.link = eth0
1975 lxc.net.1.hwaddr = 4a:49:43:49:79:bd
9ff60df2
CB
1976 lxc.net.1.ipv4.address = 10.2.3.4/24
1977 lxc.net.1.ipv4.address = 192.168.10.125/24
2e44ae28 1978 lxc.net.1.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3596
7fa3f2e9 1979 lxc.net.2.type = phys
1980 lxc.net.2.flags = up
1981 lxc.net.2.link = dummy0
1982 lxc.net.2.hwaddr = 4a:49:43:49:79:ff
9ff60df2 1983 lxc.net.2.ipv4.address = 10.2.3.6/24
2e44ae28 1984 lxc.net.2.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3297
c464fd7e
SG
1985 lxc.cgroup.cpuset.cpus = 0,1
1986 lxc.cgroup.cpu.shares = 1234
1987 lxc.cgroup.devices.deny = a
1988 lxc.cgroup.devices.allow = c 1:3 rw
1989 lxc.cgroup.devices.allow = b 8:0 rw
47148e96 1990 lxc.mount.fstab = /etc/fstab.complex
c464fd7e 1991 lxc.mount.entry = /lib /root/myrootfs/lib none ro,bind 0 0
7a96a068 1992 lxc.rootfs.path = dir:/mnt/rootfs.complex
c464fd7e
SG
1993 lxc.cap.drop = sys_module mknod setuid net_raw
1994 lxc.cap.drop = mac_override
55fc19a1
SG
1995 </programlisting>
1996 </refsect2>
1997
1998 </refsect1>
1999
2000 <refsect1>
2001 <title>See Also</title>
2002 <simpara>
2003 <citerefentry>
c464fd7e
SG
2004 <refentrytitle><command>chroot</command></refentrytitle>
2005 <manvolnum>1</manvolnum>
55fc19a1
SG
2006 </citerefentry>,
2007
2008 <citerefentry>
c464fd7e
SG
2009 <refentrytitle><command>pivot_root</command></refentrytitle>
2010 <manvolnum>8</manvolnum>
55fc19a1
SG
2011 </citerefentry>,
2012
2013 <citerefentry>
c464fd7e
SG
2014 <refentrytitle><filename>fstab</filename></refentrytitle>
2015 <manvolnum>5</manvolnum>
55fc19a1
SG
2016 </citerefentry>,
2017
2018 <citerefentry>
c464fd7e
SG
2019 <refentrytitle><filename>capabilities</filename></refentrytitle>
2020 <manvolnum>7</manvolnum>
55fc19a1
SG
2021 </citerefentry>
2022 </simpara>
2023 </refsect1>
2024
2025 &seealso;
2026
2027 <refsect1>
2028 <title>Author</title>
2029 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
2030 </refsect1>
2031
2032</refentry>
2033
2034<!-- Keep this comment at the end of the file
2035Local variables:
2036mode: sgml
2037sgml-omittag:t
2038sgml-shorttag:t
2039sgml-minimize-attributes:nil
2040sgml-always-quote-attributes:t
2041sgml-indent-step:2
2042sgml-indent-data:t
2043sgml-parent-document:nil
2044sgml-default-dtd-file:nil
2045sgml-exposed-tags:nil
2046sgml-local-catalogs:nil
2047sgml-local-ecat-files:nil
2048End:
2049-->