Fix scanning of unix-process subjects
authorDavid Zeuthen <davidz@redhat.com>
Thu, 12 Aug 2010 20:49:25 +0000 (16:49 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 12 Aug 2010 20:49:25 +0000 (16:49 -0400)
commit17f0600529dc926ae4a0c85dc56c393cc09e4011
tree95bbfd9db521100d223fcff2568430e21f22e2e9
parent15f358ff2d55dde44287ee4a9270c3ac09a194f7
Fix scanning of unix-process subjects

In particular accept both "unix-process:<pid>,<starttime>" and
"unix-process:<pid>". For the latter, return an error if we cannot
lookup the starttime (for example if the given pid references a
non-existing process).

Signed-off-by: David Zeuthen <davidz@redhat.com>
src/polkit/polkitsubject.c