Compare commits
9 Commits
factory
...
sssd-2-10-
Author | SHA256 | Date | |
---|---|---|---|
|
f7494d7335 | ||
d236d87ed8 | |||
03cfa0ca67 | |||
3a2bee3ebf | |||
73fb2a82f6 | |||
93d212c167 | |||
|
bf358d8fff | ||
747483e617 | |||
8b1778e6ae |
@ -0,0 +1,25 @@
|
|||||||
|
From f3ee55182600b2731b21bbdabbc5c891202f6dbb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: Fri, 15 Feb 2019 17:20:47 +0100
|
||||||
|
Subject: [PATCH 1/4] Remove versions checks that need updating every
|
||||||
|
iteration.
|
||||||
|
|
||||||
|
---
|
||||||
|
src/external/pac_responder.m4 | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/external/pac_responder.m4 b/src/external/pac_responder.m4
|
||||||
|
index 90727185b..af9fded6f 100644
|
||||||
|
--- a/src/external/pac_responder.m4
|
||||||
|
+++ b/src/external/pac_responder.m4
|
||||||
|
@@ -11,6 +11,7 @@ then
|
||||||
|
AC_MSG_CHECKING(for supported MIT krb5 version)
|
||||||
|
KRB5_VERSION="`$KRB5_CONFIG --version`"
|
||||||
|
case $KRB5_VERSION in
|
||||||
|
+ *|\
|
||||||
|
Kerberos\ 5\ release\ 1.9* | \
|
||||||
|
Kerberos\ 5\ release\ 1.10* | \
|
||||||
|
Kerberos\ 5\ release\ 1.11* | \
|
||||||
|
--
|
||||||
|
2.46.1
|
||||||
|
|
@ -1,85 +0,0 @@
|
|||||||
From b927ca4196f828bda6d5db6c6a6d852389bfede0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Samuel Cabrero <scabrero@suse.de>
|
|
||||||
Date: Thu, 2 Jan 2025 14:09:17 +0100
|
|
||||||
Subject: [PATCH] TOOL: Fix build, parameter name omitted
|
|
||||||
|
|
||||||
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
||||||
---
|
|
||||||
src/tools/sssctl/sssctl_data.c | 8 ++++----
|
|
||||||
src/tools/sssctl/sssctl_logs.c | 6 +++---
|
|
||||||
2 files changed, 7 insertions(+), 7 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/tools/sssctl/sssctl_data.c b/src/tools/sssctl/sssctl_data.c
|
|
||||||
index b28556e73..a473e7e14 100644
|
|
||||||
--- a/src/tools/sssctl/sssctl_data.c
|
|
||||||
+++ b/src/tools/sssctl/sssctl_data.c
|
|
||||||
@@ -125,7 +125,7 @@ static errno_t sssctl_backup(bool force)
|
|
||||||
}
|
|
||||||
|
|
||||||
errno_t sssctl_client_data_backup(struct sss_cmdline *cmdline,
|
|
||||||
- struct sss_tool_ctx *)
|
|
||||||
+ struct sss_tool_ctx *tool_ctx)
|
|
||||||
{
|
|
||||||
struct sssctl_data_opts opts = {0};
|
|
||||||
errno_t ret;
|
|
||||||
@@ -184,7 +184,7 @@ static errno_t sssctl_restore(bool force_start, bool force_restart)
|
|
||||||
}
|
|
||||||
|
|
||||||
errno_t sssctl_client_data_restore(struct sss_cmdline *cmdline,
|
|
||||||
- struct sss_tool_ctx *)
|
|
||||||
+ struct sss_tool_ctx *tool_ctx)
|
|
||||||
{
|
|
||||||
struct sssctl_data_opts opts = {0};
|
|
||||||
errno_t ret;
|
|
||||||
@@ -206,7 +206,7 @@ errno_t sssctl_client_data_restore(struct sss_cmdline *cmdline,
|
|
||||||
}
|
|
||||||
|
|
||||||
errno_t sssctl_cache_remove(struct sss_cmdline *cmdline,
|
|
||||||
- struct sss_tool_ctx *)
|
|
||||||
+ struct sss_tool_ctx *tool_ctx)
|
|
||||||
{
|
|
||||||
struct sssctl_data_opts opts = {0};
|
|
||||||
errno_t ret;
|
|
||||||
@@ -413,7 +413,7 @@ done:
|
|
||||||
}
|
|
||||||
|
|
||||||
errno_t sssctl_cache_index(struct sss_cmdline *cmdline,
|
|
||||||
- struct sss_tool_ctx *)
|
|
||||||
+ struct sss_tool_ctx *tool_ctx)
|
|
||||||
{
|
|
||||||
const char *attr = NULL;
|
|
||||||
const char *action_str = NULL;
|
|
||||||
diff --git a/src/tools/sssctl/sssctl_logs.c b/src/tools/sssctl/sssctl_logs.c
|
|
||||||
index f8ef9f2c6..8ba18b394 100644
|
|
||||||
--- a/src/tools/sssctl/sssctl_logs.c
|
|
||||||
+++ b/src/tools/sssctl/sssctl_logs.c
|
|
||||||
@@ -418,7 +418,7 @@ int parse_debug_level(const char *strlevel)
|
|
||||||
}
|
|
||||||
|
|
||||||
errno_t sssctl_logs_remove(struct sss_cmdline *cmdline,
|
|
||||||
- struct sss_tool_ctx *)
|
|
||||||
+ struct sss_tool_ctx *tool_ctx)
|
|
||||||
{
|
|
||||||
struct sssctl_logs_opts opts = {0};
|
|
||||||
errno_t ret;
|
|
||||||
@@ -470,7 +470,7 @@ errno_t sssctl_logs_remove(struct sss_cmdline *cmdline,
|
|
||||||
}
|
|
||||||
|
|
||||||
errno_t sssctl_logs_fetch(struct sss_cmdline *cmdline,
|
|
||||||
- struct sss_tool_ctx *)
|
|
||||||
+ struct sss_tool_ctx *tool_ctx)
|
|
||||||
{
|
|
||||||
const char *file = NULL;
|
|
||||||
errno_t ret;
|
|
||||||
@@ -587,7 +587,7 @@ fini:
|
|
||||||
}
|
|
||||||
|
|
||||||
errno_t sssctl_analyze(struct sss_cmdline *cmdline,
|
|
||||||
- struct sss_tool_ctx *)
|
|
||||||
+ struct sss_tool_ctx *tool_ctx)
|
|
||||||
{
|
|
||||||
#ifndef BUILD_CHAIN_ID
|
|
||||||
PRINT("ERROR: Tevent chain ID support missing, log analyzer is unsupported.\n");
|
|
||||||
--
|
|
||||||
2.47.1
|
|
||||||
|
|
36
0002-Harden-sssd-ifp.service.patch
Normal file
36
0002-Harden-sssd-ifp.service.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From 7889dbb390091f0be5fea8f915fab68020556de7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Samuel Cabrero <scabrero@suse.de>
|
||||||
|
Date: Wed, 16 Oct 2024 14:03:06 +0200
|
||||||
|
Subject: [PATCH 2/4] Harden sssd-ifp.service
|
||||||
|
|
||||||
|
---
|
||||||
|
src/sysv/systemd/sssd-ifp.service.in | 13 +++++++++++++
|
||||||
|
1 file changed, 13 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/sysv/systemd/sssd-ifp.service.in b/src/sysv/systemd/sssd-ifp.service.in
|
||||||
|
index 1ab163392..c8d6dc9ae 100644
|
||||||
|
--- a/src/sysv/systemd/sssd-ifp.service.in
|
||||||
|
+++ b/src/sysv/systemd/sssd-ifp.service.in
|
||||||
|
@@ -5,6 +5,19 @@ After=sssd.service
|
||||||
|
BindsTo=sssd.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
+# added automatically, for details please see
|
||||||
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||||||
|
+ProtectSystem=full
|
||||||
|
+ProtectHome=true
|
||||||
|
+PrivateDevices=true
|
||||||
|
+ProtectHostname=true
|
||||||
|
+ProtectClock=true
|
||||||
|
+ProtectKernelTunables=true
|
||||||
|
+ProtectKernelModules=true
|
||||||
|
+ProtectKernelLogs=true
|
||||||
|
+ProtectControlGroups=true
|
||||||
|
+RestrictRealtime=true
|
||||||
|
+# end of automatic additions
|
||||||
|
Environment=DEBUG_LOGGER=--logger=files
|
||||||
|
EnvironmentFile=-@environment_file@
|
||||||
|
Type=dbus
|
||||||
|
--
|
||||||
|
2.46.1
|
||||||
|
|
36
0003-Harden-sssd-kcm.service.patch
Normal file
36
0003-Harden-sssd-kcm.service.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From 1fea2a4039f9e838554abe17bbf1513a8f99f348 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Samuel Cabrero <scabrero@suse.de>
|
||||||
|
Date: Wed, 16 Oct 2024 14:05:02 +0200
|
||||||
|
Subject: [PATCH 3/4] Harden sssd-kcm.service
|
||||||
|
|
||||||
|
---
|
||||||
|
src/sysv/systemd/sssd-kcm.service.in | 13 +++++++++++++
|
||||||
|
1 file changed, 13 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/sysv/systemd/sssd-kcm.service.in b/src/sysv/systemd/sssd-kcm.service.in
|
||||||
|
index 0c839ec5c..b403cd709 100644
|
||||||
|
--- a/src/sysv/systemd/sssd-kcm.service.in
|
||||||
|
+++ b/src/sysv/systemd/sssd-kcm.service.in
|
||||||
|
@@ -8,6 +8,19 @@ After=sssd-kcm.socket
|
||||||
|
Also=sssd-kcm.socket
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
+# added automatically, for details please see
|
||||||
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||||||
|
+ProtectSystem=full
|
||||||
|
+ProtectHome=true
|
||||||
|
+PrivateDevices=true
|
||||||
|
+ProtectHostname=true
|
||||||
|
+ProtectClock=true
|
||||||
|
+ProtectKernelTunables=true
|
||||||
|
+ProtectKernelModules=true
|
||||||
|
+ProtectKernelLogs=true
|
||||||
|
+ProtectControlGroups=true
|
||||||
|
+RestrictRealtime=true
|
||||||
|
+# end of automatic additions
|
||||||
|
Environment=DEBUG_LOGGER=--logger=files
|
||||||
|
ExecStartPre=+-/bin/chown -f @SSSD_USER@:@SSSD_USER@ @sssdconfdir@
|
||||||
|
ExecStartPre=+-/bin/chown -f @SSSD_USER@:@SSSD_USER@ @sssdconfdir@/sssd.conf
|
||||||
|
--
|
||||||
|
2.46.1
|
||||||
|
|
@ -1,25 +1,25 @@
|
|||||||
|
From 20c2e36a1a98a5fc648d16389fc9861eb61768d3 Mon Sep 17 00:00:00 2001
|
||||||
From: Jan Engelhardt <jengelh@inai.de>
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
Date: 2022-12-22 00:09:20.375896408 +0100
|
Date: Thu, 22 Dec 2022 00:09:20 +0100
|
||||||
References: https://bugzilla.suse.com/show_bug.cgi?id=1206592
|
Subject: [PATCH 4/4] Add symvers
|
||||||
|
|
||||||
The theory for this sssd crash is that during rpm upgrading it,
|
The theory for this sssd crash is that during rpm upgrading it,
|
||||||
sssd-2.8.2 gets installed, %post runs to restart it, but oh no,
|
sssd-2.8.2 gets installed, %post runs to restart it, but oh no,
|
||||||
sssd-ldap-2.7.4 is still in the system. sssd_be(-2.8.2) then falls
|
sssd-ldap-2.7.4 is still in the system. sssd_be(-2.8.2) then falls over
|
||||||
over its feet when it loads 2.7.4 .so files. Addin symvers like below
|
its feet when it loads 2.7.4 .so files. Addin symvers like below should
|
||||||
should prevent this and pin the modules to another: sssd_be's attempt
|
prevent this and pin the modules to another: sssd_be's attempt to dlopen
|
||||||
to dlopen libsss_ldap.so(-2.7.4) will fail because
|
libsss_ldap.so(-2.7.4) will fail because libsss_ldap.so(-2.7.4) cannot
|
||||||
libsss_ldap.so(-2.7.4) cannot find a libsss_util.so(-2.7.4), since
|
find a libsss_util.so(-2.7.4), since the system only has
|
||||||
the system only has libsss_util.so(-2.8.2) at this point.
|
libsss_util.so(-2.8.2) at this point.
|
||||||
|
|
||||||
---
|
---
|
||||||
Makefile.am | 44 ++++++++++++++++++++++++++++++--------------
|
Makefile.am | 47 ++++++++++++++++++++++++++++++++---------------
|
||||||
1 file changed, 30 insertions(+), 14 deletions(-)
|
1 file changed, 32 insertions(+), 15 deletions(-)
|
||||||
|
|
||||||
Index: sssd-2.10.1/Makefile.am
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
===================================================================
|
index 839b25eae..e79da4a40 100644
|
||||||
--- sssd-2.10.1.orig/Makefile.am
|
--- a/Makefile.am
|
||||||
+++ sssd-2.10.1/Makefile.am
|
+++ b/Makefile.am
|
||||||
@@ -971,7 +971,11 @@ libsss_debug_la_SOURCES = \
|
@@ -964,7 +964,11 @@ libsss_debug_la_SOURCES = \
|
||||||
libsss_debug_la_LIBADD = \
|
libsss_debug_la_LIBADD = \
|
||||||
$(SYSLOG_LIBS)
|
$(SYSLOG_LIBS)
|
||||||
libsss_debug_la_LDFLAGS = \
|
libsss_debug_la_LDFLAGS = \
|
||||||
@ -32,7 +32,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
pkglib_LTLIBRARIES += libsss_child.la
|
pkglib_LTLIBRARIES += libsss_child.la
|
||||||
libsss_child_la_SOURCES = src/util/child_common.c
|
libsss_child_la_SOURCES = src/util/child_common.c
|
||||||
@@ -981,7 +985,8 @@ libsss_child_la_LIBADD = \
|
@@ -974,7 +978,8 @@ libsss_child_la_LIBADD = \
|
||||||
$(DHASH_LIBS) \
|
$(DHASH_LIBS) \
|
||||||
libsss_debug.la \
|
libsss_debug.la \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
@ -42,7 +42,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
pkglib_LTLIBRARIES += libsss_crypt.la
|
pkglib_LTLIBRARIES += libsss_crypt.la
|
||||||
|
|
||||||
@@ -1021,7 +1026,8 @@ libsss_crypt_la_LIBADD = \
|
@@ -1014,7 +1019,8 @@ libsss_crypt_la_LIBADD = \
|
||||||
libsss_debug.la \
|
libsss_debug.la \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
libsss_crypt_la_LDFLAGS = \
|
libsss_crypt_la_LDFLAGS = \
|
||||||
@ -52,7 +52,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
pkglib_LTLIBRARIES += libsss_cert.la
|
pkglib_LTLIBRARIES += libsss_cert.la
|
||||||
|
|
||||||
@@ -1046,8 +1052,9 @@ libsss_cert_la_LIBADD = \
|
@@ -1039,8 +1045,9 @@ libsss_cert_la_LIBADD = \
|
||||||
libsss_debug.la \
|
libsss_debug.la \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
libsss_cert_la_LDFLAGS = \
|
libsss_cert_la_LDFLAGS = \
|
||||||
@ -63,7 +63,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
generate-sbus-code:
|
generate-sbus-code:
|
||||||
$(builddir)/sbus_generate.sh $(abs_srcdir)
|
$(builddir)/sbus_generate.sh $(abs_srcdir)
|
||||||
@@ -1148,8 +1155,9 @@ libsss_sbus_la_CFLAGS = \
|
@@ -1141,8 +1148,9 @@ libsss_sbus_la_CFLAGS = \
|
||||||
$(DBUS_CFLAGS) \
|
$(DBUS_CFLAGS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
libsss_sbus_la_LDFLAGS = \
|
libsss_sbus_la_LDFLAGS = \
|
||||||
@ -74,7 +74,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
pkglib_LTLIBRARIES += libsss_sbus_sync.la
|
pkglib_LTLIBRARIES += libsss_sbus_sync.la
|
||||||
libsss_sbus_sync_la_SOURCES = \
|
libsss_sbus_sync_la_SOURCES = \
|
||||||
@@ -1184,8 +1192,9 @@ libsss_sbus_sync_la_CFLAGS = \
|
@@ -1177,8 +1185,9 @@ libsss_sbus_sync_la_CFLAGS = \
|
||||||
$(UNICODE_LIBS) \
|
$(UNICODE_LIBS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
libsss_sbus_sync_la_LDFLAGS = \
|
libsss_sbus_sync_la_LDFLAGS = \
|
||||||
@ -85,7 +85,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
pkglib_LTLIBRARIES += libsss_iface.la
|
pkglib_LTLIBRARIES += libsss_iface.la
|
||||||
libsss_iface_la_SOURCES = \
|
libsss_iface_la_SOURCES = \
|
||||||
@@ -1214,8 +1223,9 @@ libsss_iface_la_CFLAGS = \
|
@@ -1207,8 +1216,9 @@ libsss_iface_la_CFLAGS = \
|
||||||
$(DBUS_CFLAGS) \
|
$(DBUS_CFLAGS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
libsss_iface_la_LDFLAGS = \
|
libsss_iface_la_LDFLAGS = \
|
||||||
@ -96,7 +96,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
pkglib_LTLIBRARIES += libsss_iface_sync.la
|
pkglib_LTLIBRARIES += libsss_iface_sync.la
|
||||||
libsss_iface_sync_la_SOURCES = \
|
libsss_iface_sync_la_SOURCES = \
|
||||||
@@ -1242,8 +1252,9 @@ libsss_iface_sync_la_CFLAGS = \
|
@@ -1235,8 +1245,9 @@ libsss_iface_sync_la_CFLAGS = \
|
||||||
$(DBUS_CFLAGS) \
|
$(DBUS_CFLAGS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
libsss_iface_sync_la_LDFLAGS = \
|
libsss_iface_sync_la_LDFLAGS = \
|
||||||
@ -107,7 +107,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
pkglib_LTLIBRARIES += libsss_util.la
|
pkglib_LTLIBRARIES += libsss_util.la
|
||||||
libsss_util_la_SOURCES = \
|
libsss_util_la_SOURCES = \
|
||||||
@@ -1338,7 +1349,8 @@ endif
|
@@ -1333,7 +1344,8 @@ endif
|
||||||
if BUILD_PASSKEY
|
if BUILD_PASSKEY
|
||||||
libsss_util_la_SOURCES += src/db/sysdb_passkey_user_verification.c
|
libsss_util_la_SOURCES += src/db/sysdb_passkey_user_verification.c
|
||||||
endif # BUILD_PASSKEY
|
endif # BUILD_PASSKEY
|
||||||
@ -115,9 +115,19 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
+libsss_util_la_LDFLAGS = -avoid-version ${symv}
|
+libsss_util_la_LDFLAGS = -avoid-version ${symv}
|
||||||
+EXTRA_libsss_util_la_DEPENDENCIES = x.sym
|
+EXTRA_libsss_util_la_DEPENDENCIES = x.sym
|
||||||
|
|
||||||
|
pkglib_LTLIBRARIES += libsss_semanage.la
|
||||||
|
libsss_semanage_la_CFLAGS = \
|
||||||
|
@@ -1352,7 +1364,8 @@ libsss_semanage_la_LIBADD += $(SEMANAGE_LIBS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
libsss_semanage_la_LDFLAGS = \
|
||||||
|
- -avoid-version
|
||||||
|
+ -avoid-version ${symv}
|
||||||
|
+EXTRA_libsss_semanage_la_DEPENDENCIES = x.sym
|
||||||
|
|
||||||
SSSD_INTERNAL_LTLIBS = \
|
SSSD_INTERNAL_LTLIBS = \
|
||||||
libsss_util.la \
|
libsss_util.la \
|
||||||
@@ -1354,7 +1366,7 @@ lib_LTLIBRARIES = libipa_hbac.la \
|
@@ -1368,7 +1381,7 @@ lib_LTLIBRARIES = libipa_hbac.la \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
pkgconfig_DATA += src/lib/ipa_hbac/ipa_hbac.pc
|
pkgconfig_DATA += src/lib/ipa_hbac/ipa_hbac.pc
|
||||||
@ -126,7 +136,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
libipa_hbac_la_SOURCES = \
|
libipa_hbac_la_SOURCES = \
|
||||||
src/lib/ipa_hbac/hbac_evaluator.c \
|
src/lib/ipa_hbac/hbac_evaluator.c \
|
||||||
src/util/sss_utf8.c
|
src/util/sss_utf8.c
|
||||||
@@ -1682,8 +1694,9 @@ libifp_iface_la_CFLAGS = \
|
@@ -1691,8 +1704,9 @@ libifp_iface_la_CFLAGS = \
|
||||||
$(DBUS_CFLAGS) \
|
$(DBUS_CFLAGS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
libifp_iface_la_LDFLAGS = \
|
libifp_iface_la_LDFLAGS = \
|
||||||
@ -137,7 +147,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
pkglib_LTLIBRARIES += libifp_iface_sync.la
|
pkglib_LTLIBRARIES += libifp_iface_sync.la
|
||||||
libifp_iface_sync_la_SOURCES = \
|
libifp_iface_sync_la_SOURCES = \
|
||||||
@@ -1708,8 +1721,9 @@ libifp_iface_sync_la_CFLAGS = \
|
@@ -1717,8 +1731,9 @@ libifp_iface_sync_la_CFLAGS = \
|
||||||
$(DBUS_CFLAGS) \
|
$(DBUS_CFLAGS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
libifp_iface_sync_la_LDFLAGS = \
|
libifp_iface_sync_la_LDFLAGS = \
|
||||||
@ -148,7 +158,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
sssd_ifp_SOURCES = \
|
sssd_ifp_SOURCES = \
|
||||||
src/responder/ifp/ifpsrv.c \
|
src/responder/ifp/ifpsrv.c \
|
||||||
@@ -4314,8 +4328,9 @@ libsss_ldap_common_la_LIBADD = \
|
@@ -4352,8 +4367,9 @@ libsss_ldap_common_la_LIBADD = \
|
||||||
$(SSSD_INTERNAL_LTLIBS) \
|
$(SSSD_INTERNAL_LTLIBS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
libsss_ldap_common_la_LDFLAGS = \
|
libsss_ldap_common_la_LDFLAGS = \
|
||||||
@ -159,7 +169,7 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
if BUILD_SYSTEMTAP
|
if BUILD_SYSTEMTAP
|
||||||
libsss_ldap_common_la_LIBADD += stap_generated_probes.lo
|
libsss_ldap_common_la_LIBADD += stap_generated_probes.lo
|
||||||
endif
|
endif
|
||||||
@@ -4371,7 +4386,8 @@ libsss_krb5_common_la_LIBADD = \
|
@@ -4410,7 +4426,8 @@ libsss_krb5_common_la_LIBADD = \
|
||||||
$(SSSD_INTERNAL_LTLIBS) \
|
$(SSSD_INTERNAL_LTLIBS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
libsss_krb5_common_la_LDFLAGS = \
|
libsss_krb5_common_la_LDFLAGS = \
|
||||||
@ -169,3 +179,6 @@ Index: sssd-2.10.1/Makefile.am
|
|||||||
|
|
||||||
libsss_ldap_la_SOURCES = \
|
libsss_ldap_la_SOURCES = \
|
||||||
src/providers/ldap/ldap_init.c \
|
src/providers/ldap/ldap_init.c \
|
||||||
|
--
|
||||||
|
2.46.1
|
||||||
|
|
@ -0,0 +1,73 @@
|
|||||||
|
From 2b7915dd84a6b8c3ee26e45357283677fe22f2cb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: Wed, 16 Oct 2024 09:55:50 +0200
|
||||||
|
Subject: [PATCH] sssd: always print path when config object is rejected
|
||||||
|
|
||||||
|
Observed:
|
||||||
|
|
||||||
|
```
|
||||||
|
Oct 16 09:44:04 a4 sssd[28717]: [sssd] [sss_ini_read_sssd_conf] (0x0020): Permission check on config file failed.
|
||||||
|
Oct 16 09:44:04 a4 sssd[28717]: Can't read config: 'File ownership and permissions check failed'
|
||||||
|
Oct 16 09:44:04 a4 sssd[28717]: Failed to read configuration: 'File ownership and permissions check failed'
|
||||||
|
```
|
||||||
|
|
||||||
|
Expected:
|
||||||
|
|
||||||
|
_Well yes, but **which one**_!?
|
||||||
|
|
||||||
|
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
|
||||||
|
Reviewed-by: Justin Stephenson <jstephen@redhat.com>
|
||||||
|
---
|
||||||
|
src/util/sss_ini.c | 14 ++++++++------
|
||||||
|
1 file changed, 8 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/util/sss_ini.c b/src/util/sss_ini.c
|
||||||
|
index 7f9824d88..2a611eb8c 100644
|
||||||
|
--- a/src/util/sss_ini.c
|
||||||
|
+++ b/src/util/sss_ini.c
|
||||||
|
@@ -888,7 +888,7 @@ int sss_ini_read_sssd_conf(struct sss_ini *self,
|
||||||
|
ret = sss_ini_open(self, config_file, "[sssd]\n");
|
||||||
|
if (ret != EOK) {
|
||||||
|
DEBUG(SSSDBG_CRIT_FAILURE,
|
||||||
|
- "The sss_ini_open failed %s: %d\n",
|
||||||
|
+ "sss_ini_open on %s failed: %d\n",
|
||||||
|
config_file,
|
||||||
|
ret);
|
||||||
|
return ERR_INI_OPEN_FAILED;
|
||||||
|
@@ -898,26 +898,28 @@ int sss_ini_read_sssd_conf(struct sss_ini *self,
|
||||||
|
ret = sss_ini_access_check(self);
|
||||||
|
if (ret != EOK) {
|
||||||
|
DEBUG(SSSDBG_CRIT_FAILURE,
|
||||||
|
- "Permission check on config file failed.\n");
|
||||||
|
+ "Permission check on config file %s failed: %d\n",
|
||||||
|
+ config_file, ret);
|
||||||
|
return ERR_INI_INVALID_PERMISSION;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
DEBUG(SSSDBG_CONF_SETTINGS,
|
||||||
|
- "File %1$s does not exist.\n",
|
||||||
|
- (config_file ? config_file : "NULL"));
|
||||||
|
+ "File %s does not exist.\n", config_file);
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = sss_ini_parse(self);
|
||||||
|
if (ret != EOK) {
|
||||||
|
sss_ini_config_print_errors(self->error_list);
|
||||||
|
- DEBUG(SSSDBG_FATAL_FAILURE, "Failed to parse configuration.\n");
|
||||||
|
+ DEBUG(SSSDBG_FATAL_FAILURE, "Failed to parse configuration file %s: %d\n",
|
||||||
|
+ config_file, ret);
|
||||||
|
return ERR_INI_PARSE_FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = sss_ini_add_snippets(self, config_dir);
|
||||||
|
if (ret != EOK) {
|
||||||
|
DEBUG(SSSDBG_FATAL_FAILURE,
|
||||||
|
- "Error while reading configuration directory.\n");
|
||||||
|
+ "Error while reading configuration directory %s: %d\n",
|
||||||
|
+ config_dir, ret);
|
||||||
|
return ERR_INI_ADD_SNIPPETS_FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.47.0
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
mtime: 1738574756
|
|
||||||
commit: 0dd76c3fb1e8976e3f2203732d255929ddd4647604210f34bc9970c9c866a7c6
|
|
||||||
url: https://src.opensuse.org/jengelh/sssd
|
|
||||||
revision: master
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:057383006ab62d4a1ca24c5a28ada9061ca2aacd5b4b70b4384ba1850e394e6f
|
|
||||||
size 256
|
|
@ -1,24 +0,0 @@
|
|||||||
Index: sssd-2.5.2/src/sysv/systemd/sssd-ifp.service.in
|
|
||||||
===================================================================
|
|
||||||
--- sssd-2.5.2.orig/src/sysv/systemd/sssd-ifp.service.in
|
|
||||||
+++ sssd-2.5.2/src/sysv/systemd/sssd-ifp.service.in
|
|
||||||
@@ -5,6 +5,19 @@ After=sssd.service
|
|
||||||
BindsTo=sssd.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
+# added automatically, for details please see
|
|
||||||
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
||||||
+ProtectSystem=full
|
|
||||||
+ProtectHome=true
|
|
||||||
+PrivateDevices=true
|
|
||||||
+ProtectHostname=true
|
|
||||||
+ProtectClock=true
|
|
||||||
+ProtectKernelTunables=true
|
|
||||||
+ProtectKernelModules=true
|
|
||||||
+ProtectKernelLogs=true
|
|
||||||
+ProtectControlGroups=true
|
|
||||||
+RestrictRealtime=true
|
|
||||||
+# end of automatic additions
|
|
||||||
Environment=DEBUG_LOGGER=--logger=files
|
|
||||||
EnvironmentFile=-@environment_file@
|
|
||||||
Type=dbus
|
|
@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
src/sysv/systemd/sssd-kcm.service.in | 13 +++++++++++++
|
|
||||||
1 file changed, 13 insertions(+)
|
|
||||||
|
|
||||||
Index: sssd-2.10.2/src/sysv/systemd/sssd-kcm.service.in
|
|
||||||
===================================================================
|
|
||||||
--- sssd-2.10.2.orig/src/sysv/systemd/sssd-kcm.service.in
|
|
||||||
+++ sssd-2.10.2/src/sysv/systemd/sssd-kcm.service.in
|
|
||||||
@@ -8,6 +8,19 @@ After=sssd-kcm.socket
|
|
||||||
Also=sssd-kcm.socket
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
+# added automatically, for details please see
|
|
||||||
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
||||||
+ProtectSystem=full
|
|
||||||
+ProtectHome=true
|
|
||||||
+PrivateDevices=true
|
|
||||||
+ProtectHostname=true
|
|
||||||
+ProtectClock=true
|
|
||||||
+ProtectKernelTunables=true
|
|
||||||
+ProtectKernelModules=true
|
|
||||||
+ProtectKernelLogs=true
|
|
||||||
+ProtectControlGroups=true
|
|
||||||
+RestrictRealtime=true
|
|
||||||
+# end of automatic additions
|
|
||||||
Environment=DEBUG_LOGGER=--logger=files
|
|
||||||
# '-H' is used with @sssdconfdir@ to support use case where /etc/sssd is a symlink.
|
|
||||||
# '-H' only allows following a command line argument itself, everything else encountered due to '-R' isn't followed.
|
|
@ -1,20 +0,0 @@
|
|||||||
From: Jan Engelhardt <jengelh@inai.de>
|
|
||||||
Date: 2019-02-15 17:20:47.842813210 +0100
|
|
||||||
|
|
||||||
Remove versions checks that need updating every iteration.
|
|
||||||
---
|
|
||||||
src/external/pac_responder.m4 | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
Index: sssd-2.0.0/src/external/pac_responder.m4
|
|
||||||
===================================================================
|
|
||||||
--- sssd-2.0.0.orig/src/external/pac_responder.m4
|
|
||||||
+++ sssd-2.0.0/src/external/pac_responder.m4
|
|
||||||
@@ -11,6 +11,7 @@ then
|
|
||||||
AC_MSG_CHECKING(for supported MIT krb5 version)
|
|
||||||
KRB5_VERSION="`$KRB5_CONFIG --version`"
|
|
||||||
case $KRB5_VERSION in
|
|
||||||
+ *|\
|
|
||||||
Kerberos\ 5\ release\ 1.9* | \
|
|
||||||
Kerberos\ 5\ release\ 1.10* | \
|
|
||||||
Kerberos\ 5\ release\ 1.11* | \
|
|
BIN
sssd-2.10.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
sssd-2.10.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
16
sssd-2.10.0.tar.gz.asc
Normal file
16
sssd-2.10.0.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQIzBAABCAAdFiEEwTzQf/stsUCORXo809IbKRDPZ1kFAmcOPUoACgkQ09IbKRDP
|
||||||
|
Z1myuA//anDvdZcQp0EUia2NsiWt2MFE8esmsEIN6QmEYjUxvEeXI9q4YJQimMi8
|
||||||
|
wdt0zqZE1PLrTcroWaeGcgt2+CJWUbVanZtNn3oo7lUVYrLKemrUzavM7dXTaA43
|
||||||
|
cdKAFyEO+nHJQ2yBNUt6sRXc3tM0H27yZs0iL+CcYu6YshUTbMnZuwdpz7DqDTN8
|
||||||
|
nbG+LWa+U0en5mI3waP8Ionwmdv9AJAuCHQZLlZDpM0+YfGumcIUJdbxU/I8pqP8
|
||||||
|
MQaulPv3e+BNwdbUiLlk0cXRjuEfSd0bmMa3MqB4IqMvvjACU0GuSgK3FDhutZJe
|
||||||
|
HfmzYSo/Zntmr7F/eYLz6zy/GU3VewEilOyRV08oz+EVJRbGyo2t4k6PUYbn+I4V
|
||||||
|
kJ/maed5jnBzIZGf6o+P1r+3mavJg7k2LDV4s48MsZ4Y5ED4X0c+boT1L5FZbquW
|
||||||
|
gp99Di0RG4VoWiYOfVfszLzeDWOLbOrKMyA6PTqlmjGYAdV9SBwZP5WEdwXyPovo
|
||||||
|
D7uual7Eqdd+Y/lt+8O4Wd+Y+a9xI2kwVFo8KYmHc8PhgLpPIKTWbBTEI+0nw3fJ
|
||||||
|
qqyyA7JWA81bt4WKVuJaeS87S/9F4yn8ps2dzSgHjZ2Tzr7Eu1a3RWLjKYsjKZrT
|
||||||
|
PPd2d/02rQAZPwLYHN5qM3Xjh0DD7IiXav1QuIPxmUQA9z8ZiuA=
|
||||||
|
=mJVY
|
||||||
|
-----END PGP SIGNATURE-----
|
BIN
sssd-2.10.2.tar.gz
(Stored with Git LFS)
BIN
sssd-2.10.2.tar.gz
(Stored with Git LFS)
Binary file not shown.
@ -1,16 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iQIzBAABCAAdFiEEwTzQf/stsUCORXo809IbKRDPZ1kFAmeaLD8ACgkQ09IbKRDP
|
|
||||||
Z1nLAxAAm9zM2u1XR3FBK6iy2xC+PoDWdu8Kh+oU0B6NgFK5LEJk9TWBdHlLpYcS
|
|
||||||
HugTfQb5wPfUejZTk9u8TIoVIa7pTYl3kGH8RuLnEUr5lBKdYaDf5BUb8uM7YaBP
|
|
||||||
NZQDqCFshNMMF8Z44HfRQltmqblJWj7TdFXJ8dCkRupbXjrbqiBrH5XjooLUK0dX
|
|
||||||
/7m63at6BZFjuuFt/QvA2QbwK3fa2wUxuX0vMrD6f2zZuWptcE3zhXaa/BtPm5ZD
|
|
||||||
8S5oC+RkKMGfLWNfIc1noXOZQIT+sGNyeUhq/QRFybcHZ+tXqJrNmfz/OWf5HZ/U
|
|
||||||
vsJDIWv4db83asTtU3j5+ec4+fRwv7BK8X2V2UnpPOrAhN0r+zWp98BwUfSCqHlR
|
|
||||||
E8dBlbAU3pRL1qDZG71tpIgHeDNtB42MM0UmmBY4w18nNBbp8Be6vtEbD6ktoa0P
|
|
||||||
2uZRO9v/RgeKQTs0hfuzsbHcpd1hQmhtfwGAlxTWuGkoSjZyk2xUiV3JZ/3/kWH5
|
|
||||||
dCU26txrtgWFqLbUhanatFrdmdKwn5hp5eP/Px330zJVTjuILlqTZ1CLAW2B5Gal
|
|
||||||
JJT17j8ecqVedyHCkVnN9wD26ivwl8POBnrD3FfB6zKszcZewNRuKW24RyVamo6e
|
|
||||||
k4JVMTDzjOwr31Tt6eLhU0BsPA8G8wCntl3wj36T7VWh47ncsX8=
|
|
||||||
=vuNl
|
|
||||||
-----END PGP SIGNATURE-----
|
|
@ -1,2 +0,0 @@
|
|||||||
# See https://github.com/SSSD/sssd/pull/7794 for details
|
|
||||||
addFilter("E: missing-call-to-setgroups-before-setuid")
|
|
1
sssd-rpmlintrc
Normal file
1
sssd-rpmlintrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
addFilter("binary-or-shlib-calls-gethostbyname")
|
56
sssd.changes
56
sssd.changes
@ -1,43 +1,16 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 30 14:24:04 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
Wed Oct 16 14:52:05 UTC 2024 - Samuel Cabrero <scabrero@suse.de>
|
||||||
|
|
||||||
- Update to release 2.10.2
|
- Daemon runs now as unprivileged user 'sssd'
|
||||||
* If the ssh responder is not running, sss_ssh_knownhosts will
|
- Add sssd.permissions to set capabilities
|
||||||
not fail (but it will not return the keys).
|
- Fix socket activation of responders
|
||||||
* SSSD is now capable of handling multiple services associated
|
- Renamed patches:
|
||||||
with the same port.
|
krb-noversion.diff -> 0001-Remove-versions-checks-that-need-updating-every-iter.patch
|
||||||
* sssd_pam, being a privileged binary, now clears the
|
harden_sssd-ifp.service.patch -> 0002-Harden-sssd-ifp.service.patch
|
||||||
environment and does not allow configuration of the
|
harden_sssd-kcm.service.patch -> 0003-Harden-sssd-kcm.service.patch
|
||||||
PR_SET_DUMPABLE flag as a precaution.
|
symvers.patch -> 0004-Add-symvers.patch
|
||||||
|
0001-sssd-always-print-path-when-config-object-is-rejecte.patch ->
|
||||||
-------------------------------------------------------------------
|
0005-sssd-always-print-path-when-config-object-is-rejecte.patch
|
||||||
Wed Jan 22 09:21:43 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
|
||||||
|
|
||||||
- Drop build dependency on ncsd, which has been deprecated
|
|
||||||
(boo#1239262).
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Jan 21 16:33:00 UTC 2025 - Samuel Cabrero <scabrero@suse.de>
|
|
||||||
|
|
||||||
- Migrate away from update-alternatives, replaced by package
|
|
||||||
conflicts; (bsc#1235789); (bsc#1216739);
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Dec 10 20:17:10 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
|
||||||
|
|
||||||
- Update to release 2.10.1
|
|
||||||
* SSSD does not create anymore missing path components of
|
|
||||||
DIR:/FILE: ccache types while acquiring user's TGT. The
|
|
||||||
parent directory of requested ccache directory must exist and
|
|
||||||
the user trying to log in must have rwx access to this
|
|
||||||
directory. This matches behavior of /usr/bin/kinit.
|
|
||||||
* The option default_domain_suffix is deprecated.
|
|
||||||
- Delete 0001-Configuration-make-sure-etc-sssd-and-everything.patch,
|
|
||||||
0001-INI-relax-config-files-checks.patch,
|
|
||||||
0001-INI-stop-using-libini_config-for-access-check.patch,
|
|
||||||
0001-sssd-always-print-path-when-config-object-is-rejecte.patch
|
|
||||||
(merged)
|
|
||||||
- Add 0001-TOOL-Fix-build-parameter-name-omitted.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 15 12:59:51 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
Tue Oct 15 12:59:51 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
@ -56,12 +29,7 @@ Tue Oct 15 12:59:51 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
|||||||
* The default value for ``ldap_id_use_start_tls`` changed from
|
* The default value for ``ldap_id_use_start_tls`` changed from
|
||||||
false to true for improved security.
|
false to true for improved security.
|
||||||
* https://github.com/SSSD/sssd/releases/tag/2.10.0
|
* https://github.com/SSSD/sssd/releases/tag/2.10.0
|
||||||
- Add 0001-sssd-always-print-path-when-config-object-is-rejecte.patch,
|
- Add 0001-sssd-always-print-path-when-config-object-is-rejecte.patch
|
||||||
0001-INI-stop-using-libini_config-for-access-check.patch,
|
|
||||||
0001-INI-relax-config-files-checks.patch,
|
|
||||||
0001-Configuration-make-sure-etc-sssd-and-everything.patch
|
|
||||||
- Fix socket activation of responders
|
|
||||||
- Daemon runs now as unprivileged user 'sssd'
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 1 10:15:07 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
Tue Oct 1 10:15:07 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
11
sssd.permissions
Normal file
11
sssd.permissions
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/usr/libexec/sssd/sssd_pam root:sssd 0750
|
||||||
|
+capabilities cap_dac_read_search=p
|
||||||
|
|
||||||
|
/usr/libexec/sssd/selinux_child root:sssd 0750
|
||||||
|
+capabilities cap_chown,cap_dac_override,cap_setuid,cap_setgid=ep
|
||||||
|
|
||||||
|
/usr/libexec/sssd/krb5_child root:sssd 0750
|
||||||
|
+capabilities cap_chown,cap_dac_override,cap_setuid,cap_setgid=ep
|
||||||
|
|
||||||
|
/usr/libexec/sssd/ldap_child root:sssd 0750
|
||||||
|
+capabilities cap_chown,cap_dac_override,cap_setuid,cap_setgid=ep
|
263
sssd.spec
263
sssd.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package sssd
|
# spec file for package sssd
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: sssd
|
Name: sssd
|
||||||
Version: 2.10.2
|
Version: 2.10.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: System Security Services Daemon
|
Summary: System Security Services Daemon
|
||||||
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
||||||
@ -28,11 +28,14 @@ Source: https://github.com/SSSD/sssd/releases/download/%version/%name-%v
|
|||||||
Source2: https://github.com/SSSD/sssd/releases/download/%version/%name-%version.tar.gz.asc
|
Source2: https://github.com/SSSD/sssd/releases/download/%version/%name-%version.tar.gz.asc
|
||||||
Source3: baselibs.conf
|
Source3: baselibs.conf
|
||||||
Source5: %name.keyring
|
Source5: %name.keyring
|
||||||
Patch1: 0001-TOOL-Fix-build-parameter-name-omitted.patch
|
Source6: sssd.sysusers
|
||||||
Patch11: krb-noversion.diff
|
Source7: sssd.permissions
|
||||||
Patch12: harden_sssd-ifp.service.patch
|
Patch1: 0001-Remove-versions-checks-that-need-updating-every-iter.patch
|
||||||
Patch13: harden_sssd-kcm.service.patch
|
Patch2: 0002-Harden-sssd-ifp.service.patch
|
||||||
Patch14: symvers.patch
|
Patch3: 0003-Harden-sssd-kcm.service.patch
|
||||||
|
Patch4: 0004-Add-symvers.patch
|
||||||
|
Patch5: 0005-sssd-always-print-path-when-config-object-is-rejecte.patch
|
||||||
|
|
||||||
BuildRequires: autoconf >= 2.59
|
BuildRequires: autoconf >= 2.59
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: bind-utils
|
BuildRequires: bind-utils
|
||||||
@ -49,7 +52,7 @@ BuildRequires: libtool
|
|||||||
BuildRequires: libunistring-devel
|
BuildRequires: libunistring-devel
|
||||||
BuildRequires: libxml2-tools
|
BuildRequires: libxml2-tools
|
||||||
BuildRequires: libxslt-tools
|
BuildRequires: libxslt-tools
|
||||||
BuildRequires: libopenssl-3-devel
|
BuildRequires: nscd
|
||||||
BuildRequires: nss_wrapper
|
BuildRequires: nss_wrapper
|
||||||
BuildRequires: openldap2-devel
|
BuildRequires: openldap2-devel
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
@ -81,6 +84,9 @@ BuildRequires: pkgconfig(libpcre2-8)
|
|||||||
%if 0%{?suse_version} >= 1600
|
%if 0%{?suse_version} >= 1600
|
||||||
BuildRequires: pkgconfig(libsemanage)
|
BuildRequires: pkgconfig(libsemanage)
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: polkit
|
||||||
|
BuildRequires: sysuser-shadow
|
||||||
|
BuildRequires: sysuser-tools
|
||||||
BuildRequires: pkgconfig(libsystemd)
|
BuildRequires: pkgconfig(libsystemd)
|
||||||
BuildRequires: pkgconfig(ndr_krb5pac)
|
BuildRequires: pkgconfig(ndr_krb5pac)
|
||||||
BuildRequires: pkgconfig(ndr_nbt)
|
BuildRequires: pkgconfig(ndr_nbt)
|
||||||
@ -101,8 +107,9 @@ BuildRequires: pkgconfig(uuid)
|
|||||||
%endif
|
%endif
|
||||||
%sysusers_requires
|
%sysusers_requires
|
||||||
%{?systemd_ordering}
|
%{?systemd_ordering}
|
||||||
|
%sysusers_requires
|
||||||
|
Requires(pre): permissions
|
||||||
Requires(post): permissions
|
Requires(post): permissions
|
||||||
Requires(verify): permissions
|
|
||||||
Requires: sssd-ldap = %version-%release
|
Requires: sssd-ldap = %version-%release
|
||||||
Requires(postun): pam-config
|
Requires(postun): pam-config
|
||||||
Provides: libsss_sudo = %version-%release
|
Provides: libsss_sudo = %version-%release
|
||||||
@ -111,7 +118,9 @@ Obsoletes: libsss_sudo < %version-%release
|
|||||||
Provides: sssd-common = %version-%release
|
Provides: sssd-common = %version-%release
|
||||||
Obsoletes: sssd-common < %version-%release
|
Obsoletes: sssd-common < %version-%release
|
||||||
|
|
||||||
|
# Adjust sssd.permissions if the user changes
|
||||||
%global sssd_user sssd
|
%global sssd_user sssd
|
||||||
|
|
||||||
%define servicename sssd
|
%define servicename sssd
|
||||||
%define sssdstatedir %_localstatedir/lib/sss
|
%define sssdstatedir %_localstatedir/lib/sss
|
||||||
%define dbpath %sssdstatedir/db
|
%define dbpath %sssdstatedir/db
|
||||||
@ -120,17 +129,20 @@ Obsoletes: sssd-common < %version-%release
|
|||||||
%define gpocachepath %sssdstatedir/gpo_cache
|
%define gpocachepath %sssdstatedir/gpo_cache
|
||||||
%define keytabdir %sssdstatedir/keytabs
|
%define keytabdir %sssdstatedir/keytabs
|
||||||
%define mcpath %sssdstatedir/mc
|
%define mcpath %sssdstatedir/mc
|
||||||
|
%define deskprofilepath %sssdstatedir/deskprofile
|
||||||
%define ldbdir %(pkg-config ldb --variable=modulesdir)
|
%define ldbdir %(pkg-config ldb --variable=modulesdir)
|
||||||
|
%define child_capabilities cap_chown,cap_dac_override,cap_setuid,cap_setgid=ep
|
||||||
|
|
||||||
|
# Both SSSD and cifs-utils provide an idmap plugin for cifs.ko
|
||||||
%if 0%{?suse_version} >= 1600
|
# %%_sysconfdir/cifs-utils/idmap-plugin should be a symlink to one of the 2 idmap plugins
|
||||||
%define permissions_path %_datadir/permissions/permissions.d/
|
# * cifs-utils one is the default (priority 20)
|
||||||
%else
|
# * installing SSSD should NOT switch to SSSD plugin (priority 10)
|
||||||
%define permissions_path %_sysconfdir/permissions.d/
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define cifs_idmap_plugin %_sysconfdir/cifs-utils/idmap-plugin
|
%define cifs_idmap_plugin %_sysconfdir/cifs-utils/idmap-plugin
|
||||||
%define cifs_idmap_lib %_libdir/cifs-utils/cifs_idmap_sss.so
|
%define cifs_idmap_lib %_libdir/cifs-utils/cifs_idmap_sss.so
|
||||||
|
%define cifs_idmap_name cifs-idmap-plugin
|
||||||
|
%define cifs_idmap_priority 10
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A set of daemons to manage access to remote directories and
|
A set of daemons to manage access to remote directories and
|
||||||
@ -160,6 +172,18 @@ Requires: %name = %version
|
|||||||
D-Bus responder of sssd, called InfoPipe, which allows
|
D-Bus responder of sssd, called InfoPipe, which allows
|
||||||
information from sssd to be transmitted over the system bus.
|
information from sssd to be transmitted over the system bus.
|
||||||
|
|
||||||
|
%package polkit-rules
|
||||||
|
Summary: Rules for polkit integration for SSSD
|
||||||
|
Group: System/Daemons
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: polkit >= 0.106
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description polkit-rules
|
||||||
|
Provides rules for polkit integration with SSSD. This is required
|
||||||
|
for smartcard support.
|
||||||
|
|
||||||
%package ipa
|
%package ipa
|
||||||
Summary: FreeIPA backend plugin for sssd
|
Summary: FreeIPA backend plugin for sssd
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
@ -199,8 +223,8 @@ Summary: SSSD helpers needed for Kerberos and GSSAPI authentication
|
|||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: System/Daemons
|
Group: System/Daemons
|
||||||
Requires: cyrus-sasl-gssapi
|
Requires: cyrus-sasl-gssapi
|
||||||
|
Requires(pre): permissions
|
||||||
Requires(post): permissions
|
Requires(post): permissions
|
||||||
Requires(verify): permissions
|
|
||||||
|
|
||||||
%description krb5-common
|
%description krb5-common
|
||||||
Provides helper processes that the LDAP and Kerberos back ends can
|
Provides helper processes that the LDAP and Kerberos back ends can
|
||||||
@ -244,23 +268,6 @@ Group: System/Libraries
|
|||||||
The idmap_sss module provides a way for Winbind to call SSSD to map
|
The idmap_sss module provides a way for Winbind to call SSSD to map
|
||||||
UIDs/GIDs and SIDs.
|
UIDs/GIDs and SIDs.
|
||||||
|
|
||||||
%package cifs-idmap-plugin
|
|
||||||
Summary: The sssd idmap plugin for cifs.idmap
|
|
||||||
Group: System/Libraries
|
|
||||||
# Conflict as per https://bugzilla.suse.com/1235789
|
|
||||||
Provides: cifs-idmap-plugin
|
|
||||||
Conflicts: cifs-idmap-plugin
|
|
||||||
|
|
||||||
%description cifs-idmap-plugin
|
|
||||||
The cifs.idmap(8) userspace helper relies on a plugin to handle the
|
|
||||||
ID mapping. This package contains the ID mapping plugin that will use
|
|
||||||
sssd.
|
|
||||||
|
|
||||||
In SUSE systems, only one such plugin can be installed at a time
|
|
||||||
(either the one from sssd, or from cifs-utils).
|
|
||||||
Without the plugin, file objects in a mounted share have UID/GID of
|
|
||||||
the original mounting process.
|
|
||||||
|
|
||||||
%package -n libsss_certmap0
|
%package -n libsss_certmap0
|
||||||
Summary: FreeIPA ID mapping library
|
Summary: FreeIPA ID mapping library
|
||||||
License: LGPL-3.0-or-later
|
License: LGPL-3.0-or-later
|
||||||
@ -416,6 +423,9 @@ Security Services Daemon (sssd).
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# help configure find nscd
|
||||||
|
export PATH="$PATH:/usr/sbin"
|
||||||
|
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
%configure \
|
%configure \
|
||||||
--with-db-path="%dbpath" \
|
--with-db-path="%dbpath" \
|
||||||
@ -425,14 +435,15 @@ autoreconf -fiv
|
|||||||
--with-environment-file="%_sysconfdir/sysconfig/sssd" \
|
--with-environment-file="%_sysconfdir/sysconfig/sssd" \
|
||||||
--with-initscript=systemd \
|
--with-initscript=systemd \
|
||||||
--with-syslog=journald \
|
--with-syslog=journald \
|
||||||
--with-pid-path="%_rundir/sssd" \
|
--with-pid-path="%_rundir/sssd/" \
|
||||||
|
--enable-nsslibdir="%_libdir" \
|
||||||
--enable-pammoddir="%_pam_moduledir" \
|
--enable-pammoddir="%_pam_moduledir" \
|
||||||
--with-ldb-lib-dir="%ldbdir" \
|
--with-ldb-lib-dir="%ldbdir" \
|
||||||
--with-os=suse \
|
--with-os=suse \
|
||||||
--disable-ldb-version-check \
|
--disable-ldb-version-check \
|
||||||
--without-python2-bindings \
|
--without-python2-bindings \
|
||||||
--without-oidc-child \
|
--without-oidc-child \
|
||||||
--with-sssd-user="%sssd_user" \
|
--with-sssd-user=%{sssd_user} \
|
||||||
%if 0%{?suse_version} >= 1600
|
%if 0%{?suse_version} >= 1600
|
||||||
--with-selinux=yes \
|
--with-selinux=yes \
|
||||||
--with-subid
|
--with-subid
|
||||||
@ -443,6 +454,8 @@ autoreconf -fiv
|
|||||||
%endif
|
%endif
|
||||||
%make_build all
|
%make_build all
|
||||||
|
|
||||||
|
%sysusers_generate_pre %{SOURCE6} %{name} %{name}.conf
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# sss_obfuscate is compatible with both Python 2 and 3
|
# sss_obfuscate is compatible with both Python 2 and 3
|
||||||
perl -i -lpe 's{%_bindir/python\b}{%_bindir/python3}' src/tools/sss_obfuscate
|
perl -i -lpe 's{%_bindir/python\b}{%_bindir/python3}' src/tools/sss_obfuscate
|
||||||
@ -478,45 +491,34 @@ find "$b" -type f -name "*.la" -print -delete
|
|||||||
%find_lang %name --all-name
|
%find_lang %name --all-name
|
||||||
|
|
||||||
# dummy target for cifs-idmap-plugin
|
# dummy target for cifs-idmap-plugin
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/cifs-utils
|
mkdir -pv "$b/%_sysconfdir/alternatives" "$b/%_sysconfdir/cifs-utils"
|
||||||
ln -s -f %{cifs_idmap_lib} %{buildroot}%{cifs_idmap_plugin}
|
ln -sfv "%_sysconfdir/alternatives/%cifs_idmap_name" "$b/%cifs_idmap_plugin"
|
||||||
|
|
||||||
%python3_fix_shebang
|
%python3_fix_shebang
|
||||||
%if 0%{?suse_version} > 1600
|
%if 0%{?suse_version} > 1600
|
||||||
%python3_fix_shebang_path %buildroot/%_libexecdir/%name/sss_analyze
|
%python3_fix_shebang_path %{buildroot}/%{_libexecdir}/%{name}/sss_analyze
|
||||||
%elif 0%{?suse_version} == 1600
|
%elif 0%{?suse_version} == 1600
|
||||||
# python3_fix_shebang_path macro does not exist in < 1600, was added in python-rom-macros 20231204
|
# python3_fix_shebang_path macro does not exist in < 1600, was added in python-rom-macros 20231204
|
||||||
sed -i '1s@#!.*python.*@#!%_bindir/python3.11@' "$b/%_libexecdir/%name/sss_analyze"
|
sed -i '1s@#!.*python.*@#!%_bindir/python3.11@' "$b/%_libexecdir/%name/sss_analyze"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
echo 'u sssd - "System Security Services Daemon" /run/sssd /sbin/nologin' >system-user-sssd.conf
|
install -D -p -m 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf
|
||||||
mkdir -p "$b/%_sysusersdir"
|
install -D -p -m 0644 contrib/sssd-tmpfiles.conf %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||||
cp -a system-user-sssd.conf "$b/%_sysusersdir/"
|
install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/permissions.d/%{name}
|
||||||
%sysusers_generate_pre system-user-sssd.conf random system-user-sssd.conf
|
|
||||||
install -Dpm 0644 contrib/sssd-tmpfiles.conf "%buildroot/%_tmpfilesdir/%name.conf"
|
|
||||||
#
|
|
||||||
# Security considerations for capabilities, chown and stuff:
|
|
||||||
# https://www.openwall.com/lists/oss-security/2024/12/19/1
|
|
||||||
#
|
|
||||||
# should match entry from %%files list
|
|
||||||
mkdir -p "$b/%permissions_path"
|
|
||||||
cat >"$b/%permissions_path/sssd" <<-EOF
|
|
||||||
%_libexecdir/sssd/sssd_pam root:sssd 0750
|
|
||||||
+capabilities cap_dac_read_search=p
|
|
||||||
%_libexecdir/sssd/selinux_child root:sssd 0750
|
|
||||||
+capabilities cap_setgid,cap_setuid=p
|
|
||||||
%_libexecdir/sssd/krb5_child root:sssd 0750
|
|
||||||
+capabilities cap_dac_read_search,cap_setgid,cap_setuid=p
|
|
||||||
%_libexecdir/sssd/ldap_child root:sssd 0750
|
|
||||||
+capabilities cap_dac_read_search=p
|
|
||||||
EOF
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# sss_config-tests fails
|
# sss_config-tests fails
|
||||||
%make_build check || :
|
%make_build check || :
|
||||||
|
|
||||||
%pre -f random.pre
|
%pre
|
||||||
%service_add_pre sssd.service sssd-autofs.service sssd-autofs.socket sssd-nss.service sssd-nss.socket sssd-pac.service sssd-pac.socket sssd-pam.service sssd-pam.socket sssd-ssh.service sssd-ssh.socket sssd-sudo.service sssd-sudo.socket
|
%sysusers_create_package %{name} %SOURCE6
|
||||||
|
%service_add_pre sssd.service
|
||||||
|
%service_add_pre sssd-autofs.service sssd-autofs.socket
|
||||||
|
%service_add_pre sssd-nss.service sssd-nss.socket
|
||||||
|
%service_add_pre sssd-pac.service sssd-pac.socket
|
||||||
|
%service_add_pre sssd-pam.service sssd-pam.socket
|
||||||
|
%service_add_pre sssd-ssh.service sssd-ssh.socket
|
||||||
|
%service_add_pre sssd-sudo.service sssd-sudo.socket
|
||||||
|
|
||||||
%if "%{?_distconfdir}" != ""
|
%if "%{?_distconfdir}" != ""
|
||||||
# Prepare for migration to /usr/etc; save any old .rpmsave
|
# Prepare for migration to /usr/etc; save any old .rpmsave
|
||||||
for i in sssd/sssd.conf pam.d/sssd-shadowutils logrotate.d/sssd ; do
|
for i in sssd/sssd.conf pam.d/sssd-shadowutils logrotate.d/sssd ; do
|
||||||
@ -530,14 +532,38 @@ done
|
|||||||
if [ -f "%_sysconfdir/sssd/sssd.conf" ]; then
|
if [ -f "%_sysconfdir/sssd/sssd.conf" ]; then
|
||||||
/bin/sed -i -e 's,^krb5_kdcip =,krb5_server =,g' "%_sysconfdir/sssd/sssd.conf"
|
/bin/sed -i -e 's,^krb5_kdcip =,krb5_server =,g' "%_sysconfdir/sssd/sssd.conf"
|
||||||
fi
|
fi
|
||||||
%service_add_post sssd.service sssd-autofs.service sssd-autofs.socket sssd-nss.service sssd-nss.socket sssd-pac.service sssd-pac.socket sssd-pam.service sssd-pam.socket sssd-ssh.service sssd-ssh.socket sssd-sudo.service sssd-sudo.socket
|
%service_add_post sssd.service
|
||||||
|
%service_add_post sssd-autofs.service sssd-autofs.socket
|
||||||
|
%service_add_post sssd-nss.service sssd-nss.socket
|
||||||
|
%service_add_post sssd-pac.service sssd-pac.socket
|
||||||
|
%service_add_post sssd-pam.service sssd-pam.socket
|
||||||
|
%service_add_post sssd-ssh.service sssd-ssh.socket
|
||||||
|
%service_add_post sssd-sudo.service sssd-sudo.socket
|
||||||
|
|
||||||
%_bindir/rm -f %mcpath/passwd %mcpath/group %mcpath/initgroups %mcpath/sid
|
%{_bindir}/rm -f %{mcpath}/passwd
|
||||||
%tmpfiles_create %name.conf
|
%{_bindir}/rm -f %{mcpath}/group
|
||||||
%set_permissions %_libexecdir/%name/selinux_child %_libexecdir/%name/sssd_pam
|
%{_bindir}/rm -f %{mcpath}/initgroups
|
||||||
|
%{_bindir}/rm -f %{mcpath}/sid
|
||||||
|
%{_bindir}/chown -f %{sssd_user}:%{sssd_user} %{dbpath}/* || true
|
||||||
|
%{_bindir}/chown -f %{sssd_user}:%{sssd_user} %{_sysconfdir}/sssd/sssd.conf || true
|
||||||
|
%{_bindir}/chown -f -R %{sssd_user}:%{sssd_user} %{_sysconfdir}/sssd/conf.d || true
|
||||||
|
%{_bindir}/chown -f %{sssd_user}:%{sssd_user} %{_var}/log/%{name}/*.log || true
|
||||||
|
|
||||||
|
%tmpfiles_create %{name}.conf
|
||||||
|
%set_permissions %_libexecdir/%{name}/selinux_child
|
||||||
|
%set_permissions %_libexecdir/%{name}/sssd_pam
|
||||||
|
|
||||||
|
# install SSSD cifs-idmap plugin as an alternative
|
||||||
|
update-alternatives --install %cifs_idmap_plugin %cifs_idmap_name %cifs_idmap_lib %cifs_idmap_priority
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun sssd.service sssd-autofs.service sssd-autofs.socket sssd-nss.service sssd-nss.socket sssd-pac.service sssd-pac.socket sssd-pam.service sssd-pam.socket sssd-ssh.service sssd-ssh.socket sssd-sudo.service sssd-sudo.socket
|
%service_del_preun sssd.service
|
||||||
|
%service_del_preun sssd-autofs.service sssd-autofs.socket
|
||||||
|
%service_del_preun sssd-nss.service sssd-nss.socket
|
||||||
|
%service_del_preun sssd-pac.service sssd-pac.socket
|
||||||
|
%service_del_preun sssd-pam.service sssd-pam.socket
|
||||||
|
%service_del_preun sssd-ssh.service sssd-ssh.socket
|
||||||
|
%service_del_preun sssd-sudo.service sssd-sudo.socket
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -545,17 +571,29 @@ if [ "$1" = "0" ] && [ -x "%_sbindir/pam-config" ]; then
|
|||||||
"%_sbindir/pam-config" -d --sss || :
|
"%_sbindir/pam-config" -d --sss || :
|
||||||
fi
|
fi
|
||||||
# del_postun includes a try-restart
|
# del_postun includes a try-restart
|
||||||
%service_del_postun sssd.service sssd-autofs.service sssd-autofs.socket sssd-nss.service sssd-nss.socket sssd-pac.service sssd-pac.socket sssd-pam.service sssd-pam.socket sssd-ssh.service sssd-ssh.socket sssd-sudo.service sssd-sudo.socket
|
%service_del_postun sssd.service
|
||||||
|
%service_del_postun sssd-autofs.service sssd-autofs.socket
|
||||||
|
%service_del_postun sssd-nss.service sssd-nss.socket
|
||||||
|
%service_del_postun sssd-pac.service sssd-pac.socket
|
||||||
|
%service_del_postun sssd-pam.service sssd-pam.socket
|
||||||
|
%service_del_postun sssd-ssh.service sssd-ssh.socket
|
||||||
|
%service_del_postun sssd-sudo.service sssd-sudo.socket
|
||||||
|
|
||||||
|
if [ ! -f "%cifs_idmap_lib" ]; then
|
||||||
|
update-alternatives --remove %cifs_idmap_name %cifs_idmap_lib
|
||||||
|
fi
|
||||||
|
|
||||||
%ldconfig_scriptlets -n libsss_certmap0
|
%ldconfig_scriptlets -n libsss_certmap0
|
||||||
%ldconfig_scriptlets -n libipa_hbac0
|
%ldconfig_scriptlets -n libipa_hbac0
|
||||||
%ldconfig_scriptlets -n libsss_idmap0
|
%ldconfig_scriptlets -n libsss_idmap0
|
||||||
%ldconfig_scriptlets -n libsss_nss_idmap0
|
%ldconfig_scriptlets -n libsss_nss_idmap0
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
%ldconfig_scriptlets -n libsss_simpleifp0
|
%ldconfig_scriptlets -n libsss_simpleifp0
|
||||||
|
%endif
|
||||||
|
|
||||||
%verifyscript
|
%verifyscript
|
||||||
%verify_permissions -e %_libexecdir/%name/selinux_child %_libexecdir/%name/sssd_pam
|
%verify_permissions -e %_libexecdir/%{name}/selinux_child
|
||||||
|
%verify_permissions -e %_libexecdir/%{name}/sssd_pam
|
||||||
|
|
||||||
%triggerun -- %name < %version-%release
|
%triggerun -- %name < %version-%release
|
||||||
# sssd takes care of upgrading the database but it doesn't handle downgrades.
|
# sssd takes care of upgrading the database but it doesn't handle downgrades.
|
||||||
@ -590,15 +628,21 @@ fi
|
|||||||
%postun kcm
|
%postun kcm
|
||||||
%service_del_postun sssd-kcm.service sssd-kcm.socket
|
%service_del_postun sssd-kcm.service sssd-kcm.socket
|
||||||
|
|
||||||
%pre krb5-common -f random.pre
|
%pre krb5-common
|
||||||
|
%sysusers_create_package %{name} %SOURCE6
|
||||||
|
%sysusers_create_package %{name}-krb5-common %SOURCE6
|
||||||
|
|
||||||
%post krb5-common
|
%post krb5-common
|
||||||
%set_permissions %_libexecdir/%name/krb5_child %_libexecdir/%name/ldap_child
|
%set_permissions %_libexecdir/%{name}/krb5_child
|
||||||
|
%set_permissions %_libexecdir/%{name}/ldap_child
|
||||||
|
|
||||||
%verifyscript krb5-common
|
%verifyscript krb5-common
|
||||||
%verify_permissions -e %_libexecdir/%name/krb5_child %_libexecdir/%name/ldap_child
|
%verify_permissions -e %_libexecdir/%{name}/krb5_child
|
||||||
|
%verify_permissions -e %_libexecdir/%{name}/ldap_child
|
||||||
|
|
||||||
%pre proxy -f random.pre
|
%pre proxy
|
||||||
|
%sysusers_create_package %{name} %SOURCE6
|
||||||
|
%sysusers_create_package %{name}-proxy %SOURCE6
|
||||||
|
|
||||||
%pretrans
|
%pretrans
|
||||||
# Migrate sssd.service from sssd-common to sssd
|
# Migrate sssd.service from sssd-common to sssd
|
||||||
@ -654,11 +698,6 @@ fi
|
|||||||
%_unitdir/sssd-sudo.socket
|
%_unitdir/sssd-sudo.socket
|
||||||
%_unitdir/sssd-sudo.service
|
%_unitdir/sssd-sudo.service
|
||||||
%_sysusersdir/*sssd*
|
%_sysusersdir/*sssd*
|
||||||
%_tmpfilesdir/*sssd*
|
|
||||||
%permissions_path/sssd
|
|
||||||
%dir %_datadir/polkit-1
|
|
||||||
%attr(0555,root,root) %dir %_datadir/polkit-1/rules.d
|
|
||||||
%_datadir/polkit-1/rules.d/*
|
|
||||||
%_bindir/sss_ssh_*
|
%_bindir/sss_ssh_*
|
||||||
%_sbindir/sssd
|
%_sbindir/sssd
|
||||||
%if 0%{?suse_version} < 1600
|
%if 0%{?suse_version} < 1600
|
||||||
@ -702,6 +741,7 @@ fi
|
|||||||
%_libdir/%name/libsss_files*
|
%_libdir/%name/libsss_files*
|
||||||
%endif
|
%endif
|
||||||
%_libdir/%name/libsss_iface*
|
%_libdir/%name/libsss_iface*
|
||||||
|
%_libdir/%name/libsss_semanage*
|
||||||
%_libdir/%name/libsss_sbus*
|
%_libdir/%name/libsss_sbus*
|
||||||
%_libdir/%name/libsss_simple*
|
%_libdir/%name/libsss_simple*
|
||||||
%_libdir/%name/libsss_util*
|
%_libdir/%name/libsss_util*
|
||||||
@ -714,33 +754,34 @@ fi
|
|||||||
%_libexecdir/%name/sssd_autofs
|
%_libexecdir/%name/sssd_autofs
|
||||||
%_libexecdir/%name/sssd_be
|
%_libexecdir/%name/sssd_be
|
||||||
%_libexecdir/%name/sssd_nss
|
%_libexecdir/%name/sssd_nss
|
||||||
%attr(750,root,%sssd_user) %caps(cap_dac_read_search=p) %_libexecdir/%name/sssd_pam
|
%attr(0750,root,%{sssd_user}) %caps(cap_dac_read_search=p) %{_libexecdir}/%{name}/sssd_pam
|
||||||
%_libexecdir/%name/sssd_ssh
|
%_libexecdir/%name/sssd_ssh
|
||||||
%_libexecdir/%name/sssd_sudo
|
%_libexecdir/%name/sssd_sudo
|
||||||
%_libexecdir/%name/sss_signal
|
%_libexecdir/%name/sss_signal
|
||||||
%_libexecdir/%name/sssd_check_socket_activated_responders
|
%_libexecdir/%name/sssd_check_socket_activated_responders
|
||||||
%if 0%{?suse_version} >= 1600
|
%if 0%{?suse_version} >= 1600
|
||||||
%attr(750,root,%sssd_user) %caps(cap_setgid,cap_setuid=p) %_libexecdir/%name/selinux_child
|
%attr(0750,root,%{sssd_user}) %caps(%{child_capabilities}) %{_libexecdir}/%{name}/selinux_child
|
||||||
%endif
|
%endif
|
||||||
%dir %sssdstatedir
|
%dir %sssdstatedir
|
||||||
%attr(700,%sssd_user,%sssd_user) %dir %dbpath/
|
%attr(700,%{sssd_user},%{sssd_user}) %dir %dbpath/
|
||||||
%attr(755,%sssd_user,%sssd_user) %dir %pipepath/
|
%attr(755,%{sssd_user},%{sssd_user}) %dir %pipepath/
|
||||||
%attr(700,%sssd_user,%sssd_user) %dir %pipepath/private/
|
%attr(700,%{sssd_user},%{sssd_user}) %dir %pipepath/private/
|
||||||
%attr(755,%sssd_user,%sssd_user) %dir %pubconfpath/
|
%attr(755,%{sssd_user},%{sssd_user}) %dir %pubconfpath/
|
||||||
%attr(755,%sssd_user,%sssd_user) %dir %pubconfpath/krb5.include.d
|
%attr(755,%{sssd_user},%{sssd_user}) %dir %pubconfpath/krb5.include.d
|
||||||
%attr(755,%sssd_user,%sssd_user) %dir %gpocachepath/
|
%attr(755,%{sssd_user},%{sssd_user}) %dir %gpocachepath/
|
||||||
%attr(755,%sssd_user,%sssd_user) %dir %mcpath/
|
%attr(755,%{sssd_user},%{sssd_user}) %dir %mcpath/
|
||||||
%attr(700,%sssd_user,%sssd_user) %dir %keytabdir/
|
%attr(700,%{sssd_user},%{sssd_user}) %dir %keytabdir/
|
||||||
%attr(750,%sssd_user,%sssd_user) %dir %_localstatedir/log/%name/
|
%attr(750,%{sssd_user},%{sssd_user}) %dir %_localstatedir/log/%name/
|
||||||
%attr(775,%sssd_user,%sssd_user) %dir %sssdstatedir/
|
%attr(775,%{sssd_user},%{sssd_user}) %dir %sssdstatedir/
|
||||||
|
%config(noreplace) %_sysconfdir/permissions.d/sssd
|
||||||
%if "%{?_distconfdir}" != ""
|
%if "%{?_distconfdir}" != ""
|
||||||
%attr(750,root,%sssd_user) %dir %_distconfdir/sssd/
|
%attr(750,%{sssd_user},%{sssd_user}) %dir %_distconfdir/sssd/
|
||||||
%attr(750,root,%sssd_user) %dir %_distconfdir/sssd/conf.d
|
%attr(750,%{sssd_user},%{sssd_user}) %dir %_distconfdir/sssd/conf.d
|
||||||
%attr(640,root,%sssd_user) %_distconfdir/sssd/sssd.conf
|
%attr(0600,%{sssd_user},%{sssd_user}) %_distconfdir/sssd/sssd.conf
|
||||||
%else
|
%else
|
||||||
%attr(750,root,%sssd_user) %dir %_sysconfdir/sssd/
|
%attr(750,%{sssd_user},%{sssd_user}) %dir %_sysconfdir/sssd/
|
||||||
%attr(750,root,%sssd_user) %dir %_sysconfdir/sssd/conf.d
|
%attr(750,%{sssd_user},%{sssd_user}) %dir %_sysconfdir/sssd/conf.d
|
||||||
%ghost %attr(640,root,%sssd_user) %config(noreplace) %_sysconfdir/sssd/sssd.conf
|
%ghost %attr(0600,%{sssd_user},%{sssd_user}) %config(noreplace) %_sysconfdir/sssd/sssd.conf
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
%_distconfdir/logrotate.d/sssd
|
%_distconfdir/logrotate.d/sssd
|
||||||
@ -759,12 +800,14 @@ fi
|
|||||||
%else
|
%else
|
||||||
%exclude %_mandir/*/*/sssd-files.5.gz
|
%exclude %_mandir/*/*/sssd-files.5.gz
|
||||||
%endif
|
%endif
|
||||||
%attr(775,%sssd_user,%sssd_user) %ghost %dir %_rundir/sssd
|
%attr(775,%{sssd_user},%{sssd_user}) %ghost %dir %{_rundir}/sssd
|
||||||
%doc src/examples/sssd.conf
|
%doc src/examples/sssd.conf
|
||||||
|
%{_sysusersdir}/sssd.conf
|
||||||
|
%{_tmpfilesdir}/sssd.conf
|
||||||
#
|
#
|
||||||
# sssd-client
|
# sssd-client
|
||||||
#
|
#
|
||||||
%_libdir/libnss_sss.so.2
|
%{_libdir}/libnss_sss.so.2
|
||||||
%_pam_moduledir/pam_sss.so
|
%_pam_moduledir/pam_sss.so
|
||||||
%_pam_moduledir/pam_sss_gss.so
|
%_pam_moduledir/pam_sss_gss.so
|
||||||
%_libdir/krb5/
|
%_libdir/krb5/
|
||||||
@ -781,7 +824,12 @@ fi
|
|||||||
%_mandir/man8/sssd_krb5_localauth_plugin.8*
|
%_mandir/man8/sssd_krb5_localauth_plugin.8*
|
||||||
%_mandir/??/man8/sssd_krb5_localauth_plugin.8*
|
%_mandir/??/man8/sssd_krb5_localauth_plugin.8*
|
||||||
%_mandir/man8/sssd_krb5_locator_plugin.8*
|
%_mandir/man8/sssd_krb5_locator_plugin.8*
|
||||||
|
# cifs idmap plugin
|
||||||
|
%dir %_sysconfdir/cifs-utils
|
||||||
|
%cifs_idmap_plugin
|
||||||
|
%dir %_libdir/cifs-utils
|
||||||
|
%cifs_idmap_lib
|
||||||
|
%ghost %_sysconfdir/alternatives/%cifs_idmap_name
|
||||||
|
|
||||||
%files ad
|
%files ad
|
||||||
%dir %_libdir/%name/
|
%dir %_libdir/%name/
|
||||||
@ -844,8 +892,11 @@ fi
|
|||||||
%dir %_libdir/%name/
|
%dir %_libdir/%name/
|
||||||
%_libdir/%name/libsss_krb5_common.so
|
%_libdir/%name/libsss_krb5_common.so
|
||||||
%dir %_libexecdir/%name/
|
%dir %_libexecdir/%name/
|
||||||
%attr(750,root,%sssd_user) %caps(cap_dac_read_search,cap_setgid,cap_setuid=p) %_libexecdir/%name/krb5_child
|
%attr(0750,root,%{sssd_user}) %caps(%{child_capabilities}) %_libexecdir/%name/krb5_child
|
||||||
%attr(750,root,%sssd_user) %caps(cap_dac_read_search=p) %_libexecdir/%name/ldap_child
|
%attr(0750,root,%{sssd_user}) %caps(%{child_capabilities}) %_libexecdir/%name/ldap_child
|
||||||
|
|
||||||
|
%files polkit-rules
|
||||||
|
%{_datadir}/polkit-1/rules.d/sssd-pcsc.rules
|
||||||
|
|
||||||
%files ldap
|
%files ldap
|
||||||
%dir %_libdir/%name/
|
%dir %_libdir/%name/
|
||||||
@ -862,7 +913,7 @@ fi
|
|||||||
%dir %_libdir/%name/
|
%dir %_libdir/%name/
|
||||||
%_libdir/%name/libsss_proxy.so
|
%_libdir/%name/libsss_proxy.so
|
||||||
%dir %_libexecdir/%name/
|
%dir %_libexecdir/%name/
|
||||||
%attr(750,root,%sssd_user) %_libexecdir/%name/proxy_child
|
%attr(0750,root,%{sssd_user}) %_libexecdir/%name/proxy_child
|
||||||
%dir %_datadir/%name/
|
%dir %_datadir/%name/
|
||||||
%dir %_datadir/%name/sssd.api.d/
|
%dir %_datadir/%name/sssd.api.d/
|
||||||
%_datadir/%name/sssd.api.d/sssd-proxy.conf
|
%_datadir/%name/sssd.api.d/sssd-proxy.conf
|
||||||
@ -887,12 +938,6 @@ fi
|
|||||||
%_libdir/samba/idmap/
|
%_libdir/samba/idmap/
|
||||||
%_mandir/man8/idmap_sss.8*
|
%_mandir/man8/idmap_sss.8*
|
||||||
|
|
||||||
%files cifs-idmap-plugin
|
|
||||||
%dir %_sysconfdir/cifs-utils
|
|
||||||
%cifs_idmap_plugin
|
|
||||||
%dir %_libdir/cifs-utils
|
|
||||||
%cifs_idmap_lib
|
|
||||||
|
|
||||||
%files -n libipa_hbac0
|
%files -n libipa_hbac0
|
||||||
%_libdir/libipa_hbac.so.0*
|
%_libdir/libipa_hbac.so.0*
|
||||||
|
|
||||||
|
1
sssd.sysusers
Normal file
1
sssd.sysusers
Normal file
@ -0,0 +1 @@
|
|||||||
|
u sssd - "System Security Services Daemon" /run/sssd/ /sbin/nologin
|
Loading…
x
Reference in New Issue
Block a user