From: Robert LeBlanc Date: Thu, 13 Aug 2015 19:36:55 +0000 (-0600) Subject: Caps are getting lost when cloning an LXC. Adding the -X parameter copies the extende... X-Git-Tag: lxc-1.0.8~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbda475b6dd99f60ae1f40531ad9f591a96b6153;p=thirdparty%2Flxc.git 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. --- diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c index 6674eae51..fe5d9825d 100644 --- a/src/lxc/bdev.c +++ b/src/lxc/bdev.c @@ -97,7 +97,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); }