]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: don't follow unsafe transitions in path_set_*()
authorFranck Bui <fbui@suse.com>
Tue, 20 Mar 2018 07:58:48 +0000 (08:58 +0100)
committerFranck Bui <fbui@suse.com>
Mon, 30 Jul 2018 14:04:20 +0000 (16:04 +0200)
commitaddc3e302dad239fb11cf280b0ce4761fe07e015
treeebc38ba8027eb7f149e75b0e146cb29026d746a3
parent1f56e4ce773f195bbdf2dfc639d967309321441c
tmpfiles: don't follow unsafe transitions in path_set_*()

Since all path_set_*() helpers don't follow symlinks, it's possible to use
chase_symlinks(CHASE_NOFOLLOW) flag to both open the files specified by the
passed paths and check their validity (unlike their counterpart fd_set_*()
helpers).
src/tmpfiles/tmpfiles.c