]> git.ipfire.org Git - thirdparty/systemd.git/commit
machined: when copying files from/to userns containers chown to root
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Feb 2017 18:24:01 +0000 (19:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Feb 2017 09:22:28 +0000 (10:22 +0100)
commitd01cd40196eb18d859b3c416505ceb1d4ba398ac
tree65baa4f5219dd3414aa3b5038301b678a463e976
parent1c876927e4e63b90f72dd32cbc949a16948fe39e
machined: when copying files from/to userns containers chown to root

This changes the file copy logic of machined to set the UID/GID of all
copied files to 0 if the host and container do not share the same user
namespace.

Fixes: #4078
man/machinectl.xml
src/basic/copy.c
src/basic/copy.h
src/machine/machine-dbus.c
src/test/test-copy.c
src/tmpfiles/tmpfiles.c