[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 2d5b7c9a50d lib: asn1.c: Prevent ASN1_ENUMERATED from wrapping. from 620987449cc lib/util: use better linux os detection in gpfs configure https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 2d5b7c9a50d1514cf6e5aa3f1cc4f4b5c3c6ff22 Author: Jeremy Allison Date: Thu Jan 23 13:59:18 2020 -0800 lib: asn1.c: Prevent ASN1_ENUMERATED from wrapping. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14238 Signed-off-by: Jeremy Allison Reviewed-by: Douglas Bagnall Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Jan 29 01:02:04 UTC 2020 on sn-devel-184 --- Summary of changes: lib/util/asn1.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) Changeset truncated at 500 lines: diff --git a/lib/util/asn1.c b/lib/util/asn1.c index 51da5424956..6ae54d4cf20 100644 --- a/lib/util/asn1.c +++ b/lib/util/asn1.c @@ -1024,9 +1024,10 @@ bool asn1_read_BitString(struct asn1_data *data, TALLOC_CTX *mem_ctx, DATA_BLOB return true; } -/* read an integer */ +/* read a non-negative enumerated value */ bool asn1_read_enumerated(struct asn1_data *data, int *v) { + unsigned int val_will_wrap = (0xFF << ((sizeof(int)*8)-8)); *v = 0; if (!asn1_start_tag(data, ASN1_ENUMERATED)) return false; @@ -1035,7 +1036,22 @@ bool asn1_read_enumerated(struct asn1_data *data, int *v) if (!asn1_read_uint8(data, )) { return false; } + if (*v & val_will_wrap) { + /* +* There is something already in +* the top byte of the int. If we +* shift left by 8 it's going to +* wrap. Prevent this. +*/ + data->has_error = true; + return false; + } *v = (*v << 8) + b; + if (*v < 0) { + /* ASN1_ENUMERATED can't be -ve. */ + data->has_error = true; + return false; + } } return asn1_end_tag(data); } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 620987449cc lib/util: use better linux os detection in gpfs configure from ea754bfdec9 ctdb-tests: Enable job control when keeping stdin open https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 620987449cc5d9255cdba4bbdb50735bfa2b969e Author: Günther Deschner Date: Mon Jan 27 21:39:20 2020 +0100 lib/util: use better linux os detection in gpfs configure Guenther Signed-off-by: Guenther Deschner Reviewed-by: Christof Schmitt c...@samba.org Autobuild-User(master): Günther Deschner Autobuild-Date(master): Tue Jan 28 18:05:34 UTC 2020 on sn-devel-184 --- Summary of changes: lib/util/wscript_configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Changeset truncated at 500 lines: diff --git a/lib/util/wscript_configure b/lib/util/wscript_configure index 4f57184f515..d4450d25b98 100644 --- a/lib/util/wscript_configure +++ b/lib/util/wscript_configure @@ -158,7 +158,7 @@ else: Logs.info('Using gpfs.h from installed gpfs package.') conf.DEFINE('HAVE_GPFS', '1') else: -if sys.platform=="linux": +if sys.platform.startswith('linux'): conf.env['CPPPATH_GPFS'] = os.path.abspath("third_party/gpfs") if conf.CHECK_HEADERS('gpfs.h', False, False, "gpfs"): Logs.info('Using gpfs.h from third_party directory.') -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via ea754bfdec9 ctdb-tests: Enable job control when keeping stdin open via 2380b13bf81 ctdb-tests: Don't close stdin when starting local daemons via cf460bd9c4a ctdb-daemon: Shut down if interactive and stdin is closed via d79e2dcfc84 ctdb-daemon: Only stop monitoring if it has been initialised from 0ad6a243b25 lib:util: Log mkdir error on correct debug levels https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit ea754bfdec9d537c500036d4d521bd41d34c0835 Author: Martin Schwenke Date: Tue Jan 14 10:58:15 2020 +1100 ctdb-tests: Enable job control when keeping stdin open POSIX says: If job control is disabled (see set, -m), the standard input for an asynchronous list, before any explicit redirections are performed, shall be considered to be assigned to a file that has the same properties as /dev/null. This shall not happen if job control is enabled. In all cases, explicit redirection of standard input shall override this activity. ctdbd is backgrounded at startup, so the above causes stdin to be redirected from /dev/null. Enable job control to work around this. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Tue Jan 28 11:24:35 UTC 2020 on sn-devel-184 commit 2380b13bf81f0705d036a0b43c65e823dd0e3624 Author: Martin Schwenke Date: Mon Jan 13 21:04:24 2020 +1100 ctdb-tests: Don't close stdin when starting local daemons Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs commit cf460bd9c4ae1e0de871a6c4980a2c365e82550a Author: Martin Schwenke Date: Mon Jan 13 21:04:54 2020 +1100 ctdb-daemon: Shut down if interactive and stdin is closed This allows a test environment to simply close its end of a pipe to cleanly shutdown ctdbd. Like in smbd, this is only done if stdin is a pipe or a socket. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs commit d79e2dcfc84d937db3c6eb3d17520aaf6e7bba4c Author: Martin Schwenke Date: Mon Jan 13 21:13:32 2020 +1100 ctdb-daemon: Only stop monitoring if it has been initialised This avoids a crash if ctdb_shutdown_sequence() is called before monitoring is initialised. Switch to using TALLOC_FREE() while touching this function. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- Summary of changes: ctdb/server/ctdb_daemon.c | 59 + ctdb/server/ctdb_monitor.c | 8 -- ctdb/tests/local_daemons.sh | 4 +-- 3 files changed, 67 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/ctdb/server/ctdb_daemon.c b/ctdb/server/ctdb_daemon.c index cc688b07e9c..c4ab2dbc3d3 100644 --- a/ctdb/server/ctdb_daemon.c +++ b/ctdb/server/ctdb_daemon.c @@ -1389,6 +1389,56 @@ static void ctdb_set_my_pnn(struct ctdb_context *ctdb) D_NOTICE("PNN is %u\n", ctdb->pnn); } +static void stdin_handler(struct tevent_context *ev, + struct tevent_fd *fde, + uint16_t flags, + void *private_data) +{ + struct ctdb_context *ctdb = talloc_get_type_abort( + private_data, struct ctdb_context); + ssize_t nread; + char c; + + nread = read(STDIN_FILENO, , 1); + if (nread != 1) { + D_ERR("stdin closed, exiting\n"); + talloc_free(fde); + ctdb_shutdown_sequence(ctdb, EPIPE); + } +} + +static int setup_stdin_handler(struct ctdb_context *ctdb) +{ + struct tevent_fd *fde; + struct stat st; + int ret; + + ret = fstat(STDIN_FILENO, ); + if (ret != 0) { + /* Problem with stdin, ignore... */ + DBG_INFO("Can't fstat() stdin\n"); + return 0; + } + + if (!S_ISFIFO(st.st_mode)) { + DBG_INFO("Not a pipe...\n"); + return 0; + } + + fde = tevent_add_fd(ctdb->ev, + ctdb, + STDIN_FILENO, + TEVENT_FD_READ, + stdin_handler, + ctdb); + if (fde == NULL) { + return ENOMEM; + } + + DBG_INFO("Set up stdin handler\n"); + return 0; +} + /* start the protocol going as a daemon */ @@ -1448,6 +1498,15 @@ int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork) ctdb_set_child_logging(ctdb); } + /* Exit if stdin is closed */ + if (!do_fork) { + ret = setup_stdin_handler(ctdb); + if (ret != 0) { +
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via ed5e94d Add Samba 4.11.6. via 548a3e3 NEWS[4.11.6]: Samba 4.11.6 Available for Download from cfa2c81 Add Samba 4.10.13. https://git.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit ed5e94df580d5cb7123597634c263e64a2d08be2 Author: Karolin Seeger Date: Tue Jan 28 11:25:32 2020 +0100 Add Samba 4.11.6. Signed-off-by: Karolin Seeger commit 548a3e3e5435f78e14e231c60a0ef7c85aa620f1 Author: Karolin Seeger Date: Tue Jan 28 11:23:58 2020 +0100 NEWS[4.11.6]: Samba 4.11.6 Available for Download Signed-off-by: Karolin Seeger --- Summary of changes: history/header_history.html | 1 + history/samba-4.11.6.html| 71 posted_news/20200128-102511.4.11.6.body.html | 13 + posted_news/20200128-102511.4.11.6.headline.html | 3 + 4 files changed, 88 insertions(+) create mode 100644 history/samba-4.11.6.html create mode 100644 posted_news/20200128-102511.4.11.6.body.html create mode 100644 posted_news/20200128-102511.4.11.6.headline.html Changeset truncated at 500 lines: diff --git a/history/header_history.html b/history/header_history.html index 2212cce..c700772 100755 --- a/history/header_history.html +++ b/history/header_history.html @@ -9,6 +9,7 @@ Release Notes + samba-4.11.6 samba-4.11.5 samba-4.11.4 samba-4.11.3 diff --git a/history/samba-4.11.6.html b/history/samba-4.11.6.html new file mode 100644 index 000..e5d7cd6 --- /dev/null +++ b/history/samba-4.11.6.html @@ -0,0 +1,71 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml;> + +Samba 4.11.6 - Release Notes + + +Samba 4.11.6 Available for Download + +https://download.samba.org/pub/samba/stable/samba-4.11.6.tar.gz;>Samba 4.11.6 (gzipped) +https://download.samba.org/pub/samba/stable/samba-4.11.6.tar.asc;>Signature + + +https://download.samba.org/pub/samba/patches/samba-4.11.5-4.11.6.diffs.gz;>Patch (gzipped) against Samba 4.11.5 +https://download.samba.org/pub/samba/patches/samba-4.11.5-4.11.6.diffs.asc;>Signature + + + + == + Release Notes for Samba 4.11.6 + January 28, 2020 + == + + +This is the latest stable release of the Samba 4.11 release series. + + +Changes since 4.11.5: +- + +o Douglas Bagnall douglas.bagn...@catalyst.net.nz + * BUG 14209: pygpo: Use correct method flags. + +o David Disseldorp dd...@samba.org + * BUG 14216: vfs_ceph_snapshots: Fix root relative path handling. + +o Torsten Fohrer torsten.foh...@sbe.de + * BUG 14209: Avoiding bad call flags with python 3.8, using METH_NOARGS + instead of zero. + +o Fabrice Fontaine fontaine.fabr...@gmail.com + * BUG 14218: source4/utils/oLschema2ldif: Include stdint.h before cmocka.h. + +o Bjrn Jacke bja...@samba.org + * BUG 14122: docs-xml/winbindnssinfo: Clarify interaction with idmap_ad etc. + +o Volker Lendecke v...@samba.org + * BUG 14251: smbd: Fix the build with clang. + +o Gary Lockyer g...@catalyst.net.nz + * BUG 14199: upgradedns: Ensure lmdb lock files linked. + +o Anoop C S anoo...@redhat.com + * BUG 14182: s3: VFS: glusterfs: Reset nlinks for symlink entries during + readdir. + +o Andreas Schneider a...@samba.org + * BUG 14101: smbc_stat() doesnt return the correct st_mode and also the + uid/gid is not filled (SMBv1) file. + * BUG 14219: librpc: Fix string length checking in + ndr_pull_charset_to_null(). + +o Martin Schwenke mar...@meltin.net + * BUG 14227: ctdb-scripts: Strip square brackets when gathering connection + info. + + + + + + diff --git a/posted_news/20200128-102511.4.11.6.body.html b/posted_news/20200128-102511.4.11.6.body.html new file mode 100644 index 000..82f8e54 --- /dev/null +++ b/posted_news/20200128-102511.4.11.6.body.html @@ -0,0 +1,13 @@ + +28 January 2020 +Samba 4.11.6 Available for Download + +This is the latest stable release of the Samba 4.11 release series. + + +The uncompressed tarball has been signed using GnuPG (ID 6F33915B6568B7EA). +The source code can be https://download.samba.org/pub/samba/stable/samba-4.11.6.tar.gz;>downloaded now. +A https://download.samba.org/pub/samba/patches/samba-4.11.5-4.11.6.diffs.gz;>patch against Samba 4.11.5 is also available. +See https://www.samba.org/samba/history/samba-4.11.6.html;>the release notes for more info. + + diff --git a/posted_news/20200128-102511.4.11.6.headline.html b/posted_news/20200128-102511.4.11.6.headline.html new file mode 100644 index 000..
[SCM] Samba Shared Repository - annotated tag samba-4.11.6 created
The annotated tag, samba-4.11.6 has been created at 5ff8009752d86397a9114e6e551a914bba538ac6 (tag) tagging f5fa58a41774667a153dece74ed7e4a09689f0ad (commit) replaces samba-4.11.5 tagged by Karolin Seeger on Tue Jan 28 11:23:49 2020 +0100 - Log - samba: tag release samba-4.11.6 -BEGIN PGP SIGNATURE- iF0EABECAB0WIQRS+8C4bZVLCEMyTNxvM5FbZWi36gUCXjALtQAKCRBvM5FbZWi3 6r6yAKCE0RSUMPZp4Np1TMvrCdgnLFcc9ACgyFCsemzB3t1AhXqkAbHCmWvzSoc= =Pd5p -END PGP SIGNATURE- Andreas Schneider (6): librpc: Fix string length checking in ndr_pull_charset_to_null() s3:libsmb: Generate the inode only based on the path component s3:libsmb: Add try_posixinfo to SMBSRV struct. Only enable for SMB1 with UNIX for now. s3:libsmb: Return a 'struct stat' buffer for SMBC_getatr() s3:libsmb: Add a setup_stat_from_stat_ex() function libsmbclient: If over SMB1 first try to do a posix stat on the file. Anoop C S (1): s3: VFS: glusterfs: Reset nlinks for symlink entries during readdir Björn Jacke (1): docs-xml/winbindnssinfo: clarify interaction with idmap_ad etc. David Disseldorp (1): vfs_ceph_snapshots: fix root relative path handling Douglas Bagnall (1): pygpo: use correct method flags Fabrice Fontaine (2): lib/ldb/tests: include stdint.h before cmocka.h source4/utils/oLschema2ldif: include stdint.h before cmocka.h Gary Lockyer (2): test upgradedns: ensure lmdb lock files linked upgradedns: ensure lmdb lock files linked Jeremy Allison (3): s3: libsmb: Change generate_inode()/setup_stat() to modern coding standards. s3: libsmb: Move setting st->st_ino into setup_stat. s3: libsmb: Move setting all struct stat fields into setup_stat(). Karolin Seeger (5): VERSION: Bump version up to 4.11.5... Merge tag 'samba-4.11.5' into v4-11-test VERSION: Bump version up to 4.11.6. WHATSNEW: Add release notes for Samba 4.11.6. VERSION: Disable GIT_SNAPSHOT for the 4.11.6 release. Martin Schwenke (2): ctdb-scripts: Strip square brackets when gathering connection info ctdb-tests: Skip some tests that don't work with IPv6 Stefan Metzmacher (1): script/release.sh: make it possible to run from a git worktree Torsten Fohrer (1): Avoiding bad call flags with python 3.8, using METH_NOARGS instead of zero. Volker Lendecke (1): smbd: Fix the build with clang --- -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-11-test updated
The branch, v4-11-test has been updated via 040e0051e2b VERSION: Bump version up to 4.11.7... via f5fa58a4177 VERSION: Disable GIT_SNAPSHOT for the 4.11.6 release. via 9ec0da774e3 WHATSNEW: Add release notes for Samba 4.11.6. from 79e7d1328ea smbd: Fix the build with clang https://git.samba.org/?p=samba.git;a=shortlog;h=v4-11-test - Log - commit 040e0051e2b707aa744bccc536442d6497ce7024 Author: Karolin Seeger Date: Tue Jan 28 11:13:25 2020 +0100 VERSION: Bump version up to 4.11.7... and re-enable GIT_SNAPSHOT. Signed-off-by: Karolin Seeger commit f5fa58a41774667a153dece74ed7e4a09689f0ad Author: Karolin Seeger Date: Tue Jan 28 11:09:48 2020 +0100 VERSION: Disable GIT_SNAPSHOT for the 4.11.6 release. Signed-off-by: Karolin Seeger commit 9ec0da774e37fa1caae647f6d0bb5fc468e180b4 Author: Karolin Seeger Date: Tue Jan 28 11:08:58 2020 +0100 WHATSNEW: Add release notes for Samba 4.11.6. Signed-off-by: Karolin Seeger --- Summary of changes: VERSION | 2 +- WHATSNEW.txt | 76 ++-- 2 files changed, 75 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/VERSION b/VERSION index 0f54515c8b9..2ec627c3196 100644 --- a/VERSION +++ b/VERSION @@ -25,7 +25,7 @@ SAMBA_VERSION_MAJOR=4 SAMBA_VERSION_MINOR=11 -SAMBA_VERSION_RELEASE=6 +SAMBA_VERSION_RELEASE=7 # If a official release has a serious bug # diff --git a/WHATSNEW.txt b/WHATSNEW.txt index 99272550643..6f635618bb2 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -1,3 +1,75 @@ + == + Release Notes for Samba 4.11.6 + January 28, 2020 + == + + +This is the latest stable release of the Samba 4.11 release series. + + +Changes since 4.11.5: +- + +o Douglas Bagnall + * BUG 14209: pygpo: Use correct method flags. + +o David Disseldorp + * BUG 14216: vfs_ceph_snapshots: Fix root relative path handling. + +o Torsten Fohrer + * BUG 14209: Avoiding bad call flags with python 3.8, using METH_NOARGS + instead of zero. + +o Fabrice Fontaine + * BUG 14218: source4/utils/oLschema2ldif: Include stdint.h before cmocka.h. + +o Björn Jacke + * BUG 14122: docs-xml/winbindnssinfo: Clarify interaction with idmap_ad etc. + +o Volker Lendecke + * BUG 14251: smbd: Fix the build with clang. + +o Gary Lockyer + * BUG 14199: upgradedns: Ensure lmdb lock files linked. + +o Anoop C S + * BUG 14182: s3: VFS: glusterfs: Reset nlinks for symlink entries during + readdir. + +o Andreas Schneider + * BUG 14101: smbc_stat() doesn't return the correct st_mode and also the + uid/gid is not filled (SMBv1) file. + * BUG 14219: librpc: Fix string length checking in + ndr_pull_charset_to_null(). + +o Martin Schwenke + * BUG 14227: ctdb-scripts: Strip square brackets when gathering connection + info. + + +### +Reporting bugs & Development Discussion +### + +Please discuss this release on the samba-technical mailing list or by +joining the #samba-technical IRC channel on irc.freenode.net. + +If you do report problems then please try to send high quality +feedback. If you don't provide vital information to help us track down +the problem then you will probably be ignored. All bug reports should +be filed under the "Samba 4.1 and newer" product in the project's Bugzilla +database (https://bugzilla.samba.org/). + + +== +== Our Code, Our Bugs, Our Responsibility. +== The Samba Team +== + + +Release notes for older releases follow: + + == Release Notes for Samba 4.11.5 January 21, 2020 @@ -67,8 +139,8 @@ database (https://bugzilla.samba.org/). == -Release notes for older releases follow: - +-- + == Release Notes for Samba 4.11.4 -- Samba Shared Repository