Re: [systemd-devel] [PATCH v9] tmpfiles, man: Add xattr support to tmpfiles

2014-12-03 Thread Lennart Poettering
On Wed, 03.12.14 15:33, Maciej Wereski (m.were...@partner.samsung.com) wrote: > > +static int get_xattrs_from_arg(Item *i) { > +char *xattr, *name, *value; > +const char *p; > +int r; Please declare name and value in the inner scope, no need to define them broader than n

[systemd-devel] [PATCH v9] tmpfiles, man: Add xattr support to tmpfiles

2014-12-03 Thread Maciej Wereski
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