]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: always use mode 555 for /sys
authorFranck Bui <fbui@suse.com>
Mon, 10 Sep 2018 12:17:32 +0000 (14:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Sep 2018 22:34:00 +0000 (00:34 +0200)
commit03d0f4b58ee9fc5d80de7d068613de7c2baad4b7
tree3a42f484fe699597e68406acfb910aa1454105e4
parentda0da5eccf5f20874111e0681b111704bf9a1c92
nspawn: always use mode 555 for /sys

When a network namespace is needed, /sys is mounted as tmpfs (see commit
d8fc6a000fe21b0c1ba27f for details).

But in this case mode 755 was used as initial permissions for /sys whereas the
default mode for sysfs is 555.

In practice using 755 doesn't have any impact because /sys is mounted read-only
too but for consistency, let's use the correct mode.

Fixes: #10050
src/nspawn/nspawn-mount.c