summaryrefslogtreecommitdiffstats
path: root/package/samba4/0007-disable-libbsd.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2015-01-15 11:03:19 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-01-16 22:37:56 +0100
commit3ac6390abd6dd304987116bd35ee4f72361dbb12 (patch)
treec0d7cd8e3efd06222dd914a7a0dfbcb3b10f6558 /package/samba4/0007-disable-libbsd.patch
parent846f64df8b18bd3bc8178dfe7ce64312d340107b (diff)
downloadbuildroot-3ac6390abd6dd304987116bd35ee4f72361dbb12.tar.gz
buildroot-3ac6390abd6dd304987116bd35ee4f72361dbb12.zip
samba4: security bump to version 4.1.16
Fixes CVE-2014-8143 - dsdb-samldb: Check for extended access rights before we allow changes to userAccountControl. Also rename patches to new naming convention. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/samba4/0007-disable-libbsd.patch')
-rw-r--r--package/samba4/0007-disable-libbsd.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/samba4/0007-disable-libbsd.patch b/package/samba4/0007-disable-libbsd.patch
new file mode 100644
index 0000000000..b29a812012
--- /dev/null
+++ b/package/samba4/0007-disable-libbsd.patch
@@ -0,0 +1,26 @@
+Disable libbsd support, samba4 uses a global config.h for its own
+codebase and that of heimdal (when building with builtin).
+This causes redefinition conflicts for link(2) when both standard unistd.h
+and bsd/unistd.h get included.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura samba-4.1.7.orig/lib/replace/wscript samba-4.1.7/lib/replace/wscript
+--- samba-4.1.7.orig/lib/replace/wscript 2014-04-17 04:59:14.000000000 -0300
++++ samba-4.1.7/lib/replace/wscript 2014-05-19 09:17:25.561947774 -0300
+@@ -253,15 +253,6 @@
+ conf.CHECK_FUNCS('strtouq strtoll __strtoll strtoq memalign posix_memalign')
+ conf.CHECK_FUNCS('prctl')
+
+- # libbsd on some platforms provides strlcpy and strlcat
+- if not conf.CHECK_FUNCS('strlcpy strlcat'):
+- conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
+- checklibc=True)
+- if not conf.CHECK_FUNCS('getpeereid'):
+- conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
+- if not conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h'):
+- conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h')
+-
+ conf.CHECK_CODE('''
+ struct ucred cred;
+ socklen_t cred_len;
OpenPOWER on IntegriCloud