summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-08-20 15:15:31 -0400
committerMiloslav Trmač <mitr@redhat.com>2013-09-18 18:29:21 +0200
commit08291789a1f99d4ab29c74c39344304bcca43023 (patch)
tree7623f9407bcd98ea2cbe6701f5a50fd183d9b184
parentf613c3159c4e7bf76b4fc313d0c22e26fdd35f9a (diff)
downloadpolkit-08291789a1f99d4ab29c74c39344304bcca43023.tar.gz
polkitunixprocess: Deprecate racy APIs
It's only safe for processes to be created with their owning uid, (without kernel support, which we don't have). Anything else is subject to clients exec()ing setuid binaries after the fact.
-rw-r--r--src/polkit/polkitunixprocess.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/polkit/polkitunixprocess.h b/src/polkit/polkitunixprocess.h
index 531a57d..f5ed1a7 100644
--- a/src/polkit/polkitunixprocess.h
+++ b/src/polkit/polkitunixprocess.h
@@ -47,7 +47,9 @@ typedef struct _PolkitUnixProcess PolkitUnixProcess;
typedef struct _PolkitUnixProcessClass PolkitUnixProcessClass;
GType polkit_unix_process_get_type (void) G_GNUC_CONST;
+G_GNUC_DEPRECATED_FOR(polkit_unix_process_new_for_owner)
PolkitSubject *polkit_unix_process_new (gint pid);
+G_GNUC_DEPRECATED_FOR(polkit_unix_process_new_for_owner)
PolkitSubject *polkit_unix_process_new_full (gint pid,
guint64 start_time);
PolkitSubject *polkit_unix_process_new_for_owner (gint pid,