67
67
<title>Configuration Format</title>
69
69
<para>Each configuration file is named in the style of
70
<filename><program>.conf</filename>.
71
Files in <filename>/etc/</filename> overwrite
72
files with the same name in <filename>/usr/lib/</filename>.
73
Files in <filename>/run</filename> overwrite files with
74
the same name in <filename>/etc/</filename> and
75
<filename>/usr/lib/</filename>. Packages should install their
76
configuration files in <filename>/usr/lib/</filename>, files
77
in <filename>/etc/</filename> are reserved for the local
78
administration, which possibly decides to overwrite the
79
configurations installed from packages. All files are sorted
80
by filename in alphabetical order, regardless in which of the
81
directories they reside, to ensure that a specific
82
configuration file takes precedence over another file with
83
an alphabetically later name.</para>
70
<filename><program>.conf</filename>. Files in
71
<filename>/etc/</filename> override files with the
72
same name in <filename>/usr/lib/</filename>. Files in
73
<filename>/run</filename> override files with the same
74
name in <filename>/etc/</filename> and
75
<filename>/usr/lib/</filename>. Packages should
76
install their configuration files in
77
<filename>/usr/lib/</filename>, files in
78
<filename>/etc/</filename> are reserved for the local
79
administrator, who may choose to override the
80
configurations installed from packages. The list of
81
configuration files are sorted by their filename in
82
alphabetical order, regardless in which of the
83
directories they reside, to guarantee that a
84
configuration file takes precedence over another
85
configuration file with an alphabetically later
85
88
<para>The configuration format is one line per path
86
containing action, mode, ownership and age
89
containing action, path, mode, ownership, age and argument
89
<programlisting>Type Path Mode UID GID Age
90
d /run/user 0755 root root 10d</programlisting>
92
<programlisting>Type Path Mode UID GID Age Argument
93
d /run/user 0755 root root 10d -
94
L /tmp/foobar - - - - /dev/null</programlisting>
93
97
<title>Type</title>
96
100
<term><varname>f</varname></term>
97
<listitem><para>Create a file if it doesn't exist yet</para></listitem>
101
<listitem><para>Create a file if it doesn't exist yet (optionally writing a short string into it, if the argument parameter is passed)</para></listitem>
101
105
<term><varname>F</varname></term>
102
<listitem><para>Create or truncate a file</para></listitem>
106
<listitem><para>Create or truncate a file (optionally writing a short string into it, if the argument parameter is passed)</para></listitem>
110
<term><varname>w</varname></term>
111
<listitem><para>Write the argument parameter to a file, if it exists.</para></listitem>
130
<term><varname>L</varname></term>
131
<listitem><para>Create a symlink if it doesn't exist yet</para></listitem>
135
<term><varname>c</varname></term>
136
<listitem><para>Create a character device node if it doesn't exist yet</para></listitem>
140
<term><varname>b</varname></term>
141
<listitem><para>Create a block device node if it doesn't exist yet</para></listitem>
121
145
<term><varname>x</varname></term>
122
146
<listitem><para>Ignore a path
123
147
during cleaning. Use this type
155
179
place of normal path
156
180
names.</para></listitem>
184
<term><varname>z</varname></term>
185
<listitem><para>Restore
186
SELinux security context label
187
and set ownership and access
188
mode of a file or directory if
189
it exists. Lines of this type
190
accept shell-style globs in
191
place of normal path names.
196
<term><varname>Z</varname></term>
197
<listitem><para>Recursively
198
restore SELinux security
199
context label and set
200
ownership and access mode of a
202
subdirectories (if it is a
203
directory). Lines of this type
204
accept shell-style globs in
206
names.</para></listitem>
164
214
<para>The file access mode to use when
165
215
creating this file or directory. If omitted or
166
216
when set to - the default is used: 0755 for
167
directories, 0644 for files. This parameter is
168
ignored for x, r, R lines.</para>
217
directories, 0644 for all other file
218
objects. For z, Z lines if omitted or when set
219
to - the file access mode will not be
220
modified. This parameter is ignored for x, r,
175
228
or directory. This may either be a numeric
176
229
user/group ID or a user or group name. If
177
230
omitted or when set to - the default 0 (root)
178
is used. . These parameters are ignored for x,
231
is used. For z, Z lines when omitted or when set to -
232
the file ownership will not be modified.
233
These parameters are ignored for x, r, R, L lines.</para>
267
<title>Argument</title>
269
<para>For L lines determines the destination
270
path of the symlink. For c, b determines the
271
major/minor of the device node, with major and
272
minor formatted as integers, separated by :,
273
e.g. "1:3". For f, F, w may be used to specify
274
a short string that is written to the file,
275
suffixed by a newline. Ignored for all other