From: Christian Brauner Date: Thu, 29 Jul 2021 12:16:39 +0000 (+0200) Subject: conf: update comment X-Git-Tag: lxc-5.0.0~130^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d27ae9992a3e2295a9197c804f840a5539fe94b7;p=thirdparty%2Flxc.git conf: update comment Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 488ae7d5c..65c7be762 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -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\"");