vlendec/samba-autobuild/.git
2 years agoauth/gensec: make sure there's only one pending gensec_update_send() per context
Stefan Metzmacher [Thu, 11 May 2017 11:28:10 +0000 (13:28 +0200)]
auth/gensec: make sure there's only one pending gensec_update_send() per context

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/gensec: improve NT_STATUS_MORE_PROCESSING_REQUIRED logic in gensec_update_*()
Stefan Metzmacher [Thu, 11 May 2017 11:23:07 +0000 (13:23 +0200)]
auth/gensec: improve NT_STATUS_MORE_PROCESSING_REQUIRED logic in gensec_update_*()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/gensec: avoid using a state->subreq pointer
Stefan Metzmacher [Thu, 11 May 2017 11:25:26 +0000 (13:25 +0200)]
auth/gensec: avoid using a state->subreq pointer

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/gensec: remove the sync update() hook from gensec_security_ops
Stefan Metzmacher [Thu, 11 May 2017 10:48:41 +0000 (12:48 +0200)]
auth/gensec: remove the sync update() hook from gensec_security_ops

Some backends still do some nested event context magic,
but that mapping between async and sync is done in these backends
and not in the core gensec code anymore.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/spnego: add simple gensec_spnego_update_send/recv() wrapper functions
Stefan Metzmacher [Thu, 11 May 2017 07:04:02 +0000 (09:04 +0200)]
auth/spnego: add simple gensec_spnego_update_send/recv() wrapper functions

TODO: we still need to do the internals async.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/ntlmssp: add implement gensec_ntlmssp_update_send/recv()
Stefan Metzmacher [Thu, 11 May 2017 07:04:02 +0000 (09:04 +0200)]
auth/ntlmssp: add implement gensec_ntlmssp_update_send/recv()

Currently only backend functions are sync functions, but that needs
to change in future.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/ntlmssp: make gensec_ntlmssp_update() static
Stefan Metzmacher [Thu, 18 May 2017 06:45:44 +0000 (08:45 +0200)]
auth/ntlmssp: make gensec_ntlmssp_update() static

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/ntlmssp: rename 'input' to 'in' in gensec_ntlmssp_update()
Stefan Metzmacher [Thu, 18 May 2017 06:43:09 +0000 (08:43 +0200)]
auth/ntlmssp: rename 'input' to 'in' in gensec_ntlmssp_update()

This matches all other gensec modules.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/ntlmssp: remove unused variable from gensec_ntlmssp_update()
Stefan Metzmacher [Wed, 17 May 2017 18:21:19 +0000 (20:21 +0200)]
auth/ntlmssp: remove unused variable from gensec_ntlmssp_update()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/ntlmssp: avoid using NT_STATUS_NOT_OK_RETURN() in gensec_ntlmssp_update()
Stefan Metzmacher [Wed, 17 May 2017 18:21:19 +0000 (20:21 +0200)]
auth/ntlmssp: avoid using NT_STATUS_NOT_OK_RETURN() in gensec_ntlmssp_update()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/ntlmssp: remove mem_ctx=NULL handling from gensec_ntlmssp_update()
Stefan Metzmacher [Wed, 17 May 2017 18:21:19 +0000 (20:21 +0200)]
auth/ntlmssp: remove mem_ctx=NULL handling from gensec_ntlmssp_update()

The caller is expected always pass a valid context and this fallback
was needed ages ago.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:gensec_krb5: add simple gensec_krb5_update_send/recv() wrapper functions
Stefan Metzmacher [Thu, 11 May 2017 07:04:02 +0000 (09:04 +0200)]
s4:gensec_krb5: add simple gensec_krb5_update_send/recv() wrapper functions

TODO: we still need to make the internal async.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:gensec_gssapi: add simple gensec_gssapi_update_send/recv() wrapper functions
Stefan Metzmacher [Thu, 11 May 2017 07:04:02 +0000 (09:04 +0200)]
s4:gensec_gssapi: add simple gensec_gssapi_update_send/recv() wrapper functions

