mirror of
https://github.com/systemd/systemd.git
synced 2025-02-28 05:57:33 +03:00
tmpfiles: support the FS_PROJINHERIT_FL chattr flag
This commit is contained in:
parent
8a016c746e
commit
75006470ce
@ -368,15 +368,11 @@ L /tmp/foobar - - - - /dev/null</programlisting>
|
|||||||
<listitem><para>Set file/directory attributes. Lines of this type
|
<listitem><para>Set file/directory attributes. Lines of this type
|
||||||
accept shell-style globs in place of normal path names.</para>
|
accept shell-style globs in place of normal path names.</para>
|
||||||
|
|
||||||
<para>The format of the argument field is
|
<para>The format of the argument field is <varname>[+-=][aAcCdDeijPsStTu] </varname>. The prefix
|
||||||
<varname>[+-=][aAcCdDeijsStTu] </varname>. The prefix
|
<varname>+</varname> (the default one) causes the attribute(s) to be added; <varname>-</varname>
|
||||||
<varname>+</varname> (the default one) causes the
|
causes the attribute(s) to be removed; <varname>=</varname> causes the attributes to be set exactly
|
||||||
attribute(s) to be added; <varname>-</varname> causes the
|
as the following letters. The letters <literal>aAcCdDeijPsStTu</literal> select the new attributes
|
||||||
attribute(s) to be removed; <varname>=</varname> causes the
|
for the files, see <citerefentry project='man-pages'><refentrytitle>chattr</refentrytitle>
|
||||||
attributes to be set exactly as the following letters. The
|
|
||||||
letters <literal>aAcCdDeijsStTu</literal> select the new
|
|
||||||
attributes for the files, see
|
|
||||||
<citerefentry project='man-pages'><refentrytitle>chattr</refentrytitle>
|
|
||||||
<manvolnum>1</manvolnum></citerefentry> for further information.
|
<manvolnum>1</manvolnum></citerefentry> for further information.
|
||||||
</para>
|
</para>
|
||||||
<para>Passing only <varname>=</varname> as argument resets
|
<para>Passing only <varname>=</varname> as argument resets
|
||||||
|
@ -1110,7 +1110,8 @@ static int path_set_acls(Item *item, const char *path) {
|
|||||||
FS_UNRM_FL | \
|
FS_UNRM_FL | \
|
||||||
FS_NOTAIL_FL | \
|
FS_NOTAIL_FL | \
|
||||||
FS_TOPDIR_FL | \
|
FS_TOPDIR_FL | \
|
||||||
FS_NOCOW_FL)
|
FS_NOCOW_FL | \
|
||||||
|
FS_PROJINHERIT_FL)
|
||||||
|
|
||||||
static int parse_attribute_from_arg(Item *item) {
|
static int parse_attribute_from_arg(Item *item) {
|
||||||
|
|
||||||
@ -1132,6 +1133,7 @@ static int parse_attribute_from_arg(Item *item) {
|
|||||||
{ 't', FS_NOTAIL_FL }, /* file tail should not be merged */
|
{ 't', FS_NOTAIL_FL }, /* file tail should not be merged */
|
||||||
{ 'T', FS_TOPDIR_FL }, /* Top of directory hierarchies */
|
{ 'T', FS_TOPDIR_FL }, /* Top of directory hierarchies */
|
||||||
{ 'C', FS_NOCOW_FL }, /* Do not cow file */
|
{ 'C', FS_NOCOW_FL }, /* Do not cow file */
|
||||||
|
{ 'P', FS_PROJINHERIT_FL }, /* Inherit the quota project ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user