sd-device-monitor: relax sender uid check when running in user namespace
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Sep 2022 19:43:18 +0000 (04:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 8 Sep 2022 02:08:43 +0000 (11:08 +0900)
commitc0aa23cf1ed4b3cbbcaf8b19d47e6e29dc28c9a0
tree065926d60717e9e481eceda7c89155130a637c17
parenta30d3c0134b6f0f29296744a2493f78ec026d09f
sd-device-monitor: relax sender uid check when running in user namespace

If sd-device-monitor is running in a user namespace, the sender uid is
not zero. Let's relax the verification in that case.
src/libsystemd/sd-device/device-monitor.c