[systemd-devel] [RFC] tmpfiles.d with mac_label
Lennart Poettering
mztabzr at 0pointer.de
Thu Oct 23 02:53:18 PDT 2014
On Thu, 23.10.14 11:03, Maciej Wereski (m.wereski at partner.samsung.com) wrote:
> 3.10.2014 at 10:34 WaLyong Cho <walyong.cho at gmail.com> wrote:
>
> >As we know we can make a direcory or link or file or some others by
> >using tmpfiles.d. But we can not apply mac_label on there when after
> >that is genreated.
>
> Last year I've proposed patch, that was adding xattr option to tmpfiles
> (which can be used for SMACK labeling). This is latest patch:
> <http://lists.freedesktop.org/archives/systemd-devel/2013-December/015053.html>
>
> Problem was, that upstream wanted me to use str/strv API, which
> unfortunately didn't work well in my case.
I still think this xattr approach is the way to go.
Note that for the usage by the "sysusers" tool I wrote a completely
new word parser in unquote_many_words() that deals in a much saner way
with quotation marks. We really should rework tmpfiles to make use of
that. That should deal with many of the quoting problems?
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list