TODO: we still need to make the internal async.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos3:gse: add simple gensec_gse_update_send/recv() wrapper functions
Stefan Metzmacher [Thu, 11 May 2017 07:04:02 +0000 (09:04 +0200)]
s3:gse: add simple gensec_gse_update_send/recv() wrapper functions

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:gensec/http_basic: add simple gensec_http_basic_update_send/recv() wrapper functions
Stefan Metzmacher [Thu, 11 May 2017 07:04:02 +0000 (09:04 +0200)]
s4:gensec/http_basic: add simple gensec_http_basic_update_send/recv() wrapper functions

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:gensec/http_ntlm: add implement gensec_http_ntlm_update_send/recv()
Stefan Metzmacher [Thu, 11 May 2017 07:04:02 +0000 (09:04 +0200)]
s4:gensec/http_ntlm: add implement gensec_http_ntlm_update_send/recv()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/spnego: make sure a fatal error or the final success make the state as SPNEGO_DONE
Stefan Metzmacher [Wed, 10 May 2017 15:12:14 +0000 (17:12 +0200)]
auth/spnego: make sure a fatal error or the final success make the state as SPNEGO_DONE

This means any further gensec_update() will fail with
NT_STATUS_INVALID_PARAMETER.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/spnego: let spnego.c use the new gensec_child_* helper functions
Stefan Metzmacher [Fri, 30 Dec 2016 17:05:17 +0000 (18:05 +0100)]
auth/spnego: let spnego.c use the new gensec_child_* helper functions

This means we no longer allow operations on a half finished authentication,
it's activated by gensec_child_ready().

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/gensec: add gensec_child_* helper functions
Stefan Metzmacher [Fri, 30 Dec 2016 16:54:12 +0000 (17:54 +0100)]
auth/gensec: add gensec_child_* helper functions

They will be used to simplify the spnego backend
and maybe of some use for a future negoex backend.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/gensec: reset existing context on gensec_start_mech()
Stefan Metzmacher [Wed, 10 May 2017 22:05:29 +0000 (00:05 +0200)]
auth/gensec: reset existing context on gensec_start_mech()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/gensec: make gensec_start_mech() static
Stefan Metzmacher [Wed, 10 May 2017 22:05:02 +0000 (00:05 +0200)]
auth/gensec: make gensec_start_mech() static

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:rpc_server: simplify the GENSEC_FEATURE_SIGN_PKT_HEADER logic
Stefan Metzmacher [Fri, 12 May 2017 05:56:47 +0000 (07:56 +0200)]
s4:rpc_server: simplify the GENSEC_FEATURE_SIGN_PKT_HEADER logic

We can directly check this after gensec_start_mech_by_authtype(),
the backend either supports it or not. There's nothing that
can change during the authentication phase.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:librpc: ask for GENSEC_FEATURE_SIGN_PKT_HEADER after the gensec_update() dance
Stefan Metzmacher [Sat, 13 May 2017 22:28:50 +0000 (00:28 +0200)]
s4:librpc: ask for GENSEC_FEATURE_SIGN_PKT_HEADER after the gensec_update() dance

Most features should be added before the update() dance, while
GENSEC_FEATURE_SIGN_PKT_HEADER needs to be after the dance on the client
side.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos3:rpc_server: move gensec_update() out of auth_generic_server_authtype_start*()
Stefan Metzmacher [Sat, 13 May 2017 23:22:32 +0000 (01:22 +0200)]
s3:rpc_server: move gensec_update() out of auth_generic_server_authtype_start*()

We let the caller use auth_generic_server_step() instead.
This allows us to request GENSEC_FEATURE_SIGN_PKT_HEADER before
starting the gensec_update() dance.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos3:cli_pipe: ask for GENSEC_FEATURE_SIGN_PKT_HEADER after the gensec_update() dance
Stefan Metzmacher [Sat, 13 May 2017 22:28:50 +0000 (00:28 +0200)]
s3:cli_pipe: ask for GENSEC_FEATURE_SIGN_PKT_HEADER after the gensec_update() dance

Most features should be added before the update() dance, while
GENSEC_FEATURE_SIGN_PKT_HEADER needs to be after the dance on the client
side.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/gensec: add some basic doxygen comments for gensec_{want,have}_feature()
Stefan Metzmacher [Sun, 14 May 2017 00:06:08 +0000 (02:06 +0200)]
auth/gensec: add some basic doxygen comments for gensec_{want,have}_feature()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/spnego: always announce GENSEC_FEATURE_SIGN_PKT_HEADER support.
Stefan Metzmacher [Fri, 12 May 2017 09:05:15 +0000 (11:05 +0200)]
auth/spnego: always announce GENSEC_FEATURE_SIGN_PKT_HEADER support.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:gensec_gssapi: always announce GENSEC_FEATURE_SIGN_PKT_HEADER
Stefan Metzmacher [Fri, 12 May 2017 06:05:03 +0000 (08:05 +0200)]
s4:gensec_gssapi: always announce GENSEC_FEATURE_SIGN_PKT_HEADER

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos3:gse: always announce GENSEC_FEATURE_SIGN_PKT_HEADER support.
Stefan Metzmacher [Fri, 12 May 2017 06:04:33 +0000 (08:04 +0200)]
s3:gse: always announce GENSEC_FEATURE_SIGN_PKT_HEADER support.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoselftest: let fl2003dc use "dcesrv:header signing = no"
Stefan Metzmacher [Sat, 13 May 2017 06:37:05 +0000 (08:37 +0200)]
selftest: let fl2003dc use "dcesrv:header signing = no"

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:smb_server: avoid using gensec_update_ev() for the negotiate blob
Stefan Metzmacher [Thu, 11 May 2017 13:36:31 +0000 (15:36 +0200)]
s4:smb_server: avoid using gensec_update_ev() for the negotiate blob

