Commit 08291789 authored by Colin Walters's avatar Colin Walters Committed by Miloslav Trmač

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.
parent f613c315
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment