summaryrefslogtreecommitdiff
path: root/src/test/test-chown-rec.c
Commit message (Collapse)AuthorAgeFilesLines
* core: drop suid/sgid bit of files/dirs when doing recursive chownLennart Poettering2019-03-261-1/+1
| | | | | | | | | | This adds some extra paranoia: when we recursively chown a directory for use with DynamicUser=1 services we'll now drop suid/sgid from all files we chown(). Of course, such files should not exist in the first place, and noone should get access to those dirs who isn't root anyway, but let's better be safe than sorry, and drop everything we come across.
* util: split out errno related stuffLennart Poettering2019-03-141-0/+1
|
* test: do not assume test-chown-rec is running as rootDavide Cavalca2019-03-041-12/+14
|
* util-lib: split out all temporary file related calls into tmpfiles-util.cLennart Poettering2018-12-021-1/+1
| | | | | | | | This splits out a bunch of functions from fileio.c that have to do with temporary files. Simply to make the header files a bit shorter, and to group things more nicely. No code changes, just some rearranging of source files.
* test-chown-rec: use logging helper here tooZbigniew Jędrzejewski-Szmek2018-10-281-3/+1
|
* test: add test case for recursive chown()ingLennart Poettering2018-10-261-0/+160