]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-bus/bus-control.c
tree-wide: use {pid,uid,gid}_is_valid() where appropriate
authorLennart Poettering <lennart@poettering.net>
Sat, 30 Dec 2017 14:15:03 +0000 (15:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2018 12:27:54 +0000 (13:27 +0100)
commitbbcc701ee7360c39d34aed33381803d44dc5da9f
treea78eeeba6a3053f8e9e14503ac2e1ac53db796b9
parent10e859a2f338858d7b02f5ffda77f574f362ffd9
tree-wide: use {pid,uid,gid}_is_valid() where appropriate

Also, drop UID/GID validity checks from getpeercred() as the kernel will
never pass us invalid UID/GID on userns, but the overflow UID/GID
instead. Add a comment about this.
src/basic/socket-util.c
src/libsystemd/sd-bus/bus-control.c