Getting the SPNEGO mech type blob, we don't expect to block for
any network io, so we can also use gensec_update() which creates
a temporary event context.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos3:libsmb: don't rely on gensec_session_key() to work on an unfinished authentication
Stefan Metzmacher [Wed, 10 May 2017 14:17:48 +0000 (16:17 +0200)]
s3:libsmb: don't rely on gensec_session_key() to work on an unfinished authentication

If smbXcli_session_is_guest() returns true, we should handle the authentication
as anonymous and don't touch the gensec context anymore.

Note that smbXcli_session_is_guest() always returns false, if signing is
required!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/gensec: call gensec_verify_features() also after update_recv() in gensec_update_ev()
Stefan Metzmacher [Sat, 13 May 2017 00:25:44 +0000 (02:25 +0200)]
auth/gensec: call gensec_verify_features() also after update_recv() in gensec_update_ev()

This is no a real problem until now, because the only backends with update_send()/recv()
are "schannel" (which only supports AUTH_LEVEL_{INTEGRITY,PRIVACY}) and
"naclrpc_as_system" (which doesn't support any protection beside using unix
domain sockets).

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoauth/spnego: fix gensec_update_ev() argument order for the SPNEGO_FALLBACK case
Stefan Metzmacher [Fri, 12 May 2017 07:10:19 +0000 (09:10 +0200)]
auth/spnego: fix gensec_update_ev() argument order for the SPNEGO_FALLBACK case

This went unnoticed so long as we don't use -Wc++-compat
and gensec_update_ev() used the sync update() hook for all
NTLMSSP and Kerberos.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoselftest: Actually run python3 tests during the selftest
Andrew Bartlett [Tue, 2 May 2017 10:55:45 +0000 (12:55 +0200)]
selftest: Actually run python3 tests during the selftest

These previously only ran if the develper was using EXTRA_PYTHON in their
OS environment

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat May 20 02:26:33 CEST 2017 on sn-devel-144

2 years agopython3:tests: Fix Python 3 test issues
Petr Viktorin [Wed, 3 May 2017 17:11:03 +0000 (19:11 +0200)]
python3:tests: Fix Python 3 test issues

- Forgotten text strings that should be binary
- Inverted PY3 condition

Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopython3: Use "y#" instead of "s#" for binary data in PyArg_ParseTuple
Petr Viktorin [Wed, 3 May 2017 14:57:07 +0000 (16:57 +0200)]
python3: Use "y#" instead of "s#" for binary data in PyArg_ParseTuple

The "s#" format code for PyArg_ParseTupleAndKeywords and Py_BuildValue
converts a char* and size to/from Python str (with utf-8 encoding under
Python 3).
In some cases, we want bytes (str on Python 2, bytes on 3) instead. The
code for this is "y#" in Python 3, but that is not available in 2.

Introduce a PYARG_BYTES_LEN macro that expands to "s#" or "y#", and use
that in:
- credentials.get_ntlm_response (for input and output)
- ndr_unpack argument in PIDL generated code

Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos3: smbd: Fix open_files.idl to correctly ignore share_mode_lease *lease in share_mod...
Jeremy Allison [Tue, 16 May 2017 23:12:19 +0000 (16:12 -0700)]
s3: smbd: Fix open_files.idl to correctly ignore share_mode_lease *lease in share_mode_entry.

This is currently marked 'skip', which means it isn't stored in the
db, but printed out in ndr dump. However, this pointer can be invalid
if the lease_idx is set to 0xFFFFFFFF (invalid).

This is fixed up inside parse_share_modes(), but not until after
ndr_pull_share_mode_data() is called. If lease_idx == 0xFFFFFFFF
then ndr_print_share_mode_lease() prints an invalid value and
crashes.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu May 18 03:01:40 CEST 2017 on sn-devel-144

