[systemd-commits] 3 commits - Makefile.am src/login units/systemd-logind.service.in

Lennart Poettering lennart at kemper.freedesktop.org
Fri Jan 27 12:40:36 PST 2012


 Makefile.am                     |    3 ++-
 src/login/logind-dbus.c         |    2 ++
 units/systemd-logind.service.in |    2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 9c07474c6fa296195dcdc734d77792dff95f5c35
Author: Mike Kazantsev <mk.fraggod at gmail.com>
Date:   Fri Jan 27 21:13:42 2012 +0100

    logind: add sys_tty_config capability, to let it use VT_ACTIVATE ioctl on "activate" action

diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in
index c332039..531b8f7 100644
--- a/units/systemd-logind.service.in
+++ b/units/systemd-logind.service.in
@@ -14,7 +14,7 @@ Description=Login Service
 ExecStart=@rootlibexecdir@/systemd-logind
 Type=dbus
 BusName=org.freedesktop.login1
-CapabilityBoundingSet=CAP_AUDIT_CONTROL CAP_CHOWN CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER
+CapabilityBoundingSet=CAP_AUDIT_CONTROL CAP_CHOWN CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_TTY_CONFIG
 
 # Increase the default a bit in order to allow many simultaneous
 # logins since we keep one fd open per session.

commit 02b16a19a4f786f63ad6f4e8f6e185b41c9ca386
Author: Lennart Poettering <lennart at poettering.net>
Date:   Fri Jan 27 20:48:28 2012 +0100

    logind: make sure we create /var/lib/systemd before using it

diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 42dd54d..da2eb14 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -1188,6 +1188,8 @@ static DBusHandlerResult manager_message_handler(
                 if (r < 0)
                         return bus_send_error_reply(connection, message, &error, r);
 
+                mkdir_p("/var/lib/systemd", 0755);
+
                 r = safe_mkdir("/var/lib/systemd/linger", 0755, 0, 0);
                 if (r < 0)
                         return bus_send_error_reply(connection, message, &error, r);

commit d8c9d1f9e494b149cb8f1c7e0d79b37bedf21bd5
Author: Mike Kazantsev <mk.fraggod at gmail.com>
Date:   Fri Jan 27 19:56:44 2012 +0100

    build-sys: add creation of /var/lib/systemd path, used by logind

diff --git a/Makefile.am b/Makefile.am
index 15190b4..5473623 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1979,7 +1979,8 @@ polkitpolicy_in_files += \
 
 logind-install-data-hook:
 	$(MKDIR_P) -m 0755 \
-		$(DESTDIR)$(systemunitdir)/multi-user.target.wants
+		$(DESTDIR)$(systemunitdir)/multi-user.target.wants \
+                $(DESTDIR)$(localstatedir)/lib/systemd
 	( cd $(DESTDIR)$(systemunitdir) && \
 		rm -f dbus-org.freedesktop.login1.service && \
 		$(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)



More information about the systemd-commits mailing list