hal: Branch 'master'
David Zeuthen
david at kemper.freedesktop.org
Sun Apr 8 13:50:22 PDT 2007
hald/access-check.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
New commits:
diff-tree 367ba9f251dbfbc909ee6ee50f4542bef38b6570 (from 36c552bcaf7cae5e880f46e67ddeacf4a3c38131)
Author: David Zeuthen <davidz at redhat.com>
Date: Sun Apr 8 16:50:17 2007 -0400
prefix CK object paths with /org/fd/CK so PolicyKit gets the right path
diff --git a/hald/access-check.c b/hald/access-check.c
index 9ab7f54..4b1564e 100644
--- a/hald/access-check.c
+++ b/hald/access-check.c
@@ -115,15 +115,19 @@ out:
static PolKitSeat *
get_pk_seat_from_ck_seat (CKSeat *seat)
{
+ char *str;
PolKitSeat *pk_seat;
pk_seat = libpolkit_seat_new ();
- libpolkit_seat_set_ck_objref (pk_seat, ck_seat_get_id (seat));
+ str = g_strdup_printf ("/org/freedesktop/ConsoleKit/%s", ck_seat_get_id (seat));
+ libpolkit_seat_set_ck_objref (pk_seat, str);
+ g_free (str);
return pk_seat;
}
static PolKitSession *
get_pk_session_from_ck_session (CKSession *session)
{
+ char *str;
CKSeat *seat;
PolKitSeat *pk_seat;
PolKitSession *pk_session;
@@ -140,7 +144,9 @@ get_pk_session_from_ck_session (CKSessio
libpolkit_session_set_seat (pk_session, pk_seat);
libpolkit_seat_unref (pk_seat);
}
- libpolkit_session_set_ck_objref (pk_session, ck_session_get_id (session));
+ str = g_strdup_printf ("/org/freedesktop/ConsoleKit/%s", ck_session_get_id (session));
+ libpolkit_session_set_ck_objref (pk_session, str);
+ g_free (str);
libpolkit_session_set_uid (pk_session, ck_session_get_user (session));
libpolkit_session_set_ck_is_active (pk_session, ck_session_is_active (session));
libpolkit_session_set_ck_is_local (pk_session, ck_session_is_local (session));
More information about the hal-commit
mailing list