]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: remove /dev/console from lxc_fill_autodev()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 8 May 2017 17:39:41 +0000 (19:39 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 8 May 2017 22:23:51 +0000 (00:23 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 9f8c90bc1fc6ba764184b017a1c9423c6b9f0d3a..e3a73d684c890aab70c7389022538ca2de816f2f 100644 (file)
@@ -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;