1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/buildtools/wafsamba
Douglas Bagnall 068b366709 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>
2024-05-31 00:25:33 +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 Augment library_flags() to return libraries 2024-05-10 00:26:35 +00:00
samba_abi.py buildtools: Remove semicolons 2023-10-13 03:50:31 +00:00
samba_autoconf.py Improve CHECK_LIB interaction with CHECK_PKG 2024-05-10 00:26:35 +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 build: Allow --private-libraries to include a default 2024-03-01 02:41: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 Augment library_flags() to return libraries 2024-05-10 00:26:35 +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 buildtools: remove Python2 compatibility 2024-05-31 00:25:33 +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-05-31 00:25:33 +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: remove Python2 compatibility 2024-05-31 00:25:33 +00:00
samba_version.py build: Add --vendor-name --vendor-patch-revision options to ./configure 2024-05-31 00:25:33 +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 build: Allow --with-ldbmodulesdir to override location of LDB modules 2024-03-01 02:41:37 +00:00
wscript build: Allow --private-libraries to include a default 2024-03-01 02:41:36 +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