From 8e13a23ef5407c2f3413954806056bec2286d26b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 6 Apr 2017 16:12:20 +0200 Subject: [PATCH] Fix nss_wins crash resolves: #1364666 --- samba-4.5.9-fix_nss_wins_crash.patch | 35 ++++++++++++++++++++++++++++ samba.spec | 8 ++++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 samba-4.5.9-fix_nss_wins_crash.patch diff --git a/samba-4.5.9-fix_nss_wins_crash.patch b/samba-4.5.9-fix_nss_wins_crash.patch new file mode 100644 index 0000000..370d8d8 --- /dev/null +++ b/samba-4.5.9-fix_nss_wins_crash.patch @@ -0,0 +1,35 @@ +From 7b3e8229e7a95429c297f7f258f00fdb7cd85216 Mon Sep 17 00:00:00 2001 +From: Andreas Schneider +Date: Mon, 19 Sep 2016 16:21:31 +0200 +Subject: [PATCH] waf: Explicitly link libreplace against libnss_wins.so + +If we do not specify replace as a depencency here, it will not link to +libreplace using an rpath. + +BUG: https://bugzilla.samba.org/show_bug.cgi?id=12277 + +Signed-off-by: Andreas Schneider +Reviewed-by: Jeremy Allison +Reviewed-by: Jim McDonough + +(cherry picked from commit d8a5565ae647352d11d622bd4e73ff4568678a7c) +--- + nsswitch/wscript_build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build +index f286896..ab8f8ea 100644 +--- a/nsswitch/wscript_build ++++ b/nsswitch/wscript_build +@@ -42,7 +42,7 @@ if (Utils.unversioned_sys_platform() == 'linux' or (host_os.rfind('gnu') > -1)): + bld.SAMBA3_LIBRARY('nss_wins', + keep_underscore=True, + source='wins.c', +- deps='''wbclient''', ++ deps='wbclient replace', + public_headers=[], + public_headers_install=False, + pc_files=[], +-- +2.10.0 + diff --git a/samba.spec b/samba.spec index f003480..e5c502c 100644 --- a/samba.spec +++ b/samba.spec @@ -6,7 +6,7 @@ # ctdb is enabled by default, you can disable it with: --without clustering %bcond_without clustering -%define main_release 0 +%define main_release 1 %define samba_version 4.5.8 %define talloc_version 2.1.8 @@ -106,6 +106,8 @@ Source6: samba.pamd Source200: README.dc Source201: README.downgrade +Patch0: samba-4.5.9-fix_nss_wins_crash.patch + Requires(pre): /usr/sbin/groupadd Requires(post): systemd Requires(preun): systemd @@ -2550,8 +2552,12 @@ rm -rf %{buildroot} %endif # with_clustering_support %changelog +* Thu Apr 06 2017 Andreas Schneider - 4.5.8-1 +- resolves: #1364666 - Fix nss_wins crash + * Fri Mar 31 2017 Guenther Deschner - 4.5.8-0 - Update to Samba 4.5.8 + - related: #1435156 - Security fix for CVE-2017-2619 - resolves: #1436145