Include process start time when doing polkit checks
Since PIDs can be reused, polkit prefers to be given a (PID,start time) pair. If given a PID on its own, it will attempt to lookup the start time in /proc/pid/stat, though this is subject to races. It is safer if the client app resolves the PID start time itself, because as long as the app has the client socket open, the client PID won't be reused. Signed-off-by: NDaniel P. Berrange <berrange@redhat.com> (cherry picked from commit 979e9c56) Signed-off-by: NEric Blake <eblake@redhat.com> Conflicts: src/rpc/virnetsocket.h - context src/util/virprocess.c - needed #include "virstring.h" src/util/virstring.c - context src/util/virstring.h - context
Showing
想要评论请 注册 或 登录