summaryrefslogtreecommitdiff
path: root/lib/talloc/wscript
AgeCommit message (Collapse)AuthorFilesLines
2016-03-08talloc: Bump version numberAndrew Bartlett1-1/+1
The removal of the macros and replacement with proper functions is a API, but not ABI break. Only code that incorrectly used the structure either in function signatures or to access the members directly will need to be modified before being built against this version of talloc. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2016-03-08talloc: add _pytalloc_get_ptr/_pytalloc_get_mem_ctx helper functionsAndrew Bartlett1-1/+1
This allows us to check which type is involved, and dereference that type correctly Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2016-03-08talloc: Improve testsuite by avoiding path issuesAndrew Bartlett1-1/+2
We now rely on waf to tell us where the helper binary is. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2016-01-13talloc: Only set public headers field when installing as a public library.Jelmer Vernooij1-2/+2
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
2015-11-05talloc: version 2.1.5talloc-2.1.5Stefan Metzmacher1-1/+1
* Minor build fixes Signed-off-by: Stefan Metzmacher <metze@samba.org>
2015-10-09talloc: Test that talloc magic differs between processes.talloc-2.1.4Adrian Cochrane1-1/+10
Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 9 23:15:06 CEST 2015 on sn-devel-104
2015-10-09talloc: Increment minor version due to added talloc_test_get_magic.Adrian Cochrane1-1/+1
Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-10-09lib/talloc: Disrupt buffer overflow attacks on Samba by using random magicAndrew Bartlett1-0/+3
By setting the talloc magic to a random value, we make it much harder to overwrite a talloc_chunk in a valid way with a simple buffer overflow. The flags are placed before more senstive variables so they have to be overwritten first. Inspired by the exploit in: http://blog.csnc.ch/wp-content/uploads/2012/07/sambaexploit_v1.0.pdf Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-07-21talloc: version 2.1.3talloc-2.1.3Stefan Metzmacher1-1/+1
* improved python3 bindings * documentation fixes regarding talloc_reference() and talloc_unlink() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2015-05-19pytalloc: Test for all Python versionsPetr Viktorin1-9/+1
Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2015-05-19buildtools: Add a helper to iterate through Python environmentsPetr Viktorin1-62/+27
This prevents code duplication to ensure the "extrapython" build is the same as the normal one. Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2015-05-19pytalloc: Build for two Python versions at oncePetr Viktorin1-0/+37
Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2015-05-19pytalloc: Port to Python 3Petr Viktorin1-5/+5
- Use native string for repr - Use rich comparison Removes the deprecated tp_compare in favor of tp_richcompare. Disparate types cannot be compared (except for == and !=), and True or False objects are returned explicitly. - Use Py_TYPE instead of ob_type This changed to conform to C aliasing rules, see http://legacy.python.org/dev/peps/pep-3123/ - Don't provide CObject creation function A PyCapsule based replacement would be possible, but might not be necessary considering the function is not used much. - Use new-style module initialization Build changes: - Use ABI flag in the lib name and pkg-config template - Use the SAMBA_CHECK_PYTHON macro for finding Python Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2015-04-24pytalloc: Add testsPetr Viktorin1-1/+18
Add tests for pytalloc. Since talloc objects can't be created from Python, a C extension with helpers is added. Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2015-03-26Move waf into third_party/.Jelmer Vernooij1-1/+2
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-03-17lib: talloc: tests - add test_pthread_talloc_passing() testing talloc in a ↵Jeremy Allison1-1/+5
pthread environment. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Simo <simo@samba.org> Reviewed-by: "Stefan (metze) Metzmacher" <metze@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 17 19:23:29 CET 2015 on sn-devel-104
2015-03-09talloc: version 2.1.2talloc-2.1.2Stefan Metzmacher1-1/+1
Changes: - Allow destructors to reparent the object - Allow destructors to remove itself - Build improvements Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
2014-06-20talloc:build: improve detection of srcdirMichael Adam1-1/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2014-05-16talloc: version 2.1.1talloc-2.1.1Stefan Metzmacher1-1/+1
Changes: - documentation updates - a fix for pytalloc-util.pc - performance improvements here and there - fixed compiler warnings Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri May 16 19:51:26 CEST 2014 on sn-devel-104
2013-09-08talloc: Add talloc_pooled_objectVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2013-05-14talloc: only provide the --enable-talloc-compat1 in standalone buildStefan Metzmacher1-4/+6
The compat library is already only built in standalone build, so we need the configure option also only in the standalone build. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2012-12-03lib/talloc: Move manpage to man/.Karolin Seeger1-1/+1
Trying to be more consistent. Karolin Reviewed-by: Andreas Schneider <asn@samba.org>
2012-10-05Add memory limiting capability to tallocSimo Sorce1-1/+1
By calling talloc_set_memlimit() we can now set a max memory limit for a whole talloc hierarchy. ANy attempt to allocate memory beyond the max allowed for the whole hierarchy wil cause an allocation failure. Stealing memory correctly accounts for used memory in the old and the new hierarchy but exceeding the memory limit in the new parent will not cause a failure.
2011-11-13waf: Factor checking for undefined symbol flags out into separate method.Jelmer Vernooij1-0/+2
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 13 19:38:38 CET 2011 on sn-devel-104
2011-11-13talloc: Only check for pkg-config file when checking for system talloc.Jelmer Vernooij1-2/+2
2011-11-13pytalloc-util: Don't mark as python extension, use pyembed instead.Jelmer Vernooij1-1/+1
2011-10-22talloc: simplifiy the logic to build talloc_testsuite in the standalone buildStefan Metzmacher1-8/+6
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 22 13:15:52 CEST 2011 on sn-devel-104
2011-09-15talloc: change version to 2.0.7talloc-2.0.7Stefan Metzmacher1-1/+1
The version change is needed because the ABI file of the pytalloc code was fixed. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 22:32:59 CEST 2011 on sn-devel-104
2011-08-21talloc: Fix talloc-compat pc files/headers.Jelmer Vernooij1-1/+3
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Aug 21 04:53:07 CEST 2011 on sn-devel-104
2011-08-21wafsamba: Only install .pc files if libraries are public.Jelmer Vernooij1-6/+3
2011-08-10pytalloc: Use consistent prefix for functions, add ABI file.Jelmer Vernooij1-0/+3
2011-08-09talloc: prepare for 2.0.6 releaseAndrew Tridgell1-1/+1
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Aug 9 04:03:49 CEST 2011 on sn-devel-104
2011-07-26talloc: Support PYTHON environment variable.Jelmer Vernooij1-0/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Jul 26 22:21:30 CEST 2011 on sn-devel-104
2011-03-15lib: don't install public headers if a private libraryAndrew Tridgell1-0/+1
for talloc/tevent/tdb, only install headers if we are doing a standalone build
2011-03-15talloc: use public_headers to install talloc.h and pytalloc.hAndrew Tridgell1-2/+2
this allows them to be included in the test_headers.h generated header
2011-01-05talloc: change version to 2.0.5 after a critical bugfixStefan Metzmacher1-1/+1
metze
2010-12-11talloc: Add ability to generate Python docs using pydoctor.Jelmer Vernooij1-0/+7
2010-12-10build: introduce SAMBA_CHECK_PYTHON_HEADERSMatthieu Patou1-1/+1
This function is a wrapper around waf's check_python_header. It avoids searching more than once for the headers bringing a small speed improvement and a better lisibility of the logs. But it's mainly to avoid a nasty bug when python libraries are in path pointed by python_LIBPL (ie. /usr/local/lib/python2.6/config/) instead of python_LIBDIR (ie. /usr/local/lib). On the first call waf will correctly find that in order to link with python libs it needs to add -L$python_LIBPL. But on the next calls of check_python_headers, waf will use both the current library path value (ie. -L/usr/local/lib/python2.6/config) and -L$python_LIBDIR (ie. /usr/local/lib/) which will make him beleive that python libraries are in $python_LIBDIR which at the end will make the final link test fails in check_python_headers as it will not use the good directory. So by avoiding calling check_python_headers more than once we avoid making waf fooling itself.
2010-12-09talloc: pytalloc-util should not have an ABI-file yetStefan Metzmacher1-2/+0
Somehow I forgot to remove this after discussion with Jelmer. metze
2010-12-09waf: remove the restriction that private libraries must not have a vnumAndrew Tridgell1-4/+2
we need the vnum for ABI checking for public libraries built as private libraries when bundled Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Dec 9 12:47:41 CET 2010 on sn-devel-104
2010-12-09waf-abi: auto-generate per-symbol versions from ABI filesAndrew Tridgell1-2/+2
This changes our version-script generation to use the ABI files that are saved in git with each version number change of our public libraries. We use these ABI files to generate a linker version script that gives the exact version number that each symbol was introduced. This provides us with automatic fine grained symbol versioning. Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-08talloc: build pytalloc-util with the same logic as libtallocStefan Metzmacher1-1/+4
metze
2010-12-03talloc: Bump version number after pytalloc changes.Jelmer Vernooij1-1/+1
2010-11-05talloc: Add python talloc module, move convenience functions to it.Jelmer Vernooij1-1/+6
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Nov 5 02:48:21 UTC 2010 on sn-devel-104
2010-11-05talloc: rename pytalloc.c to pytalloc_util.cJelmer Vernooij1-1/+1
2010-11-03waf: added reconfigure targets to our librariesAndrew Tridgell1-0/+5
This allows you to do "make reconfigure" to re-run configure only if needed
2010-11-01talloc: Install pytalloc.h.Jelmer Vernooij1-0/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Nov 1 17:25:07 UTC 2010 on sn-devel-104
2010-10-30talloc: Fix manual pages in standalone build.Jelmer Vernooij1-2/+1
2010-10-27talloc: fix waf build for libtalloc-compat1Stefan Metzmacher1-4/+4
We need to use 'libtalloc.so.1' as soname, otherwise the compat library is useless. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Oct 27 03:53:21 UTC 2010 on sn-devel-104
2010-10-26talloc: change pytalloc-util to be a public library.Jelmer Vernooij1-1/+2