summaryrefslogtreecommitdiff
path: root/src/polkit/polkitsubject.c
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-01-18 14:20:51 -0500
committerDavid Zeuthen <davidz@redhat.com>2009-01-18 14:20:51 -0500
commit4a71334c22a39e11a80cfb0290d1253d41938dae (patch)
tree31a0a95ab540be9c4455c952d9e565f88cd6f92d /src/polkit/polkitsubject.c
parent796bfa1deb02ea2718baad6dc82430b7b8a9f4af (diff)
downloadpolkit-4a71334c22a39e11a80cfb0290d1253d41938dae.tar.gz
add checks for whether someone is authorized to check authorizations
Diffstat (limited to 'src/polkit/polkitsubject.c')
-rw-r--r--src/polkit/polkitsubject.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/polkit/polkitsubject.c b/src/polkit/polkitsubject.c
index d7c5434..e34bddc 100644
--- a/src/polkit/polkitsubject.c
+++ b/src/polkit/polkitsubject.c
@@ -140,6 +140,10 @@ polkit_subject_from_string (const gchar *str,
}
}
}
+ else if (g_str_has_prefix (str, "unix-session:"))
+ {
+ subject = polkit_unix_session_new (str + sizeof "unix-session:" - 1);
+ }
else if (g_str_has_prefix (str, "system-bus-name:"))
{
subject = polkit_system_bus_name_new (str + sizeof "system-bus-name:" - 1);