chiark / gitweb /
tmpfiles, man: Add xattr support to tmpfiles
authorMaciej Wereski <m.wereski@partner.samsung.com>
Thu, 4 Dec 2014 09:32:10 +0000 (10:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Dec 2014 19:21:45 +0000 (20:21 +0100)
commitebf4e8013b2928fdcfa6008ee6559e8c7e1fd60b
treef81ccbdc8e90eb5aed83989a2d97138373d5cb2e
parent1cb636d92d5f40fed65d8a3a8f71a946f6a84e1e
tmpfiles, man: Add xattr support to tmpfiles

This patch makes it possible to set extended attributes on files created
by tmpfiles. This can be especially used to set SMACK security labels on
volatile files and directories.

It is done by adding new line of type "t". Such line should contain
attributes in Argument field, using following format:

name=value

All other fields are ignored.

If value contains spaces, then it must be surrounded by quotation marks.
User can also put quotation mark in value by escaping it with backslash.

Example:
D /var/run/cups - - - -
t /var/run/cups - - - - security.SMACK64=printing
man/tmpfiles.d.xml
src/tmpfiles/tmpfiles.c