Revert "core/namespace: ignore ENOENT for /proc/sys/kernel/domainname and hostname"

This reverts commit 0ebc9f23fa.

With the previous commit, these files should always exist.

Closes #17979.
This commit is contained in:
Yu Watanabe 2020-12-15 02:37:11 +09:00
parent ad74f28a13
commit c4837f4567
1 changed files with 0 additions and 2 deletions

View 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,
};
}