Sync with latest upstream patches and fix package URL
Resolves: rhbz#1800897
This commit is contained in:
parent
87488d9a31
commit
77c88efdae
27
0001-Add-missing-xsl-file-to-Makefile.am.patch
Normal file
27
0001-Add-missing-xsl-file-to-Makefile.am.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From 81b5e3478269ea47d66ddb98f7cbebd06fe950e6 Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 2 Aug 2019 13:18:37 +0200
|
||||
Subject: [PATCH 1/7] Add missing xsl file to Makefile.am
|
||||
|
||||
In commit 4f3c02dc14300c0b8e51a55d627c57f73c108f64 it was forgotten to
|
||||
add the new file devhelp2.xsl to the Makefile to make sure it is
|
||||
include in the tar ball.
|
||||
---
|
||||
doc/manual/Makefile.am | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am
|
||||
index 39e1581..8b33fdd 100644
|
||||
--- a/doc/manual/Makefile.am
|
||||
+++ b/doc/manual/Makefile.am
|
||||
@@ -37,6 +37,7 @@ MANUAL_XSLT = \
|
||||
doc/manual/gdbus-fix-bugs.xsl \
|
||||
doc/manual/gtk-doc.xsl \
|
||||
doc/manual/version-greater-or-equal.xsl \
|
||||
+ doc/manual/devhelp2.xsl \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST += \
|
||||
--
|
||||
2.25.1
|
||||
|
||||
1500
0001-doc-make-sure-cross-reference-ids-are-predictable.patch
Normal file
1500
0001-doc-make-sure-cross-reference-ids-are-predictable.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,32 @@
|
||||
From 506887297ea33339d8ad8b274be643d220bf22f8 Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Thu, 28 Nov 2019 18:51:30 +0100
|
||||
Subject: [PATCH 2/7] configure: do not inherit DISTRO from the environment
|
||||
|
||||
The argument of the --with-distro configure option is stored in the
|
||||
variable DISTRO. If DISTRO is already set in the build environment it
|
||||
should not be used hence DISTRO must be cleared by the configure script
|
||||
if not set by --with-distro.
|
||||
|
||||
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1638396
|
||||
---
|
||||
configure.ac | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index e335247..a424a49 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -31,7 +31,8 @@ AC_ARG_WITH([distro],
|
||||
[AS_HELP_STRING([--with-distro],
|
||||
[Configure for a specific distribution (eg: redhat)]
|
||||
)],
|
||||
- [DISTRO=$withval])
|
||||
+ [DISTRO=$withval],
|
||||
+ [DISTRO=])
|
||||
|
||||
if test -z $DISTRO; then
|
||||
AC_CHECK_FILE(/etc/redhat-release, [DISTRO="redhat"])
|
||||
--
|
||||
2.25.1
|
||||
|
||||
25
0002-tools-remove-duplicated-va_start.patch
Normal file
25
0002-tools-remove-duplicated-va_start.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 6b41b3292bb826d90fd7986e4a66b20b6fb658b3 Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 28 Sep 2018 10:39:13 +0200
|
||||
Subject: [PATCH 2/7] tools: remove duplicated va_start()
|
||||
|
||||
---
|
||||
tools/realm.c | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/tools/realm.c b/tools/realm.c
|
||||
index ed8ab3e..4d76a94 100644
|
||||
--- a/tools/realm.c
|
||||
+++ b/tools/realm.c
|
||||
@@ -52,8 +52,6 @@ realm_print_error (const gchar *format,
|
||||
GString *message;
|
||||
va_list va;
|
||||
|
||||
- va_start (va, format);
|
||||
-
|
||||
message = g_string_new ("");
|
||||
g_string_append_printf (message, "%s: ", g_get_prgname ());
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
||||
75
0003-doc-extend-user-principal-section.patch
Normal file
75
0003-doc-extend-user-principal-section.patch
Normal file
@ -0,0 +1,75 @@
|
||||
From d6d1ce2f8b1c81903115b018973c61fc71235b7b Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 29 Nov 2019 18:10:03 +0100
|
||||
Subject: [PATCH 3/7] doc: extend user-principal section
|
||||
|
||||
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1643814
|
||||
---
|
||||
doc/manual/realm.xml | 21 +++++++++++++++++++--
|
||||
doc/manual/realmd.conf.xml | 15 ++++++++++-----
|
||||
2 files changed, 29 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/doc/manual/realm.xml b/doc/manual/realm.xml
|
||||
index 7b73331..55a7640 100644
|
||||
--- a/doc/manual/realm.xml
|
||||
+++ b/doc/manual/realm.xml
|
||||
@@ -238,10 +238,27 @@ $ realm join --user=admin --computer-ou=OU=Special domain.example.com
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>--user-principal=<parameter>host/name@REALM</parameter></option></term>
|
||||
- <listitem><para>Set the userPrincipalName field of the
|
||||
+ <listitem><para>Set the
|
||||
+ <option>userPrincipalName</option> field of the
|
||||
computer account to this kerberos principal. If you omit
|
||||
the value for this option, then a principal will be set
|
||||
- in the form of <literal>host/shortname@REALM</literal></para></listitem>
|
||||
+ based on the defaults of the membership software.</para>
|
||||
+ <para>AD makes a distinction between user and service
|
||||
+ principals. Only with user principals you can request a
|
||||
+ Kerberos Ticket-Granting-Ticket (TGT), i.e. only user
|
||||
+ principals can be used with the <command>kinit</command>
|
||||
+ command. By default the user principal and the canonical
|
||||
+ principal name of an AD computer account is
|
||||
+ <code>shortname$@AD.DOMAIN</code>, where shortname is
|
||||
+ the NetBIOS name which is limited to 15 characters.</para>
|
||||
+ <para>If there are applications which are not aware of
|
||||
+ the AD default and are using a hard-coded default
|
||||
+ principal the <option>--user-principal</option> can be
|
||||
+ used to make AD aware of this principal. Please note
|
||||
+ that <option>userPrincipalName</option> is a single
|
||||
+ value LDAP attribute, i.e. only one alternative user
|
||||
+ principal besides the AD default user principal can be
|
||||
+ set.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>--os-name=xxx</option></term>
|
||||
diff --git a/doc/manual/realmd.conf.xml b/doc/manual/realmd.conf.xml
|
||||
index f0b0879..a26a60c 100644
|
||||
--- a/doc/manual/realmd.conf.xml
|
||||
+++ b/doc/manual/realmd.conf.xml
|
||||
@@ -365,12 +365,17 @@ computer-name = SERVER01
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
- <term><option>user-prinicpal</option></term>
|
||||
+ <term><option>user-principal</option></term>
|
||||
<listitem>
|
||||
- <para>Set the <option>user-prinicpal</option> to <code>yes</code>
|
||||
- to create <option>userPrincipalName</option> attributes for the
|
||||
- computer account in the realm, in the form
|
||||
- <code>host/computer@REALM</code></para>
|
||||
+ <para>Set the <option>user-principal</option> to <code>yes</code>
|
||||
+ to create <option>userPrincipalName</option> attribute for the
|
||||
+ computer accounts in the realm. The exact value depends on the
|
||||
+ defaults of the used membership software. To have full control
|
||||
+ over the value please use the
|
||||
+ <option>--user-principal</option> option of the
|
||||
+ <command>realm</command> command, see
|
||||
+ <citerefentry><refentrytitle>realm</refentrytitle>
|
||||
+ <manvolnum>8</manvolnum></citerefentry> for details.</para>
|
||||
|
||||
<informalexample>
|
||||
<programlisting language="js">
|
||||
--
|
||||
2.25.1
|
||||
|
||||
33
0003-service-remove-dead-code.patch
Normal file
33
0003-service-remove-dead-code.patch
Normal file
@ -0,0 +1,33 @@
|
||||
From 4cd0cc0ace4a346444dd34e7f3c6a23fd654fef4 Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 28 Sep 2018 11:00:13 +0200
|
||||
Subject: [PATCH 3/7] service: remove dead code
|
||||
|
||||
---
|
||||
service/realm-samba.c | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/service/realm-samba.c b/service/realm-samba.c
|
||||
index 5cf2aa8..e2a3608 100644
|
||||
--- a/service/realm-samba.c
|
||||
+++ b/service/realm-samba.c
|
||||
@@ -180,7 +180,6 @@ on_join_do_winbind (GObject *source,
|
||||
GTask *task = G_TASK (user_data);
|
||||
EnrollClosure *enroll = g_task_get_task_data (task);
|
||||
RealmSamba *self = g_task_get_source_object (task);
|
||||
- GHashTable *settings = NULL;
|
||||
GError *error = NULL;
|
||||
const gchar *name;
|
||||
const gchar *computer_name;
|
||||
@@ -215,8 +214,6 @@ on_join_do_winbind (GObject *source,
|
||||
g_task_return_error (task, error);
|
||||
}
|
||||
|
||||
- if (settings)
|
||||
- g_hash_table_unref (settings);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
||||
26
0004-doc-fix-discover-name-only.patch
Normal file
26
0004-doc-fix-discover-name-only.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 878e40f5a3b50d37a0ed981a4f0872a9d5d99e6b Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 29 Nov 2019 18:49:15 +0100
|
||||
Subject: [PATCH 4/7] doc: fix discover name-only
|
||||
|
||||
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1625001
|
||||
---
|
||||
doc/manual/realmd.conf.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/doc/manual/realmd.conf.xml b/doc/manual/realmd.conf.xml
|
||||
index a26a60c..fc6a785 100644
|
||||
--- a/doc/manual/realmd.conf.xml
|
||||
+++ b/doc/manual/realmd.conf.xml
|
||||
@@ -308,7 +308,7 @@ DOMAIN\user:*:13445:13446:Name:/home/DOMAIN/user:/bin/bash
|
||||
|
||||
<informalexample>
|
||||
<screen>
|
||||
-$ <command>realm discover --name DOMAIN.example.com</command>
|
||||
+$ <command>realm discover --name-only DOMAIN.example.com</command>
|
||||
domain.example.com
|
||||
...
|
||||
</screen>
|
||||
--
|
||||
2.25.1
|
||||
|
||||
36
0004-service-check-return-value-of-fcntl.patch
Normal file
36
0004-service-check-return-value-of-fcntl.patch
Normal file
@ -0,0 +1,36 @@
|
||||
From f4636827818d514ebc2f73df2a55b22e7bc8ab89 Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 28 Sep 2018 11:00:30 +0200
|
||||
Subject: [PATCH 4/7] service: check return value of fcntl()
|
||||
|
||||
---
|
||||
service/realm-command.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/service/realm-command.c b/service/realm-command.c
|
||||
index 2fe02ab..5257caa 100644
|
||||
--- a/service/realm-command.c
|
||||
+++ b/service/realm-command.c
|
||||
@@ -361,6 +361,7 @@ on_unix_process_child_setup (gpointer user_data)
|
||||
int *child_fds = user_data;
|
||||
long val;
|
||||
guint i;
|
||||
+ int ret;
|
||||
|
||||
/*
|
||||
* Become a process leader in order to close the controlling terminal.
|
||||
@@ -378,7 +379,10 @@ on_unix_process_child_setup (gpointer user_data)
|
||||
for (i = 0; i < NUM_FDS; i++) {
|
||||
if (child_fds[i] >= 0) {
|
||||
val = fcntl (child_fds[i], F_GETFD);
|
||||
- fcntl (child_fds[i], F_SETFD, val & ~FD_CLOEXEC);
|
||||
+ ret = fcntl (child_fds[i], F_SETFD, val & ~FD_CLOEXEC);
|
||||
+ if (ret != 0) {
|
||||
+ /* ignore */
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
--
|
||||
2.25.1
|
||||
|
||||
46
0005-doc-add-see-also-to-man-pages.patch
Normal file
46
0005-doc-add-see-also-to-man-pages.patch
Normal file
@ -0,0 +1,46 @@
|
||||
From 799821650c538754aae842d400df75d3bd8864bf Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 29 Nov 2019 18:49:51 +0100
|
||||
Subject: [PATCH 5/7] doc: add see also to man pages
|
||||
|
||||
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1625001
|
||||
---
|
||||
doc/manual/realm.xml | 7 +++++++
|
||||
doc/manual/realmd.conf.xml | 7 +++++++
|
||||
2 files changed, 14 insertions(+)
|
||||
|
||||
diff --git a/doc/manual/realm.xml b/doc/manual/realm.xml
|
||||
index 55a7640..e5d4608 100644
|
||||
--- a/doc/manual/realm.xml
|
||||
+++ b/doc/manual/realm.xml
|
||||
@@ -440,4 +440,11 @@ $ realm deny --all
|
||||
|
||||
</refsect1>
|
||||
|
||||
+<refsect1 id='realm_see_also'>
|
||||
+ <title>SEE ALSO</title>
|
||||
+
|
||||
+ <para><citerefentry><refentrytitle>realmd.conf</refentrytitle>
|
||||
+ <manvolnum>5</manvolnum></citerefentry></para>
|
||||
+</refsect1>
|
||||
+
|
||||
</refentry>
|
||||
diff --git a/doc/manual/realmd.conf.xml b/doc/manual/realmd.conf.xml
|
||||
index fc6a785..1592291 100644
|
||||
--- a/doc/manual/realmd.conf.xml
|
||||
+++ b/doc/manual/realmd.conf.xml
|
||||
@@ -471,4 +471,11 @@ fully-qualified-names = no
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
+<refsect1 id='realmd_conf_see_also'>
|
||||
+ <title>SEE ALSO</title>
|
||||
+
|
||||
+ <para><citerefentry><refentrytitle>realm</refentrytitle>
|
||||
+ <manvolnum>8</manvolnum></citerefentry></para>
|
||||
+</refsect1>
|
||||
+
|
||||
</refentry>
|
||||
--
|
||||
2.25.1
|
||||
|
||||
39
0005-service-avoid-dereference-of-a-null-pointer.patch
Normal file
39
0005-service-avoid-dereference-of-a-null-pointer.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From 7a1711b180a746ba574bdbfc814ec706a474cda8 Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 28 Sep 2018 11:07:03 +0200
|
||||
Subject: [PATCH 5/7] service: avoid dereference of a null pointer
|
||||
|
||||
---
|
||||
service/realm-kerberos.c | 2 +-
|
||||
service/realm-provider.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/service/realm-kerberos.c b/service/realm-kerberos.c
|
||||
index 252e256..a8b3553 100644
|
||||
--- a/service/realm-kerberos.c
|
||||
+++ b/service/realm-kerberos.c
|
||||
@@ -720,7 +720,7 @@ realm_kerberos_get_disco (RealmKerberos *self)
|
||||
if (!disco->kerberos_realm)
|
||||
disco->kerberos_realm = g_strdup (realm_kerberos_get_realm_name (self));
|
||||
klass = REALM_KERBEROS_GET_CLASS (self);
|
||||
- if (klass->discover_myself)
|
||||
+ if (klass && klass->discover_myself)
|
||||
(klass->discover_myself) (self, disco);
|
||||
self->pv->disco = disco;
|
||||
}
|
||||
diff --git a/service/realm-provider.c b/service/realm-provider.c
|
||||
index 258e8e1..6d7cf96 100644
|
||||
--- a/service/realm-provider.c
|
||||
+++ b/service/realm-provider.c
|
||||
@@ -450,7 +450,7 @@ realm_provider_get_realms (RealmProvider *self)
|
||||
|
||||
g_return_val_if_fail (REALM_IS_PROVIDER (self), NULL);
|
||||
klass = REALM_PROVIDER_GET_CLASS (self);
|
||||
- g_return_val_if_fail (klass->get_realms != NULL, NULL);
|
||||
+ g_return_val_if_fail (klass != NULL && klass->get_realms != NULL, NULL);
|
||||
|
||||
return (klass->get_realms) (self);
|
||||
}
|
||||
--
|
||||
2.25.1
|
||||
|
||||
104
0006-doc-extend-description-of-config-handling.patch
Normal file
104
0006-doc-extend-description-of-config-handling.patch
Normal file
@ -0,0 +1,104 @@
|
||||
From 98a69ca00e3441128b181b59c06bb06e8c362360 Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 29 Nov 2019 21:57:02 +0100
|
||||
Subject: [PATCH 6/7] doc: extend description of config handling
|
||||
|
||||
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1625005
|
||||
---
|
||||
doc/manual/Makefile.am | 8 ++++++++
|
||||
doc/manual/realmd.conf.xml | 15 +++++++++++----
|
||||
doc/privatedir.xml.in | 1 +
|
||||
4 files changed, 21 insertions(+), 4 deletions(-)
|
||||
create mode 100644 doc/privatedir.xml.in
|
||||
|
||||
diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am
|
||||
index 8b33fdd..9812c45 100644
|
||||
--- a/doc/manual/Makefile.am
|
||||
+++ b/doc/manual/Makefile.am
|
||||
@@ -1,14 +1,20 @@
|
||||
+XSLTPROC_FLAGS = --path $(abs_builddir):$(abs_srcdir):$(abs_builddir)/doc
|
||||
|
||||
man8_MANS += \
|
||||
doc/manual/realm.8
|
||||
man5_MANS += \
|
||||
doc/manual/realmd.conf.5
|
||||
|
||||
+$(man5_MANS): doc/privatedir.xml
|
||||
+
|
||||
MAN_IN_FILES = \
|
||||
$(man8_MANS:.8=.xml) \
|
||||
$(man5_MANS:.5=.xml) \
|
||||
$(NULL)
|
||||
|
||||
+doc/privatedir.xml: doc/privatedir.xml.in
|
||||
+ $(V_SED) $(MKDIR_P) $(dir $@) && $(SED_SUBST) $< > $@
|
||||
+
|
||||
MANUAL_DOCBOOK = doc/manual/realmd-docs.xml
|
||||
|
||||
MANUAL_INCLUDES = \
|
||||
@@ -41,6 +47,7 @@ MANUAL_XSLT = \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST += \
|
||||
+ doc/privatedir.xml.in \
|
||||
$(MANUAL_DOCBOOK) \
|
||||
$(MANUAL_INCLUDES) \
|
||||
$(MAN_IN_FILES) \
|
||||
@@ -50,6 +57,7 @@ EXTRA_DIST += \
|
||||
|
||||
CLEANFILES += \
|
||||
realmd-org.freedesktop.realmd.generated \
|
||||
+ doc/privatedir.xml \
|
||||
$(DBUS_DOC_GENERATED) \
|
||||
$(DBUS_ESCAPED) \
|
||||
$(man8_MANS) \
|
||||
diff --git a/doc/manual/realmd.conf.xml b/doc/manual/realmd.conf.xml
|
||||
index 1592291..9062252 100644
|
||||
--- a/doc/manual/realmd.conf.xml
|
||||
+++ b/doc/manual/realmd.conf.xml
|
||||
@@ -1,6 +1,9 @@
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
- "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
+ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
|
||||
+[
|
||||
+<!ENTITY privatedir SYSTEM "privatedir.xml">
|
||||
+]>
|
||||
|
||||
<refentry id="realmd-conf">
|
||||
|
||||
@@ -35,7 +38,9 @@
|
||||
to act in specific ways. This is done by placing settings in a
|
||||
<filename>/etc/realmd.conf</filename>. This file does not exist by
|
||||
default. The syntax of this file is the same as an INI file or
|
||||
- Desktop Entry file.</para>
|
||||
+ Desktop Entry file. If the file is changed and
|
||||
+ <command>realmd</command> is running <command>realmd</command> must be
|
||||
+ restarted to read the new values.</para>
|
||||
|
||||
<para>In general, settings in this file only apply at the point of
|
||||
joining a domain or realm. Once the realm has been setup the settings
|
||||
@@ -46,8 +51,10 @@
|
||||
|
||||
<para>Only specify the settings you wish to override in the
|
||||
<filename>/etc/realmd.conf</filename> file. Settings not specified will
|
||||
- be loaded from their packaged defaults. Only override the settings
|
||||
- below. You may find other settings if you look through the
|
||||
+ be loaded from their packaged defaults which can be found in
|
||||
+ <filename>&privatedir;/realmd-defaults.conf</filename> and
|
||||
+ <filename>&privatedir;/realmd-distro.conf</filename>. Only override the
|
||||
+ settings below. You may find other settings if you look through the
|
||||
<command>realmd</command> source code. However these are not guaranteed
|
||||
to remain stable.</para>
|
||||
|
||||
diff --git a/doc/privatedir.xml.in b/doc/privatedir.xml.in
|
||||
new file mode 100644
|
||||
index 0000000..7f71afe
|
||||
--- /dev/null
|
||||
+++ b/doc/privatedir.xml.in
|
||||
@@ -0,0 +1 @@
|
||||
+@privatedir@
|
||||
\ No newline at end of file
|
||||
--
|
||||
2.25.1
|
||||
|
||||
24
0006-service-avoid-dereferencing-a-NULL-pointer.patch
Normal file
24
0006-service-avoid-dereferencing-a-NULL-pointer.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From 9675cc5b6318f848ddf7237d50d02606e16d8003 Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 28 Sep 2018 11:17:07 +0200
|
||||
Subject: [PATCH 6/7] service: avoid dereferencing a NULL pointer
|
||||
|
||||
---
|
||||
service/realm-kerberos.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/service/realm-kerberos.c b/service/realm-kerberos.c
|
||||
index a8b3553..3294932 100644
|
||||
--- a/service/realm-kerberos.c
|
||||
+++ b/service/realm-kerberos.c
|
||||
@@ -251,6 +251,7 @@ is_credential_supported (RealmKerberosMembershipIface *iface,
|
||||
gboolean found = FALSE;
|
||||
gint i;
|
||||
|
||||
+ g_assert (iface != NULL);
|
||||
g_assert (iface->join_creds != NULL);
|
||||
g_assert (iface->leave_creds != NULL);
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
||||
30
0007-service-use-kerberos-method-secrets-and-keytab.patch
Normal file
30
0007-service-use-kerberos-method-secrets-and-keytab.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From 517fa766782421302da827278ca17e6b2ad57da3 Mon Sep 17 00:00:00 2001
|
||||
From: Sumit Bose <sbose@redhat.com>
|
||||
Date: Fri, 21 Feb 2020 14:06:16 +0100
|
||||
Subject: [PATCH 7/7] service: use "kerberos method" "secrets and keytab"
|
||||
|
||||
When using Samba with Winbind the host password stored in secrets.tdb is
|
||||
still important so the "secrets and keytab" should be the preferred
|
||||
"kerberos method".
|
||||
|
||||
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1801195
|
||||
---
|
||||
service/realm-samba.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/service/realm-samba.c b/service/realm-samba.c
|
||||
index e2a3608..4940b38 100644
|
||||
--- a/service/realm-samba.c
|
||||
+++ b/service/realm-samba.c
|
||||
@@ -200,7 +200,7 @@ on_join_do_winbind (GObject *source,
|
||||
"template shell", realm_settings_string ("users", "default-shell"),
|
||||
"netbios name", computer_name,
|
||||
"password server", enroll->disco->explicit_server,
|
||||
- "kerberos method", "system keytab",
|
||||
+ "kerberos method", "secrets and keytab",
|
||||
NULL);
|
||||
}
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
||||
24
realmd.spec
24
realmd.spec
@ -1,9 +1,9 @@
|
||||
Name: realmd
|
||||
Version: 0.16.3
|
||||
Release: 22%{?dist}
|
||||
Release: 23%{?dist}
|
||||
Summary: Kerberos realm enrollment service
|
||||
License: LGPLv2+
|
||||
URL: http://cgit.freedesktop.org/realmd/realmd/
|
||||
URL: https://freedesktop.org/software/realmd/
|
||||
Source0: http://www.freedesktop.org/software/realmd/releases/realmd-%{version}.tar.gz
|
||||
|
||||
Patch1: 0001-LDAP-don-t-close-LDAP-socket-twice.patch
|
||||
@ -30,6 +30,22 @@ Patch15: 0001-tests-ignore-order-in-test_update_domain.patch
|
||||
# Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1736578
|
||||
Patch16: 0001-Remove-support-for-deprecated-gtester-format.patch
|
||||
|
||||
# Sync with upstream
|
||||
Patch17: 0001-doc-make-sure-cross-reference-ids-are-predictable.patch
|
||||
Patch18: 0002-tools-remove-duplicated-va_start.patch
|
||||
Patch19: 0003-service-remove-dead-code.patch
|
||||
Patch20: 0004-service-check-return-value-of-fcntl.patch
|
||||
Patch21: 0005-service-avoid-dereference-of-a-null-pointer.patch
|
||||
Patch22: 0006-service-avoid-dereferencing-a-NULL-pointer.patch
|
||||
|
||||
Patch23: 0001-Add-missing-xsl-file-to-Makefile.am.patch
|
||||
Patch24: 0002-configure-do-not-inherit-DISTRO-from-the-environment.patch
|
||||
Patch25: 0003-doc-extend-user-principal-section.patch
|
||||
Patch26: 0004-doc-fix-discover-name-only.patch
|
||||
Patch27: 0005-doc-add-see-also-to-man-pages.patch
|
||||
Patch28: 0006-doc-extend-description-of-config-handling.patch
|
||||
Patch29: 0007-service-use-kerberos-method-secrets-and-keytab.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: automake
|
||||
BuildRequires: autoconf
|
||||
@ -97,6 +113,10 @@ make install DESTDIR=%{buildroot}
|
||||
%doc ChangeLog
|
||||
|
||||
%changelog
|
||||
* Wed Mar 18 2020 Sumit Bose <sbose@redhat.com> - 0.16.3-23
|
||||
- Sync with latest upstream patches and fix package URL
|
||||
Resolves: rhbz#1800897
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.3-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user