2 years agoselftest: enable alternate streams for fs_specific share
David Disseldorp [Wed, 17 May 2017 10:54:15 +0000 (12:54 +0200)]
selftest: enable alternate streams for fs_specific share

This ensures that the new "smb2.ioctl.copy-chunk streams" test passes
when run under selftest atop Btrfs.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agos4/torture: vfs_fruit: test copy-chunk on streams
Ralph Boehme [Fri, 12 May 2017 15:10:07 +0000 (17:10 +0200)]
s4/torture: vfs_fruit: test copy-chunk on streams

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12787

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2 years agos4/torture: vfs_fruit: add src and dst path args to test_setup_copy_chunk
Ralph Boehme [Fri, 12 May 2017 12:56:53 +0000 (14:56 +0200)]
s4/torture: vfs_fruit: add src and dst path args to test_setup_copy_chunk

Just let the caller pass in the paths, no change in behaviour. A new
test in a subsequent commit will use it to pass paths to streams.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12787

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2 years agos4/torture: smb2.ioctl: add copy-chunk test with stream to smb2.ioctl
Ralph Boehme [Tue, 16 May 2017 11:14:16 +0000 (13:14 +0200)]
s4/torture: smb2.ioctl: add copy-chunk test with stream to smb2.ioctl

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12787

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2 years agos4/torture: smb2.ioctl: add src and dst path args to test_setup_copy_chunk
Ralph Boehme [Tue, 16 May 2017 11:13:08 +0000 (13:13 +0200)]
s4/torture: smb2.ioctl: add src and dst path args to test_setup_copy_chunk

Just let the caller pass in the paths, no change in behaviour. A new
test in a subsequent commit will use it to pass paths to streams.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12787

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2 years agolib/torture: add two more ndr assert macros
Ralph Boehme [Fri, 12 May 2017 15:09:08 +0000 (17:09 +0200)]
lib/torture: add two more ndr assert macros

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12787

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2 years agovfs_fruit: add pread_send/recv and pwrite_send/recv
Ralph Boehme [Fri, 12 May 2017 12:40:03 +0000 (14:40 +0200)]
vfs_fruit: add pread_send/recv and pwrite_send/recv

This is needed to support copy-chunk of streams. vfs_default issues
calls to async pread and pwrite (send/recv versions) since
commit60e45a2d25401eaf9a15a86d19114670ccfde259.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12787

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2 years agovfs_streams_xattr: add pread_send/recv and pwrite_send/recv
Ralph Boehme [Fri, 12 May 2017 05:58:01 +0000 (07:58 +0200)]
vfs_streams_xattr: add pread_send/recv and pwrite_send/recv

This is needed to support copy-chunk of streams. vfs_default issues
calls to async pread and pwrite (send/recv versions) since commit
60e45a2d25401eaf9a15a86d19114670ccfde259.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12787

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2 years agolib: Update pam_wrapper to 1.0.4
Andreas Schneider [Mon, 15 May 2017 15:25:27 +0000 (17:25 +0200)]
lib: Update pam_wrapper to 1.0.4

* Fix build on OpenBSD
* Fix a resource leak

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agolibads: abstract out SASL wrapping code
Alexander Bokovoy [Fri, 5 May 2017 12:37:20 +0000 (15:37 +0300)]
libads: abstract out SASL wrapping code

Prepare for rebasing libads on top of libsmbldap.

To make libads using 'struct smbldap_state' instead of direct LDAP
structure, we need to abstract out libads logic from connection
handling. SASL wrapping does not really depend on availability of LDAP
handle and does not need direct access to ADS_STRUCT. As result, we'll
be able to move SASL wrapping code under smbldap once the latter is able
to pass settings that libads passes to the SASL wrapping.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agoSMB_INFO_ALLOCATION: return with UINT32_MAX rather than cutting at 4 bytes
Peter Somogyi [Mon, 15 May 2017 08:21:01 +0000 (10:21 +0200)]
SMB_INFO_ALLOCATION: return with UINT32_MAX rather than cutting at 4 bytes

An AIX cifs client queries SMB_INFO_ALLOCATION that has only 4 bytes to report
dfree and dsize. Return the max instead of random unexpeced numbers.

Signed-off-by: Peter Somogyi <psomogyi@hu.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed May 17 05:49:46 CEST 2017 on sn-devel-144

2 years agowinbindd: Give winbindd_ads.c its own header
Volker Lendecke [Thu, 11 May 2017 19:38:50 +0000 (21:38 +0200)]
winbindd: Give winbindd_ads.c its own header

