bootspec: if unprivileged validate partition data with udev rather than blkid directly
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Feb 2019 17:45:41 +0000 (18:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2019 11:41:32 +0000 (12:41 +0100)
commitcedb9eec765ddc5ac28b3141cbb87313650c563d
treec07881f030e673fa1e6d49b5f5796d159d3b7157
parentad95aa44d62b2a0f9784df3293e45bf4bf53b788
bootspec: if unprivileged validate partition data with udev rather than blkid directly

udev metadata access works unprivileged, which the blkid stuff doesn't
(as that needs raw device node access). Hence let's use udev if we lack
privs, and raw device access only if root.
src/shared/bootspec.c