summaryrefslogtreecommitdiff
path: root/data/polkit-gobject-1.pc.in
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-08-19 12:16:11 -0400
committerMiloslav Trmač <mitr@redhat.com>2013-09-18 18:29:25 +0200
commit3968411b0c7ba193f9b9276ec911692aec248608 (patch)
treede9a4f0b3ad64a2f518220f8b5966f2939d7a1bd /data/polkit-gobject-1.pc.in
parent08291789a1f99d4ab29c74c39344304bcca43023 (diff)
downloadpolkit-3968411b0c7ba193f9b9276ec911692aec248608.tar.gz
pkcheck: Support --process=pid,start-time,uid syntax too
The uid is a new addition; this allows callers such as libvirt to close a race condition in reading the uid of the process talking to them. They can read it via getsockopt(SO_PEERCRED) or equivalent, rather than having pkcheck look at /proc later after the fact. Programs which invoke pkcheck but need to know beforehand (i.e. at compile time) whether or not it supports passing the uid can use: pkcheck_supports_uid=$($PKG_CONFIG --variable pkcheck_supports_uid polkit-gobject-1) test x$pkcheck_supports_uid = xyes
Diffstat (limited to 'data/polkit-gobject-1.pc.in')
-rw-r--r--data/polkit-gobject-1.pc.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/polkit-gobject-1.pc.in b/data/polkit-gobject-1.pc.in
index c39677d..5c4c620 100644
--- a/data/polkit-gobject-1.pc.in
+++ b/data/polkit-gobject-1.pc.in
@@ -11,3 +11,6 @@ Version: @VERSION@
Libs: -L${libdir} -lpolkit-gobject-1
Cflags: -I${includedir}/polkit-1
Requires: gio-2.0 >= 2.18 glib-2.0 >= 2.18
+# Programs using pkcheck can use this to determine
+# whether or not it can be passed a uid.
+pkcheck_supports_uid=true