]> git.proxmox.com Git - pve-container.git/commit
mountpoints: create parent dirs with correct owner
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 24 Jul 2019 11:37:13 +0000 (13:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Aug 2019 11:13:31 +0000 (13:13 +0200)
commit4c98d66ce75d83185f1ec99e170e6f950f0c68f5
treeb2ffc738d3a896602f2cb0eabf3680fe6da95031
parentc3eb7b011f55d56319200266b545951579233bfc
mountpoints: create parent dirs with correct owner

otherwise unprivileged containers might end up with directories that
they cannot modify since they are owned by the user root in the host
namespace, instead of root inside the container.

note: the problematic behaviour is only exhibited when an intermediate
directory needs to be created, e.g. a mountpoint /test/mp gets mounted,
and /test does not yet exist.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/LXC.pm
src/PVE/VZDump/LXC.pm
src/lxc-pve-prestart-hook