network: create runtime sub-directories after drop_privileges()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jan 2018 18:35:25 +0000 (03:35 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jan 2018 18:35:28 +0000 (03:35 +0900)
commit0a02e38379950b38263639b07ab1010fe38c5321
treecdbbef6f551091932f60cbc5f2fd1d361beb89b2
parentd1c2774b6d246046b1ba68e7d794c9e50e521ec4
network: create runtime sub-directories after drop_privileges()

For old kernels not supporting AmbientCapabilities=, networkd is
started as root with limited capabilities. Then, networkd cannot
chown the directories under runtime directory as
CapabilityBoundingSet= does not contains enough capabilities.
This makes these directories are created after dropping privileges.
Thus, networkd does not need to chown them anymore.

Fixes #7863.
src/network/networkd.c