Not necessary to compile all of winbind when playing with ads.h

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agolibsmb: proto.h does not need ads.h
Volker Lendecke [Thu, 11 May 2017 19:30:30 +0000 (21:30 +0200)]
libsmb: proto.h does not need ads.h

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd/smb2_ioctl: check for NULL dst_fsp before use
David Disseldorp via samba-technical [Tue, 16 May 2017 12:03:32 +0000 (14:03 +0200)]
smbd/smb2_ioctl: check for NULL dst_fsp before use

...not after. CID #1409040.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed May 17 01:46:52 CEST 2017 on sn-devel-144

2 years agoldb-samba: Fix a possible NULL pointer dereference
Andreas Schneider [Mon, 8 May 2017 09:44:34 +0000 (11:44 +0200)]
ldb-samba: Fix a possible NULL pointer dereference

CID: #1402566
CID: #1402567

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue May 16 16:45:43 CEST 2017 on sn-devel-144

2 years agos3:winbind: Use a talloc stackframe for rpc_query_user_list
Andreas Schneider [Mon, 8 May 2017 09:34:54 +0000 (11:34 +0200)]
s3:winbind: Use a talloc stackframe for rpc_query_user_list

CID #1401581

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2 years agolibrpc:ndr: Set the length to 1 if we assign and empty string
Andreas Schneider [Mon, 8 May 2017 09:22:51 +0000 (11:22 +0200)]
librpc:ndr: Set the length to 1 if we assign and empty string

CID #1399648

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2 years agoctdb-tests: Use tighter pattern for matching expected output
Amitay Isaacs [Thu, 20 Apr 2017 04:34:54 +0000 (14:34 +1000)]
ctdb-tests: Use tighter pattern for matching expected output

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

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Mon May 15 08:08:10 CEST 2017 on sn-devel-144

2 years agoctdb-tests: Explicitly search for the specific log entry
Amitay Isaacs [Tue, 7 Mar 2017 05:52:26 +0000 (16:52 +1100)]
ctdb-tests: Explicitly search for the specific log entry

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

... instead of expecting the last line to be the matching log entry.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
2 years agos4: nmblookup: Allocate event context off NULL instead of talloc_autofree_context().
Jeremy Allison [Thu, 11 May 2017 23:15:56 +0000 (16:15 -0700)]
s4: nmblookup: Allocate event context off NULL instead of talloc_autofree_context().

It's already correctly freed on exit.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat May 13 21:01:25 CEST 2017 on sn-devel-144

2 years agos4: cifsdd: Allocate the event context off NULL, not talloc_autofree_context().
Jeremy Allison [Thu, 11 May 2017 23:10:31 +0000 (16:10 -0700)]
s4: cifsdd: Allocate the event context off NULL, not talloc_autofree_context().

Ensure it's freed on exit paths.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2 years agos4: client: Allocate event context off struct smbclient_context *, not talloc_autofre...
Jeremy Allison [Thu, 11 May 2017 23:01:59 +0000 (16:01 -0700)]
s4: client: Allocate event context off struct smbclient_context *, not talloc_autofree_context().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2 years agogensec: Add a TALLOC_CTX * to gensec_register().
Jeremy Allison [Thu, 11 May 2017 22:56:29 +0000 (15:56 -0700)]
gensec: Add a TALLOC_CTX * to gensec_register().

Pass in the TALLOC_CTX * from the module init to remove
another talloc_autofree_context() use.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2 years agos4: ntvfs: Add a TALLOC_CTX * to sys_notify_register().
Jeremy Allison [Thu, 11 May 2017 22:50:08 +0000 (15:50 -0700)]
s4: ntvfs: Add a TALLOC_CTX * to sys_notify_register().

Pass in the TALLOC_CTX * from the module init to remove
another talloc_autofree_context() use.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2 years agos4: ntvfs: Add a TALLOC_CTX * to sys_lease_register().
Jeremy Allison [Thu, 11 May 2017 22:49:28 +0000 (15:49 -0700)]
s4: ntvfs: Add a TALLOC_CTX * to sys_lease_register().

Pass in the TALLOC_CTX * from the module init to remove
another talloc_autofree_context() use.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2 years agos4: ntvfs: Add a TALLOC_CTX * paramter to pvfs_acl_register()
Jeremy Allison [Thu, 11 May 2017 22:45:57 +0000 (15:45 -0700)]
s4: ntvfs: Add a TALLOC_CTX * paramter to pvfs_acl_register()

