[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 822f8cd mit_samba: Fix the MIT KDC build with the latest changes from 854ea4e s3: VFS: Change SMB_VFS_GETXATTR to use const struct smb_filename * instead of const char *. https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 822f8cdfeaa632444c84a845bcd5916806e70630 Author: Andreas SchneiderDate: Tue May 30 13:58:43 2017 +0200 mit_samba: Fix the MIT KDC build with the latest changes Signed-off-by: Andreas Schneider Reviewed-by: Garming Sam Autobuild-User(master): Garming Sam Autobuild-Date(master): Thu Jun 1 07:12:47 CEST 2017 on sn-devel-144 --- Summary of changes: source4/kdc/mit_samba.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) Changeset truncated at 500 lines: diff --git a/source4/kdc/mit_samba.c b/source4/kdc/mit_samba.c index 3dd3a76..1cd6750 100644 --- a/source4/kdc/mit_samba.c +++ b/source4/kdc/mit_samba.c @@ -1127,6 +1127,7 @@ out: void mit_samba_zero_bad_password_count(krb5_db_entry *db_entry) { + struct netr_SendToSamBase *send_to_sam = NULL; struct samba_kdc_entry *p; struct ldb_dn *domain_dn; @@ -1137,7 +1138,9 @@ void mit_samba_zero_bad_password_count(krb5_db_entry *db_entry) authsam_logon_success_accounting(p->kdc_db_ctx->samdb, p->msg, domain_dn, -true); +true, +_to_sam); + /* TODO: RODC support */ } -- Samba Shared Repository
autobuild[sn-devel-144]: intermittent test failure detected
The autobuild test system (on sn-devel-144) has detected an intermittent failing test in the current master tree. The autobuild log of the failure is available here: http://git.samba.org/autobuild.flakey.sn-devel-144/2017-06-01-0357/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-144/2017-06-01-0357/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-144/2017-06-01-0357/samba.stdout The top commit at the time of the failure was: commit 7259661467776a76c4fa3aabaf1ae8a3d531e506 Author: Andrew BartlettDate: Fri May 12 01:55:45 2017 +0200 dsdb: Use ldb_handle_use_global_event_context for rootdse modifies The modify operations on the rootDSE turn into IRPC messages, and these need to be handled on the global event context, not the per-operation context Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Reviewed-by: Garming Sam Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed May 31 10:47:46 CEST 2017 on sn-devel-144
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 854ea4e s3: VFS: Change SMB_VFS_GETXATTR to use const struct smb_filename * instead of const char *. via 48956fa s3: VFS: Change SMB_VFS_SETXATTR to use const struct smb_filename * instead of const char *. via 12b801d s3: VFS: Change SMB_VFS_REMOVEXATTR to use const struct smb_filename * instead of const char *. via 892476b s3: VFS: Change SMB_VFS_LISTXATTR to use const struct smb_filename * instead of const char *. via aada948 s3: VFS: Change SMB_VFS_SYS_ACL_SET_FILE to use const struct smb_filename * instead of const char *. via f5dd864 s3: VFS: Change SMB_VFS_SYS_ACL_BLOB_GET_FILE to use const struct smb_filename * instead of const char *. via cea8e57 s3: VFS: Change SMB_VFS_SYS_ACL_GET_FILE to use const struct smb_filename * instead of const char *. via 85c8780 s3: VFS: Change SMB_VFS_SYS_ACL_DELETE_DEF_FILE to use const struct smb_filename * instead of const char *. via 63d2003 s3: lib: Add new utility function cp_smb_filename_nostream(). from 7259661 dsdb: Use ldb_handle_use_global_event_context for rootdse modifies https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 854ea4eba8d552ab38543647da840fd66039dd94 Author: Jeremy AllisonDate: Thu May 25 16:42:04 2017 -0700 s3: VFS: Change SMB_VFS_GETXATTR to use const struct smb_filename * instead of const char *. We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Jun 1 02:58:53 CEST 2017 on sn-devel-144 commit 48956fa4d3b37105ad3e8e742c21b5583d79db11 Author: Jeremy Allison Date: Thu May 25 12:41:31 2017 -0700 s3: VFS: Change SMB_VFS_SETXATTR to use const struct smb_filename * instead of const char *. We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme commit 12b801d9d7856f1bb50619962f7e9cb94e75087f Author: Jeremy Allison Date: Wed May 24 11:35:50 2017 -0700 s3: VFS: Change SMB_VFS_REMOVEXATTR to use const struct smb_filename * instead of const char *. We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme commit 892476b555f57bcbe40883c533e208c81be168c9 Author: Jeremy Allison Date: Tue May 23 13:12:29 2017 -0700 s3: VFS: Change SMB_VFS_LISTXATTR to use const struct smb_filename * instead of const char *. We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme commit aada94885dce29334e34c9aae32c22e7acfc1174 Author: Jeremy Allison Date: Wed May 24 10:47:46 2017 -0700 s3: VFS: Change SMB_VFS_SYS_ACL_SET_FILE to use const struct smb_filename * instead of const char *. We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme commit f5dd864606d5e587b85695ea11520df31b353fb8 Author: Jeremy Allison Date: Tue May 23 17:35:59 2017 -0700 s3: VFS: Change SMB_VFS_SYS_ACL_BLOB_GET_FILE to use const struct smb_filename * instead of const char *. We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme commit cea8e57eac2ed7b90a5c5d207bf392ff0546398e Author: Jeremy Allison Date: Tue May 23 17:11:18 2017 -0700 s3: VFS: Change SMB_VFS_SYS_ACL_GET_FILE to use const struct smb_filename * instead of const char *. We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Requires a few extra cleanups in calling code. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme commit 85c8780581e0f2bb0fdb940a865857db68111fbd Author: Jeremy Allison Date: Tue May 23
autobuild[sn-devel-144]: intermittent test failure detected
The autobuild test system (on sn-devel-144) has detected an intermittent failing test in the current master tree. The autobuild log of the failure is available here: http://git.samba.org/autobuild.flakey.sn-devel-144/2017-05-31-2028/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-144/2017-05-31-2028/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-144/2017-05-31-2028/samba.stdout The top commit at the time of the failure was: commit 7259661467776a76c4fa3aabaf1ae8a3d531e506 Author: Andrew BartlettDate: Fri May 12 01:55:45 2017 +0200 dsdb: Use ldb_handle_use_global_event_context for rootdse modifies The modify operations on the rootDSE turn into IRPC messages, and these need to be handled on the global event context, not the per-operation context Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Reviewed-by: Garming Sam Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed May 31 10:47:46 CEST 2017 on sn-devel-144
autobuild[sn-devel-144]: intermittent test failure detected
The autobuild test system (on sn-devel-144) has detected an intermittent failing test in the current master tree. The autobuild log of the failure is available here: http://git.samba.org/autobuild.flakey.sn-devel-144/2017-05-31-1552/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-144/2017-05-31-1552/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-144/2017-05-31-1552/samba.stdout The top commit at the time of the failure was: commit 7259661467776a76c4fa3aabaf1ae8a3d531e506 Author: Andrew BartlettDate: Fri May 12 01:55:45 2017 +0200 dsdb: Use ldb_handle_use_global_event_context for rootdse modifies The modify operations on the rootDSE turn into IRPC messages, and these need to be handled on the global event context, not the per-operation context Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Reviewed-by: Garming Sam Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed May 31 10:47:46 CEST 2017 on sn-devel-144
[SCM] NSS Wrapper Repository - branch master updated
The branch, master has been updated via 7523b05 testsuite: Add compatibility for musl-libc 1.1 via 09bb07c nwrap: Add compatibility for musl-libc 1.1 via bba5eec nwrap: Add a comment to the pthread_atfork() call via 2b80c4c nwrap: Use a constructor to initialize pthread and nwrap via 52490af cmake: Check for contructor attribute support via 4b7e685 nwrap: Add NULL checks for destructor from d66ce39 nss_wrapper: Use perl via "env" https://git.samba.org/?p=nss_wrapper.git;a=shortlog;h=master - Log - commit 7523b05f0e84e8d9a1c27c06805d0ba72ec33373 Author: Dennis SchriddeDate: Wed Jan 25 22:25:24 2017 +0100 testsuite: Add compatibility for musl-libc 1.1 The major difference is that getpwent_r and getgrent_r do not exist in musl-libc. The testsuite was adapted to skip these tests if the functions themselves are missing. Signed-Off-By: Dennis Schridde Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam commit 09bb07c4aec3da9d555d0a608b2c98dde46ff886 Author: Dennis Schridde Date: Mon Mar 27 16:26:11 2017 +0200 nwrap: Add compatibility for musl-libc 1.1 The major difference is that getpwent_r and getgrent_r do not exist in musl-libc. Hence it is sufficient to compile the wrappers for those only conditionally. Tested with musl-libc 1.1.15-r5 on Alpine Linux 3.5. Also confirmed to not break with GNU libc 2.24-8 on Debian "Stretch" / 9. Signed-Off-By: Dennis Schridde Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam commit bba5eecf377b2617dfa25f78bcc11a240c3f5266 Author: Andreas Schneider Date: Wed May 31 15:25:30 2017 +0200 nwrap: Add a comment to the pthread_atfork() call Signed-off-by: Andreas Schneider Reviewed-by: Michael Adam commit 2b80c4ce0be8a43fb6ea6abcd4f97105982e239a Author: Andreas Schneider Date: Mon Mar 27 16:23:08 2017 +0200 nwrap: Use a constructor to initialize pthread and nwrap Signed-off-by: Andreas Schneider Reviewed-by: Michael Adam commit 52490af39c319a107fc04c99ee35ddd80a82ce67 Author: Andreas Schneider Date: Mon Mar 27 16:22:45 2017 +0200 cmake: Check for contructor attribute support Signed-off-by: Andreas Schneider Reviewed-by: Michael Adam commit 4b7e685ef79d3a993ac4da20b1cca328c9354ee8 Author: Andreas Schneider Date: Mon Mar 27 16:38:53 2017 +0200 nwrap: Add NULL checks for destructor If we call init early and leave early they are not filled. Signed-off-by: Andreas Schneider Reviewed-by: Michael Adam --- Summary of changes: ConfigureChecks.cmake | 12 ++ config.h.cmake| 1 + src/nss_wrapper.c | 115 +- tests/testsuite.c | 18 +--- 4 files changed, 102 insertions(+), 44 deletions(-) Changeset truncated at 500 lines: diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 462b166..6f760e6 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -235,6 +235,18 @@ int main(void) { }" HAVE_ATTRIBUTE_PRINTF_FORMAT) check_c_source_compiles(" +void test_constructor_attribute(void) __attribute__ ((constructor)); + +void test_constructor_attribute(void) +{ + return; +} + +int main(void) { + return 0; +}" HAVE_CONSTRUCTOR_ATTRIBUTE) + +check_c_source_compiles(" void test_destructor_attribute(void) __attribute__ ((destructor)); void test_destructor_attribute(void) diff --git a/config.h.cmake b/config.h.cmake index 75c92ed..b18dff2 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -93,6 +93,7 @@ #cmakedefine HAVE_IPV6 1 #cmakedefine HAVE_ATTRIBUTE_PRINTF_FORMAT 1 +#cmakedefine HAVE_CONSTRUCTOR_ATTRIBUTE 1 #cmakedefine HAVE_DESTRUCTOR_ATTRIBUTE 1 /*** ENDIAN */ diff --git a/src/nss_wrapper.c b/src/nss_wrapper.c index 82581b1..70a5989 100644 --- a/src/nss_wrapper.c +++ b/src/nss_wrapper.c @@ -142,6 +142,12 @@ typedef nss_status_t NSS_STATUS; #define PRINTF_ATTRIBUTE(a,b) #endif /* HAVE_ATTRIBUTE_PRINTF_FORMAT */ +#ifdef HAVE_CONSTRUCTOR_ATTRIBUTE +#define CONSTRUCTOR_ATTRIBUTE __attribute__ ((constructor)) +#else +#define CONSTRUCTOR_ATTRIBUTE +#endif /* HAVE_CONSTRUCTOR_ATTRIBUTE */ + #ifdef HAVE_DESTRUCTOR_ATTRIBUTE #define DESTRUCTOR_ATTRIBUTE __attribute__ ((destructor)) #else @@ -292,11 +298,13 @@ struct nwrap_libc_fns
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 7259661 dsdb: Use ldb_handle_use_global_event_context for rootdse modifies via e7c36a7 schema: Use ldb_schema_set_override_indexlist for faster index selection via 13e09c7 ldb: Version 1.1.30 via e001ac9 ldb: Add Doxygen documentation for ldb_handle_use_global_event_context() via 850732e ldb: Add Doxygen docs for ldb_set_require_private_event_context() via ba3eff9 ldb: Add Doxygen docs for ldb_handle_get_event_context() via d73d926 ldb: Add Doxygen docs for ldb_schema_set_override_indexlist() via bcd891d ldb: Add Doxygen docs for ldb_schema_attribute_set_override_handler via cb03b12 ldb: Add Doxygen comments for ldb_req_*trusted() functions via 02a4915 ldb: Add test for ldb_build_search_req() via 670 ldb: Add tests for new ldb handle and event context behaviour via c29201d ldb: Add ldb_handle_use_global_event_context() via e67d356 ldb: Use the private event context in ldb_tdb and ldb_wait() via 25795c3 ldb: Force use of a private event context in ldb_tdb via cd97f45 ldb: Create private event contexts in top level requests, chain to children via 0f13243 ldb: Add ldb_set_require_private_event_context() via a83df55 ldb: Add ldb_handle_get_event_context() via 1ba6b9a ldb: Add ldb_build_req_common() helper function via aa54ed0 ldb: Add tests for the schema and index override hooks via e903e08 ldb: Move test_ldb_attrs_case_insensitive closer to setup/teardown functions via 2335e57 ldb_tdb: Avoid reading the index list from the DB if we are already set to override it via e584fe8 ldb: Allow a caller (in particular Samba) to handle the list of attributes with an index via 29dc932 ldb_tdb: consistently use ltdb->cache->attribute_indexes to determine if we have indexes via e1bc43d ldb_tdb: change the arguments to ldb_is_indexed() to provide the ltdb_private via 05e8dcb ldb_tdb: Split index load out into a sub-funciton: ltdb_index_load from e530e43 s3:smbd: Set up local and remote address for fake connection https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 7259661467776a76c4fa3aabaf1ae8a3d531e506 Author: Andrew BartlettDate: Fri May 12 01:55:45 2017 +0200 dsdb: Use ldb_handle_use_global_event_context for rootdse modifies The modify operations on the rootDSE turn into IRPC messages, and these need to be handled on the global event context, not the per-operation context Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Reviewed-by: Garming Sam Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed May 31 10:47:46 CEST 2017 on sn-devel-144 commit e7c36a7142198c9a8efb769627af4488e0bb5dc0 Author: Andrew Bartlett Date: Thu Mar 30 13:25:35 2017 +1300 schema: Use ldb_schema_set_override_indexlist for faster index selection This allows Samba to provide a binary tree lookup for the existance of an index on the attribute rather than the O(n) lookup that was being done for each attribute during a search or modify Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Reviewed-by: Garming Sam commit 13e09c72cd41cd5cd44bd9e4e27df8e0e1d47379 Author: Andrew Bartlett Date: Thu Mar 30 13:54:58 2017 +1300 ldb: Version 1.1.30 * let ldbdump parse the -i option * don't allow the reveal_internals control for ldbedit * only allow --show-binary for ldbsearch * don't let ldbsearch create non-existing files * fix ldb_tdb search inconsistencies * add cmocka based tests * provide an interface for improved indexing for callers like Samba, which will allow much better performance. * Makes ldb access to tdb:// databases use a private event context rather than the global event context passed in by the caller. This is because running other operations while locks are held or a search is being conducted is not safe. Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Reviewed-by: Garming Sam commit e001ac9ef56205ad8e7fdcfb1bff771f989939f1 Author: Andrew Bartlett Date: Tue May 30 21:12:33 2017 +1200 ldb: Add Doxygen documentation for ldb_handle_use_global_event_context() Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall commit 850732ebbb73f3affedd4233a782e680253b4990 Author: Andrew Bartlett