1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/buildtools/wafsamba
Douglas Bagnall e7c132a4a2 buildtools:pidl: avoid hash randomisation in pidl
Like many languages, Perl uses has randomisation to prevent nasty
users using crafted values that hash to the same number to effect a
denial of service. This means the traversal order of perl HASH tables
is different every time.

The IDL handed to pidl is trusted, so we don't really need
randomisation, but we do want to be sure the build is the same every
time.

I am not aware of hash randomisation causing problems, but it seems
prudent to avoid it.

We do a similar thing with PYTHONHASHSEED for the entire build.

Thanks to Freexian and the Debian LTS project for sponsoring this work.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13213

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 068b366709)
2024-06-10 13:24:16 +00:00
..
tests python compat: remove StringIO 2020-08-11 16:37:35 +00:00
__init__.py waf: Add initial unit test for samba_utils. 2012-02-12 18:44:09 +01:00
configure_file.py python: Don't use deprecated escape sequences 2023-01-20 09:06:49 +00:00
generic_cc.py wafsamba: fix generic_cc.py to work with waf 2 2018-09-10 19:28:15 +02:00
pkgconfig.py buildtools: Fix comments and documentation 2023-08-30 02:15:28 +00:00
README
samba3.py HEIMDAL: move code from source4/heimdal* to third_party/heimdal* 2022-01-19 21:41:59 +00:00
samba_abi.py buildtools: Remove semicolons 2023-10-13 03:50:31 +00:00
samba_autoconf.py buildtools: Use correct variable in error message 2023-12-21 20:21:34 +00:00
samba_autoproto.py build: Remove workaround for missing os.path.relpath in Python < 2.6 2019-11-13 08:42:30 +00:00
samba_bundled.py wafsamba: fix the usage of --private-extension-exception 2024-01-04 11:39:36 +00:00
samba_conftests.py buildtools: Remove semicolons 2023-10-13 03:50:31 +00:00
samba_cross.py python: Don't use deprecated escape sequences 2022-06-14 07:21:29 +00:00
samba_deps.py buildtools: Fix comments and documentation 2023-08-30 02:15:28 +00:00
samba_dist.py wafsamba: add support git worktree to vcs_dir_contents() 2021-08-12 08:07:29 +00:00
samba_git.py build:wafsamba: Fix TypeError in read_submodule_status() 2023-05-09 01:59:32 +00:00
samba_headers.py buildtools: Fix code spelling 2023-03-28 09:33:31 +00:00
samba_install.py buildtools: Fix comments and documentation 2023-08-30 02:15:28 +00:00
samba_patterns.py VERSION: move COPYRIGHT_STARTUP_MESSAGE as SAMBA_COPYRIGHT_STRING into version.h 2023-12-15 10:44:42 +00:00
samba_perl.py buildtools: Remove semicolons 2023-10-13 03:50:31 +00:00
samba_pidl.py buildtools:pidl: avoid hash randomisation in pidl 2024-06-10 13:24:16 +00:00
samba_python.py build: Make Python 3.6 the minimum to build now oss-fuzz is upgraded 2021-09-13 04:53:32 +00:00
samba_third_party.py third_party: Update socket_wrapper to version 1.4.2 2023-06-29 16:06:11 +00:00
samba_utils.py buildtools: Correctly raise exception 2023-10-17 03:19:38 +00:00
samba_version.py VERSION: move COPYRIGHT_STARTUP_MESSAGE as SAMBA_COPYRIGHT_STRING into version.h 2023-12-15 10:44:42 +00:00
samba_waf18.py buildtools: Fix code spelling 2023-03-28 09:33:31 +00:00
samba_wildcard.py Suggest running './configure' rather than 'waf configure'. 2021-03-01 04:56:15 +00:00
stale_files.py buildtools: Properly set global variable 2023-08-30 02:15:28 +00:00
symbols.py buildtools: Fix code spelling 2023-03-28 09:33:31 +00:00
test_duplicate_symbol.sh wafsamba: let test_duplicate_symbol.sh export PYTHONHASHSEED=1 2022-03-29 22:32:32 +00:00
wafsamba.py wafsamba: introduce SAMBA_LIBRARY(force_unversioned=False) 2024-01-04 11:39:36 +00:00
wscript buildtools: Fix comments and documentation 2023-08-30 02:15:28 +00:00

This is a set of waf 'tools' to help make building the Samba
components easier, by having common functions in one place. This gives
us a more consistent build, and ensures that our project rules are
obeyed


TODO:
	see http://wiki.samba.org/index.php/Waf