Make use of the passed in TALLOC_CTX * from the init function
to remove a talloc_autofree_context() use.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2 years agos4: torture: Remove use of local variables that are simply mirroring popt_get_cmdline...
Jeremy Allison [Tue, 9 May 2017 23:28:53 +0000 (16:28 -0700)]
s4: torture: Remove use of local variables that are simply mirroring popt_get_cmdline_credentials().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri May 12 00:37:29 CEST 2017 on sn-devel-144

2 years agos4: popt: Change from talloc_autofree_context() to NULL context.
Jeremy Allison [Tue, 9 May 2017 23:20:07 +0000 (16:20 -0700)]
s4: popt: Change from talloc_autofree_context() to NULL context.

Call popt_free_cmdline_credentials() on successful exit from torture.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos4: popt: Make cmdline_credentials static.
Jeremy Allison [Tue, 9 May 2017 23:14:03 +0000 (16:14 -0700)]
s4: popt: Make cmdline_credentials static.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos4: popt: Global replace of cmdline_credentials -> popt_get_cmdline_credentials().
Jeremy Allison [Tue, 9 May 2017 23:10:03 +0000 (16:10 -0700)]
s4: popt: Global replace of cmdline_credentials -> popt_get_cmdline_credentials().

Add one use of popt_set_cmdline_credentials().
Fix 80 column limits when cmdline_credentials changes
to popt_get_cmdline_credentials().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos4: popt: Add set/get/free functions for cmdline_credentials.
Jeremy Allison [Tue, 9 May 2017 21:34:35 +0000 (14:34 -0700)]
s4: popt: Add set/get/free functions for cmdline_credentials.

Preparing to make this static instead of a global.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos4: Add TALLOC_CTX * to register_server_service().
Jeremy Allison [Tue, 9 May 2017 20:46:45 +0000 (13:46 -0700)]
s4: Add TALLOC_CTX * to register_server_service().

Use the passed in context from callers. Remove one
talloc_autofree_context().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos4: auth: Remove a talloc_autofree_context() use.
Jeremy Allison [Tue, 9 May 2017 20:28:49 +0000 (13:28 -0700)]
s4: auth: Remove a talloc_autofree_context() use.

Use NULL here, not the autofree context for this
static pointer. The destructor prevents freeing this
memory anyway.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos4: auth: Add TALLOC_CTX * to auth_register()
Jeremy Allison [Tue, 9 May 2017 19:39:14 +0000 (12:39 -0700)]
s4: auth: Add TALLOC_CTX * to auth_register()

Use the talloc context passed into all modules.
Remove one more talloc_autofree_context().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agotestprogs: Add 'net rpc user' test against AD DC
Andreas Schneider [Tue, 2 May 2017 10:31:48 +0000 (12:31 +0200)]
testprogs: Add 'net rpc user' test against AD DC

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agodocs: Remove old docs.
Karolin Seeger [Fri, 5 May 2017 09:02:28 +0000 (11:02 +0200)]
docs: Remove old docs.

This does not yet remove the Makefile rules for the removed xml, someone
with better make-fu should step in here.

Signed-off-by: Karolin Seeger <kseeger@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu May 11 19:37:37 CEST 2017 on sn-devel-144

2 years agodocs: Rename Samba3-Developers-Guide to Samba-Developers-Guide
Karolin Seeger [Fri, 5 May 2017 09:11:07 +0000 (11:11 +0200)]
docs: Rename Samba3-Developers-Guide to Samba-Developers-Guide

This guide is not obsolete but needs an update.

Signed-off-by: Karolin Seeger <kseeger@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed May 10 19:57:36 CEST 2017 on sn-devel-144

