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