• D
    Include process start time when doing polkit checks · 65f7c07c
    Daniel P. Berrange 提交于
    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)
    
    Conflicts:
    	src/util/virprocess.c
    	src/util/virstring.c
    	src/util/virstring.h
    65f7c07c
lock_daemon.c 40.3 KB