From: Christian Brauner Date: Mon, 8 May 2017 17:39:41 +0000 (+0200) Subject: conf: remove /dev/console from lxc_fill_autodev() X-Git-Tag: lxc-2.1.0~139^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d78c48e294f8526c72c11536a207c453c8cd016;p=thirdparty%2Flxc.git conf: remove /dev/console from lxc_fill_autodev() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 9f8c90bc1..e3a73d684 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -1169,7 +1169,6 @@ static const struct lxc_devs lxc_devs[] = { { "urandom", S_IFCHR | S_IRWXU | S_IRWXG | S_IRWXO, 1, 9 }, { "random", S_IFCHR | S_IRWXU | S_IRWXG | S_IRWXO, 1, 8 }, { "tty", S_IFCHR | S_IRWXU | S_IRWXG | S_IRWXO, 5, 0 }, - { "console", S_IFCHR | S_IRUSR | S_IWUSR, 5, 1 }, }; static int lxc_fill_autodev(const struct lxc_rootfs *rootfs, bool mount_console) @@ -1194,9 +1193,6 @@ static int lxc_fill_autodev(const struct lxc_rootfs *rootfs, bool mount_console) for (i = 0; i < sizeof(lxc_devs) / sizeof(lxc_devs[0]); i++) { const struct lxc_devs *d = &lxc_devs[i]; - if (!strcmp(d->name, "console") && !mount_console) - continue; - ret = snprintf(path, MAXPATHLEN, "%s/dev/%s", rootfs->path ? rootfs->mount : "", d->name); if (ret < 0 || ret >= MAXPATHLEN) return -1;