]> git.proxmox.com Git - lxc.git/blame - debian/patches/do-dot-call-chown_mapped_root-on-etc-pve.patch
do not call chown on /etc/pve
[lxc.git] / debian / patches / do-dot-call-chown_mapped_root-on-etc-pve.patch
CommitLineData
471025b8
DM
1Index: new/src/lxc/lxccontainer.c
2===================================================================
3--- new.orig/src/lxc/lxccontainer.c
4+++ new/src/lxc/lxccontainer.c
5@@ -767,6 +767,11 @@ static int do_create_container_dir(const
6 return -1;
7 }
8 }
9+
10+ /* it is not possible to set ownership on /etc/pve */
11+ if (strncmp(path, "/etc/pve/lxc/", 12) == 0)
12+ return ret;
13+
14 strcpy(p, path);
15 if (!lxc_list_empty(&conf->id_map) && chown_mapped_root(p, conf) != 0) {
16 ERROR("Failed to chown container dir");