1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
samba-mirror/source4
Aaron Haslett 7f4bc0ea81 partition: correcting lock ordering
A schema reading bug was traced to a lock ordering issue in partition.c.
This patch fixes the problem by:
1. Releasing locks/transactions in the order they were acquired.
2. Always lock/start_trans on metadata.tdb first, before any other
databases, and release it last, after all others. This is so that we are
never exposed to MDB's lock semantics, which we don't support.

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-07-24 05:50:23 +00:00
..
auth s4/auth/kerberos: clang: Fix Value stored to 'code' is never read 2019-07-24 04:19:27 +00:00
build/pasn1
cldap_server source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
client s4:cifsdd: Use C99 initializers for cifsdd argdef 2019-01-28 10:29:26 +01:00
cluster dbwrap: Remove calls to loadparm 2018-04-24 01:53:19 +02:00
dns_server pyldb: rename pyldb_Dn_AsDn() to pyldb_Dn_AS_DN() 2019-07-10 04:32:13 +00:00
dsdb partition: correcting lock ordering 2019-07-24 05:50:23 +00:00
echo_server s4 echo_server: Enable prefork process model 2019-07-16 08:13:12 +00:00
heimdal s4 heimdal_build: Fix static heimdal builds with replacement closefrom() 2019-07-05 03:33:19 +00:00
heimdal_build s4 heimdal_build: Fix static heimdal builds with replacement closefrom() 2019-07-05 03:33:19 +00:00
include lib: Remove global xfile.h includes 2016-11-20 06:23:19 +01:00
kdc auth auth_log: csbuild unused parm unix_username 2019-06-13 07:16:22 +00:00
ldap_server ldap_server: Regression in 0559430ab6 2019-07-11 05:25:26 +00:00
lib source4: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
libcli s4/libcli/raw: Fix 'Value stored to 'p' is never read' 2019-07-16 22:52:24 +00:00
libnet s4/libnet: Fix joining a Windows pre-2008R2 DC 2019-07-04 22:49:23 +00:00
librpc dcerpc: use anon creds for unknown transport 2019-07-22 23:37:56 +00:00
nbt_server source4: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
ntp_signd lib/crypto: move gnutls error wrapper to own subsystem 2019-06-27 12:54:22 +00:00
ntvfs ntvfs: Remove now unused functions 2019-06-26 04:12:32 +00:00
param py3: Remove duplicated PyUnicode_Check() after the py3 compat macros were removed 2019-06-24 18:48:53 +00:00
rpc_server source4: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
script PY3: change shebang to python3 in source4/dsdb dir 2018-12-14 14:40:20 +01:00
scripting s4/scripting/smbstatus: begone 2019-07-05 01:05:21 +00:00
selftest gp_inf: Read/write files with a UTF-16LE BOM in GptTmpl.inf 2019-07-19 02:20:47 +00:00
setup selftest: schema version check in provision test 2019-06-26 05:31:03 +00:00
smb_server s4/smb_server/smb: cppcheck: Fix uninitvar & uninitStructMember errors 2019-06-04 22:13:07 +00:00
smbd s4/smdb: cppcheck: fix nullPointer: Possible null pointer dereference warning. 2019-06-04 22:13:07 +00:00
torture s4/torture: add a vfs_fruit unconversion test 2019-07-12 21:31:30 +00:00
utils s4:utils: Use gnutls SHA256 in oLschema2ldif 2019-04-30 23:18:27 +00:00
winbind s4-winbindd: Removed unused wb_utils.c 2019-05-06 05:46:11 +00:00
wrepl_server source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
.clang_complete
.valgrind_suppressions
wscript_build Do not install smbclient4 and nmblookup4 2014-04-15 03:25:13 +02:00