chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
commitb9c87201dcff2c33985880bdd0f0666eaed6c5a3
tree3353d9a4a66810bca8e4eaa9fc67ef5b8e3074d3
parent44e66a80e25b25d596596f97a595221969f533d8
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
src/basic/copy.c
src/basic/copy.h