]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "core/namespace: ignore ENOENT for /proc/sys/kernel/domainname and hostname" 17977/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Dec 2020 17:37:11 +0000 (02:37 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Dec 2020 17:38:35 +0000 (02:38 +0900)
This reverts commit 0ebc9f23faf5586f8a9250c3be08773eb3f8d2da.

With the previous commit, these files should always exist.

Closes #17979.

src/core/namespace.c

index 39729ba89920bc7e4dd7eefc2f5ebbcfd8f6130b..9154fde77e427c7a3cfa5b5dabfab91b400227e4 100644 (file)
@@ -1692,12 +1692,10 @@ int setup_namespace(
                         *(m++) = (MountEntry) {
                                 .path_const = "/proc/sys/kernel/hostname",
                                 .mode = READONLY,
-                                .ignore = true,
                         };
                         *(m++) = (MountEntry) {
                                 .path_const = "/proc/sys/kernel/domainname",
                                 .mode = READONLY,
-                                .ignore = true,
                         };
                 }