]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/namespace: check if we have enough privilege to mount sysfs or procfs
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Oct 2023 05:58:38 +0000 (14:58 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 26 Oct 2023 10:09:46 +0000 (19:09 +0900)
commit4793605db17c417d35dff1b460e6910dba3cc254
tree2585d3c419b38102a3692932287175a94cc46073
parentb18f4eedebf5c397f7ea2f6620626114ad8bbaba
core/namespace: check if we have enough privilege to mount sysfs or procfs

If we do not have enough privilege to mount a new instance of sysfs or
procfs, units e.g. with PrivateNetwork=yes may fail.

Let's first try to mount sysfs or procfs anyway to check if we have enough
privilege.

Fixes #29526.
src/core/namespace.c