[systemd-devel] [PATCH] Add usernames as arguments to tmpfiles ignore directives.

Thomas Blume Thomas.Blume at suse.com
Thu Jan 8 04:37:57 PST 2015


Currently, systemd can only ignore files specified by their path, during
tmpdir cleanup. This patch adds the feature to give usernames as argument.

During cleanup the file ownership is checked and files that match the specified
usernames are ignored.

For example, you could give:

X /tmp/* - - - - testuser3,testuser2

in order to prevent all files belonging to testuser2 and testuser3 from being
deleted in /tmp.

This feature has been available in SystemV systems.
Would be good to also have it in systemd systems.


Regards
Thomas Blume

-- 
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg)
Maxfeldstr. 5 / D-90409 Nürnberg / Phone: +49-911-740 53 - 0 / VOIP: 3919
GPG 2048R/2CD4D3E8 9A50 048F 1C73 59AA 4D2E  424E B3C6 3FD9 2CD4 D3E8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-usernames-as-arguments-to-tmpfiles-ignore-direct.patch
Type: text/x-patch
Size: 4564 bytes
Desc: 0001-Add-usernames-as-arguments-to-tmpfiles-ignore-direct.patch
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150108/be13922b/attachment-0001.bin>


More information about the systemd-devel mailing list