]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: update comment
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 29 Jul 2021 12:16:39 +0000 (14:16 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 29 Jul 2021 13:41:00 +0000 (15:41 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 488ae7d5cdf24cd9366185dfb87a3fd9de5f3c30..65c7be7629fc60b2d3727b7d35c759b2e8cbb8da 100644 (file)
@@ -1816,7 +1816,7 @@ static int lxc_finalize_devpts_child(struct lxc_handler *handler)
                return log_error_errno(-1, errno, "Failed to create \"/dev/ptmx\" file as bind mount target");
        DEBUG("Created \"/dev/ptmx\" file as bind mount target");
 
-       /* Fallback option: create symlink /dev/ptmx -> /dev/pts/ptmx  */
+       /* Main option: use a bind-mount to please AppArmor  */
        ret = mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL);
        if (!ret)
                return log_debug(0, "Bind mounted \"/dev/pts/ptmx\" to \"/dev/ptmx\"");