2 years agos3-lib/idmap_cache: remove some dead prototypes
Günther Deschner [Wed, 10 May 2017 08:05:59 +0000 (10:05 +0200)]
s3-lib/idmap_cache: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos4-lib/policy: remove some dead prototypes
Günther Deschner [Wed, 10 May 2017 07:34:33 +0000 (09:34 +0200)]
s4-lib/policy: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos4-libcli: remove some dead prototypes
Günther Deschner [Wed, 10 May 2017 07:33:47 +0000 (09:33 +0200)]
s4-libcli: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos4-auth: remove some dead prototypes
Günther Deschner [Wed, 10 May 2017 07:32:06 +0000 (09:32 +0200)]
s4-auth: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos4-rpc_server: remove some dead prototypes
Günther Deschner [Wed, 10 May 2017 07:28:53 +0000 (09:28 +0200)]
s4-rpc_server: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos3-rpc_server: remove some dead prototypes
Günther Deschner [Wed, 10 May 2017 07:28:40 +0000 (09:28 +0200)]
s3-rpc_server: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos3-proto: remove some dead prototypes
Günther Deschner [Tue, 9 May 2017 09:19:00 +0000 (11:19 +0200)]
s3-proto: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos3-libsmb: remove some dead prototype
Günther Deschner [Fri, 5 May 2017 16:14:29 +0000 (18:14 +0200)]
s3-libsmb: remove some dead prototype

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos3-lib: remove some dead prototypes
Günther Deschner [Fri, 5 May 2017 16:12:56 +0000 (18:12 +0200)]
s3-lib: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos3-winbindd: remove some dead prototypes
Günther Deschner [Fri, 5 May 2017 16:11:28 +0000 (18:11 +0200)]
s3-winbindd: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos3-smbd: remove some dead prototypes
Günther Deschner [Fri, 5 May 2017 16:08:02 +0000 (18:08 +0200)]
s3-smbd: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agolib/krb5_samba: remove some dead prototypes
Günther Deschner [Fri, 5 May 2017 14:26:31 +0000 (16:26 +0200)]
lib/krb5_samba: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos3-passdb: remove some dead prototypes
Günther Deschner [Fri, 5 May 2017 13:37:31 +0000 (15:37 +0200)]
s3-passdb: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agos3-auth: remove some dead prototypes
Günther Deschner [Fri, 5 May 2017 13:21:03 +0000 (15:21 +0200)]
s3-auth: remove some dead prototypes

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agosmbd/smb2_ioctl: instruct VFS to ignore locks for dup extents
David Disseldorp [Thu, 4 May 2017 13:09:36 +0000 (15:09 +0200)]
smbd/smb2_ioctl: instruct VFS to ignore locks for dup extents

As described in the previous commit - Windows Server 2016 (ReFS) ignores
locks for FSCTL_DUPLICATE_EXTENTS_TO_FILE. Do the same for Samba.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed May 10 12:27:00 CEST 2017 on sn-devel-144

2 years agovfs: add VFS_COPY_CHUNK_FL_IGNORE_LOCKS for dup extents
David Disseldorp [Thu, 4 May 2017 12:55:43 +0000 (14:55 +0200)]
vfs: add VFS_COPY_CHUNK_FL_IGNORE_LOCKS for dup extents

As confirmed by the Microsoft Protocol Open Specifications Team: Windows
Server 2016 (ReFS) ignores locks for FSCTL_DUPLICATE_EXTENTS_TO_FILE...

From: Jeff McCashland
To: David Disseldorp
CC: "cifs-protocol@lists.samba.org" <cifs-protocol@lists.samba.org>
Subject: RE: [116100414754619] FSCTL_DUPLICATE_EXTENTS_TO_FILE appears
 to completely bypass file locks
Date: Mon, 12 Dec 2016 20:44:08 +0000

Hi David,

We have made the following spec changes for the next doc release:

In section 2.1.5.9.4 FSCTL_DUPLICATE_EXTENTS_TO_FILE behavior notes have
been added to the following paragraphs.

Before:
§ The object store MUST check for byte range lock conflicts on
Open.Stream using the algorithm described in section 2.1.4.10 with
ByteOffset set to InputBuffer.TargetFileOffset, Length set to
InputBuffer.ByteCount, IsExclusive set to TRUE, LockIntent set to FALSE,
and Open set to Open. If a conflict is detected, the operation MUST be
failed with STATUS_FILE_LOCK_CONFLICT.

§ The object store MUST check for byte range lock conflicts on Source
using the algorithm described in section 2.1.4.10 with ByteOffset set to
InputBuffer.SourceFileOffset, Length set to InputBuffer.ByteCount,
IsExclusive set to FALSE, LockIntent set to FALSE, and Open set to
InputBuffer.FileHandle. If a conflict is detected, the operation MUST be
failed with STATUS_FILE_LOCK_CONFLICT.

After:
§ The object store SHOULD<WBN1> check for byte range lock conflicts on
Open.Stream using the algorithm described in section 2.1.4.10 with
ByteOffset set to InputBuffer.TargetFileOffset, Length set to
InputBuffer.ByteCount, IsExclusive set to TRUE, LockIntent set to FALSE,
and Open set to Open. If a conflict is detected, the operation MUST be
failed with STATUS_FILE_LOCK_CONFLICT.

