[sssd/f20] Start before systemd-user-sessions.service and nss-user-lookup.target

Jakub Hrozek jhrozek at fedoraproject.org
Mon Sep 8 08:56:53 UTC 2014


commit 40e11272ea197412053d3e0d3ef1fd568c77cae4
Author: Jakub Hrozek <jhrozek at redhat.com>
Date:   Fri Sep 5 14:30:55 2014 +0200

    Start before systemd-user-sessions.service and nss-user-lookup.target

 ...okup-and-session-dependencies-to-systemd-.patch |   31 ++++++++++++++++++++
 sssd.spec                                          |    6 +++-
 2 files changed, 36 insertions(+), 1 deletions(-)
---
diff --git a/0002-Add-user-lookup-and-session-dependencies-to-systemd-.patch b/0002-Add-user-lookup-and-session-dependencies-to-systemd-.patch
new file mode 100644
index 0000000..5cae0bb
--- /dev/null
+++ b/0002-Add-user-lookup-and-session-dependencies-to-systemd-.patch
@@ -0,0 +1,31 @@
+From a34ecc66c53cd31f2957042ea1f4ec441b432d56 Mon Sep 17 00:00:00 2001
+From: Ian Lee <ian.rob.lee at gmail.com>
+Date: Wed, 6 Aug 2014 12:25:51 +0100
+Subject: [PATCH] Add user lookup and session dependencies to systemd service
+ file.
+
+https://bugzilla.redhat.com/show_bug.cgi?id=1088619
+
+Before permitting user sessions sssd should be running. This also correctly orders
+shutdown of sssd after the user sessions.
+---
+ src/sysv/systemd/sssd.service.in | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/sysv/systemd/sssd.service.in b/src/sysv/systemd/sssd.service.in
+index 3c14109..06445ea 100644
+--- a/src/sysv/systemd/sssd.service.in
++++ b/src/sysv/systemd/sssd.service.in
+@@ -2,6 +2,9 @@
+ Description=System Security Services Daemon
+ # SSSD will not be started until syslog is
+ After=syslog.target
++# SSSD must be running before we permit user sessions
++Before=systemd-user-sessions.service nss-user-lookup.target
++Wants=nss-user-lookup.target
+ 
+ [Service]
+ EnvironmentFile=- at environment_file@
+-- 
+1.9.3
+
diff --git a/sssd.spec b/sssd.spec
index fe384a9..6b49edf 100644
--- a/sssd.spec
+++ b/sssd.spec
@@ -14,7 +14,7 @@
 
 Name: sssd
 Version: 1.11.6
-Release: 2%{?dist}
+Release: 3%{?dist}
 Group: Applications/System
 Summary: System Security Services Daemon
 License: GPLv3+
@@ -24,6 +24,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 ### Patches ###
 Patch0001:  0001-IPA-handle-searches-by-SID-in-apply_subdomain_homedi.patch
+Patch0002:  0002-Add-user-lookup-and-session-dependencies-to-systemd-.patch
 Patch0602:  0602-FEDORA-Add-CIFS-idmap-plugin.patch
 
 ### Dependencies ###
@@ -750,6 +751,9 @@ fi
 %postun -n libsss_idmap -p /sbin/ldconfig
 
 %changelog
+* Fri Sep 05 2014 Jakub Hrozek <jhrozek at redhat.com> - 1.11.6-3
+- Start before systemd-user-sessions.service and nss-user-lookup.target
+
 * Tue Jun 24 2014 Jakub Hrozek <jhrozek at redhat.com> - 1.11.6-2
 - Do not crash on resolving group SIDs in IPA server mode
 


More information about the scm-commits mailing list