Closes #1800.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
rdata.src = odelta;
rdata.dest = ndelta;
if (am_unpriv())
- ret = userns_exec_1(conf, lxc_rsync_delta_wrapper,
- &rdata, "lxc_rsync_delta_wrapper");
+ ret = userns_exec_full(conf, lxc_rsync_delta_wrapper,
+ &rdata, "lxc_rsync_delta_wrapper");
else
ret = run_command(cmd_output, sizeof(cmd_output),
lxc_rsync_delta_wrapper,
data.orig = orig;
data.new = new;
if (am_unpriv()) {
- ret = userns_exec_1(conf, lxc_storage_rsync_exec_wrapper, &data,
- "lxc_storage_rsync_exec_wrapper");
+ ret = userns_exec_full(conf, lxc_storage_rsync_exec_wrapper,
+ &data, "lxc_storage_rsync_exec_wrapper");
if (ret < 0) {
ERROR("Failed to rsync from \"%s\" into \"%s\"",
orig->dest, new->dest);
rdata.src = (char *)src;
rdata.dest = (char *)dest;
if (am_unpriv())
- ret = userns_exec_1(conf, lxc_rsync_exec_wrapper, &rdata,
- "lxc_rsync_exec_wrapper");
+ ret = userns_exec_full(conf, lxc_rsync_exec_wrapper, &rdata,
+ "lxc_rsync_exec_wrapper");
else
ret = run_command(cmd_output, sizeof(cmd_output),
lxc_rsync_exec_wrapper, (void *)&rdata);
data.orig = orig;
data.new = new;
if (am_unpriv())
- ret = userns_exec_1(c->lxc_conf, lxc_storage_rsync_exec_wrapper,
- &data, "lxc_storage_rsync_exec_wrapper");
+ ret = userns_exec_full(c->lxc_conf,
+ lxc_storage_rsync_exec_wrapper, &data,
+ "lxc_storage_rsync_exec_wrapper");
else
ret = run_command(cmd_output, sizeof(cmd_output),
lxc_storage_rsync_exec_wrapper, (void *)&data);
extern void storage_put(struct lxc_storage *bdev);
extern bool storage_destroy(struct lxc_conf *conf);
-/* callback function to be used with userns_exec_1() */
extern int storage_destroy_wrapper(void *data);
extern bool rootfs_is_blockdev(struct lxc_conf *conf);
extern char *lxc_storage_get_path(char *src, const char *prefix);