Caps are getting lost when cloning an LXC. Adding the -X parameter copies the extended attributes. This allows things like ping to continue to be used by a non-privilged user in Debian at least.

This commit is contained in:
Robert LeBlanc 2015-08-13 13:36:55 -06:00
parent f20b99d3de
commit d02ee577ca

View File

@ -98,7 +98,7 @@ static int do_rsync(const char *src, const char *dest)
s[l-2] = '/';
s[l-1] = '\0';
execlp("rsync", "rsync", "-aH", s, dest, (char *)NULL);
execlp("rsync", "rsync", "-aHX", s, dest, (char *)NULL);
exit(1);
}