]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
mount_utils: s/OPEN_TREE_CLONE | OPEN_TREE_CLONE/OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 8 Feb 2021 13:46:08 +0000 (14:46 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 8 Feb 2021 20:59:19 +0000 (21:59 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/mount_utils.c

index 78e50ecacd1aa6cb272e7800a0b9e53f4644b749..d47cbe65579b4785bf154a77253f1a0e6526857a 100644 (file)
@@ -244,7 +244,7 @@ int fd_bind_mount(int dfd_from, const char *path_from,
 {
        __do_close int __fd_from = -EBADF, __fd_to = -EBADF;
        __do_close int fd_tree_from = -EBADF;
-       unsigned int open_tree_flags = AT_EMPTY_PATH | OPEN_TREE_CLONE | OPEN_TREE_CLONE;
+       unsigned int open_tree_flags = AT_EMPTY_PATH | OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC;
        int fd_from, fd_to, ret;
 
        if (!is_empty_string(path_from)) {