Systemd/src/login
Colin Walters 1a37b9b904 dbus-common: Add helper method to handle no-reply messages
[Tested in latest gnome-ostree; if accepted, I'll look at a followup
 patch which fixes the other dbus_connection_send(reply, ...) calls
 besides logind]

DBus messages can have a flag NO_REPLY associated that means "I don't
need a reply".  This is for efficiency reasons - for one-off requests
that can't return an error, etc.

However, it's up to users to manually check
dbus_message_get_no_reply() from a message.  libdbus will happily send
out a reply if you don't.

Unfortunately, doing so is not just less efficient - it also triggers
a security error, for complex reasons.  This is something that will
eventually be fixed in dbus, but it's also correct to handle it in
client applications.

This new helper API is slightly nicer in that you don't have to pass
NULL to say you don't want a reply serial for your reply.

This patch also tweaks logind to use the API - there are more areas of
the code that need this treatment too.
2012-11-20 19:12:19 +01:00
..
.gitignore login: properly detect MIMO USB displays 2012-05-31 01:20:37 +02:00
70-power-switch.rules login: Use the GOTO properly in udev rule 2012-05-30 18:34:28 +02:00
70-uaccess.rules uaccess: add ID_SECURITY_TOKEN device class for USB authentication keys 2012-07-24 20:13:46 +02:00
71-seat.rules.in logind: add new loginctl lock-sessions command 2012-07-29 17:08:47 +02:00
73-seat-late.rules.in relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
inhibit.c man: handle-sleep-key is invalid, replace it with handle-suspend-key and handle-hibernate-key in systemd-inhibit help and man. 2012-10-03 19:15:02 -04:00
libsystemd-login.pc.in relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
libsystemd-login.sym login: wrap CanTTY and CanGraphical seat attributes in libsystemd-login 2012-06-21 16:52:54 +02:00
loginctl.c enable localization for common *ctl commands 2012-11-12 14:16:07 -05:00
logind-acl.c relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
logind-acl.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
logind-button.c logind: unify all session lock loop 2012-10-30 03:40:42 +01:00
logind-button.h logind: add 'lock' as possible choice for handling hw keys 2012-10-28 12:29:27 +01:00
logind-dbus.c dbus-common: Add helper method to handle no-reply messages 2012-11-20 19:12:19 +01:00
logind-device.c logind: expose CanGraphical and CanTTY properties on seat objects 2012-06-21 13:48:01 +02:00
logind-device.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
logind-gperf.gperf logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey= 2012-09-21 15:44:14 +02:00
logind-inhibit.c logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey= 2012-09-21 15:44:14 +02:00
logind-inhibit.h logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey= 2012-09-21 15:44:14 +02:00
logind-seat-dbus.c logind: expose CanGraphical and CanTTY properties on seat objects 2012-06-21 13:48:01 +02:00
logind-seat.c log: introduce a macro to format message id 2012-10-13 14:26:30 +02:00
logind-seat.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
logind-session-dbus.c logind: unify all session lock loop 2012-10-30 03:40:42 +01:00
logind-session.c log: introduce a macro to format message id 2012-10-13 14:26:30 +02:00
logind-session.h logind: unify all session lock loop 2012-10-30 03:40:42 +01:00
logind-user-dbus.c udev: replace util_create_path() with mkdir_parents() 2012-04-17 01:09:39 +02:00
logind-user.c logind: check return value, log warning on error 2012-09-21 16:04:48 +02:00
logind-user.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
logind.c logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey= 2012-09-21 15:44:14 +02:00
logind.conf logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey= 2012-09-21 15:44:14 +02:00
logind.h logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey= 2012-09-21 15:44:14 +02:00
Makefile logind: move logind into its own subdirectory 2011-12-31 03:16:08 +01:00
multi-seat-x.c multi-seat-x: drop a lot of unnecessary code 2012-09-21 17:03:40 +02:00
org.freedesktop.login1.conf logind: implement suspend/hibernate calls with inhibition logic 2012-05-08 19:02:25 +02:00
org.freedesktop.login1.policy.in logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey= 2012-09-21 15:44:14 +02:00
org.freedesktop.login1.service relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
pam-module.c logind: only release logind session from the PAM module if the same module instance actually created it 2012-10-16 19:21:21 +02:00
sd-login.c util: define union dirent_storage and make use of it everywhere 2012-09-19 22:21:09 +02:00
sysfs-show.c util: nicer tree drawings 2012-11-12 22:27:48 +01:00
test-inhibit.c logind: use "sleep" as generic term for "suspend", "hibernate", and later on "hybrid suspend" 2012-05-08 13:54:23 +02:00
test-login.c login: wrap CanTTY and CanGraphical seat attributes in libsystemd-login 2012-06-21 16:52:54 +02:00
uaccess.c relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
user-sessions.c man: document systemd-user-sessions.service 2012-06-25 17:34:50 +02:00