§ The object store SHOULD<WBN2> check for byte range lock conflicts on
Source using the algorithm described in section 2.1.4.10 with ByteOffset
set to InputBuffer.SourceFileOffset, Length set to
InputBuffer.ByteCount, IsExclusive set to FALSE, LockIntent set to
FALSE, and Open set to InputBuffer.FileHandle. If a conflict is
detected, the operation MUST be failed with STATUS_FILE_LOCK_CONFLICT.

WBN1: The ReFS file system in Windows Server 2016 does not check for
byte range lock conflicts on Open.Stream.
WBN2: The ReFS file system in Windows Server 2016 does not check for
byte range lock conflicts on Source.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
2 years agosmbd/smb2_ioctl: validate dup_extent request lengths
David Disseldorp [Sat, 1 Oct 2016 21:40:13 +0000 (23:40 +0200)]
smbd/smb2_ioctl: validate dup_extent request lengths

FSCTL_DUPLICATE_EXTENTS_TO_FILE has some interesting behaviour when
exceeding the destination file length - the clone is truncated to only
cover the existing file region. If the existing length is zero, then
nothing is cloned.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
2 years agosmbd/smb2_ioctl: check sparseness for dup extents
David Disseldorp [Fri, 30 Sep 2016 18:53:07 +0000 (20:53 +0200)]
smbd/smb2_ioctl: check sparseness for dup extents

FSCTL_DUPLICATE_EXTENTS_TO_FILE should fail if the source is marked
sparse while the target is not:

From: Jeff McCashland
To: David Disseldorp
Subject: RE: FSCTL_DUPLICATE_EXTENTS_TO_FILE questions, 116092214702946
Date: Tue, 27 Dec 2016 18:06:14 +0000

...
We have updated the spec for future release:

Section 2.3.8 FSCTL_DUPLICATE_EXTENTS_TO_FILE Reply
Changed description of STATUS_NOT_SUPPORTED error code to:
"--The source and target destination ranges overlap on the same file.
--Source file is sparse, while -target is a non-sparse file.
--The source range is beyond the source file's allocation size."

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
2 years agovfs_btrfs: report FILE_SUPPORTS_BLOCK_REFCOUNTING capability
Aurelien Aptel [Thu, 30 Jul 2015 14:33:08 +0000 (16:33 +0200)]
vfs_btrfs: report FILE_SUPPORTS_BLOCK_REFCOUNTING capability

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
2 years agosmbd/smb2_ioctl: check for for overlap of dup extent ranges
David Disseldorp [Tue, 20 Sep 2016 16:48:37 +0000 (09:48 -0700)]
smbd/smb2_ioctl: check for for overlap of dup extent ranges

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
2 years agosmbd/smb2_ioctl: add support for FSCTL_DUPLICATE_EXTENTS_TO_FILE
Aurelien Aptel [Thu, 30 Jul 2015 14:16:15 +0000 (16:16 +0200)]
smbd/smb2_ioctl: add support for FSCTL_DUPLICATE_EXTENTS_TO_FILE

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2 years agovfs: add parameter to copy chunk VFS function to handle dup_extents
Aurelien Aptel [Mon, 24 Aug 2015 16:22:56 +0000 (18:22 +0200)]
vfs: add parameter to copy chunk VFS function to handle dup_extents

FSCTL_DUPLICATE_EXTENTS_TO_FILE must be handled as a COW clone. Add a
copy-chunk flags parameter to the VFS to handle this.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
2 years agotorture/ioctl: expect dup_extents(dest=compressed) to pass
David Disseldorp [Fri, 30 Sep 2016 19:35:09 +0000 (21:35 +0200)]
torture/ioctl: expect dup_extents(dest=compressed) to pass

The MS-FSCC spec doesn't mention anything about dup-extents against
compressed files.
This can't be tested against Windows, as ReFS doesn't support
compression, but COW clones of compressed files work on Btrfs.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
2 years agotorture/ioctl: fix dup_extents destination truncate
David Disseldorp [Wed, 3 May 2017 07:26:43 +0000 (09:26 +0200)]
torture/ioctl: fix dup_extents destination truncate

The dup_extents_compressed_dest test fails to correctly truncate the
dup_extents destination. Fix it.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
2 years agopackaging: Remove Mandrake
David Disseldorp [Tue, 9 May 2017 15:01:20 +0000 (17:01 +0200)]
packaging: Remove Mandrake

Mandriva was discontinued in 2011, and the link in the readme is dead.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed May 10 07:35:20 CEST 2017 on sn-devel-144