summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ldb: Release ldb 1.6.3ldb-1.6.3Andrew Bartlett2019-03-213-1/+283
| | | | | | | | | | | | * Remove Python 2.x support except to build just the bare C library * Remove --extra-python (a build time mode to produce Python2 and Python3 bindings at the same time) Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Mar 21 05:08:49 UTC 2019 on sn-devel-144
* tevent: Release tevent 0.10.0tevent-0.10.0Andrew Bartlett2019-03-212-1/+127
| | | | | | | | | | | * Remove Python 2.x support except to build just the bare C library * Remove --extra-python (a build time mode to produce Python2 and Python3 bindings at the same time) * New minor version to allow Samba 4.10 to release a tevent if required from that branch Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* tdb: Release tdb 1.4.0tdb-1.4.0Andrew Bartlett2019-03-212-1/+74
| | | | | | | | | | | * Remove Python 2.x support except to build just the bare C library * Remove --extra-python (a build time mode to produce Python2 and Python3 bindings at the same time) * New minor version to allow Samba 4.10 to release a tdb if required from that branch Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* talloc: Release talloc 2.2.0talloc-2.2.0Andrew Bartlett2019-03-214-2/+82
| | | | | | | | | | | * Remove pytalloc_CObject_FromTallocPtr() * Remove --extra-python (a build time mode to produce Python2 and Python3 bindings at the same time) * New minor version to allow Samba 4.10 to release a talloc if required from that branch Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* build: Standardise on calling conf.SAMBA_CHECK_PYTHON() in librariesAndrew Bartlett2019-03-217-50/+22
| | | | | | | | | | | | | We do this by removing the confusing mandatory option to conf.SAMBA_CHECK_PYTHON{,_HEADERS}(), instead just use the value of --disable-python internally This follows the default minimum of Python 3.4 and keeps things consistent with the main Samba build where --disable-python is required to skip building python bindings. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* build: Remove manual specification of minimum python versionAndrew Bartlett2019-03-213-4/+3
| | | | | | | We now used the default of 3.4 from conf.SAMBA_CHECK_PYTHON() Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* build: Set default minimum python version to 3.4.0Andrew Bartlett2019-03-211-1/+1
| | | | | | | | | This is the current minimum, but this may change before the 4.11 release. Python 2.x support is no longer available except to build using --disable-python. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* build: Do not make python mandatory to buildAndrew Bartlett2019-03-212-1/+6
| | | | | | | | Clearly we have python or else we would not be running, so this is about if we have a new enough version. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* ABI: Remove unused .py3*.sigs filesAndrew Bartlett2019-03-2137-211/+0
| | | | | | | | These are no longer used by the build system so avoid confusion by removing them from the tree. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* build: Remove distinct .py3 ABI filesAndrew Bartlett2019-03-211-3/+3
| | | | | | | | The only difference between the two built libraries is pytalloc_CObject_FromTallocPtr() which is deprecated. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* selftest: Remove mention of --extra-python from commentAndrew Bartlett2019-03-211-1/+1
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* selftest: Remove obsolete py3_compatible=True markersAndrew Bartlett2019-03-213-176/+143
| | | | | | | All our tests now run in python3. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* selftest: Remove support for running multiple tests against python versions ↵Andrew Bartlett2019-03-213-17/+1
| | | | | | | | | in a single run The extra_python support was added to aid the python3 transition Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* build: Remove bld.gen_python_environments()Andrew Bartlett2019-03-2128-567/+523
| | | | | | | This was part of --extra-python support. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* build: Remove --extra-pythonAndrew Bartlett2019-03-2111-87/+2
| | | | | | | | | | | This option is quite invasive in waf and was mainly for the python3 transition. Testing with multiple python versions can be done by testing a full compile against multiple versions, likewise multiple different binding versions can be created the same way. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* pytalloc: Remove deprecated pytalloc_CObject_FromTallocPtr()Andrew Bartlett2019-03-212-32/+0
| | | | | | | | This function makes it harder to remove the --extra-python handlers and is only provided for Python 2.x, support for which Samba is removing. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* libsmb: Make SMB1-only cli_nt_hardlink calls staticVolker Lendecke2019-03-202-48/+2
| | | | | | | | Signed-off-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 Mar 20 23:32:31 UTC 2019 on sn-devel-144
* utils: Use cli_hardlink instead of cli_nt_hardlinkVolker Lendecke2019-03-202-3/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Introduce protocol-agnostic cli_hardlinkVolker Lendecke2019-03-202-1/+248
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Use cli_smb2_set_info_fnum()Volker Lendecke2019-03-201-135/+56
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Simplify cli_smb2_ftruncateVolker Lendecke2019-03-201-8/+3
| | | | | | | | We don't need to talloc 8 bytes, they can live on the stack. When we go async, this can go into the state struct. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Simplify cli_smb2_delete_on_closeVolker Lendecke2019-03-201-21/+10
| | | | | | | Use cli_smb2_set_info_fnum, remove "state" variables Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Add cli_smb2_set_info_fnumVolker Lendecke2019-03-202-0/+127
| | | | | | | This wraps getting the file handle from the fnum Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:librpc: Fix installation of SambaAndreas Schneider2019-03-201-8/+0
| | | | | | | | | | | | This breaks installation of Samba 4.10 on Fedora. https://bugzilla.samba.org/show_bug.cgi?id=13847 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Mar 20 13:11:28 UTC 2019 on sn-devel-144
* py/graph: use 2.6 compatible check for set membershipDouglas Bagnall2019-03-201-1/+1
| | | | | | | | | | It is better this way anyway. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Mar 20 06:36:05 UTC 2019 on sn-devel-144
* regfio tests: Update comment style to match README.CodingAndrew Bartlett2019-03-201-1/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13840 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* regfio: Update code near recent changes to match README.CodingAndrew Bartlett2019-03-201-8/+14
| | | | | | | | | This file long predates our current code conventions. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13840 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* regfio: Improve handling of malformed registry hive filesMichael Hanselmann2019-03-204-1/+51
| | | | | | | | | | | | | | | * next_record: A malformed file can lead to an endless loop. * regfio_rootkey: Supplying a malformed registry hive file to the registry hive I/O code can lead to out-of-bounds reads. Test cases are included. Both issues resolved have been identified using AddressSanitizer. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13840 Signed-off-by: Michael Hanselmann <public@hansmi.ch> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* regfio: Add trivial unit testMichael Hanselmann2019-03-203-0/+147
| | | | | | | | | | | An upcoming commit will resolve two cases of insufficient handling of mangled registry hive files and will include unit tests. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13840 Signed-off-by: Michael Hanselmann <public@hansmi.ch> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* regfio: Use correct function names in debug informationMichael Hanselmann2019-03-201-3/+3
| | | | | | Signed-off-by: Michael Hanselmann <public@hansmi.ch> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Fix typos in "valid"Michael Hanselmann2019-03-202-2/+2
| | | | | | | | s/vald/valid/ Signed-off-by: Michael Hanselmann <public@hansmi.ch> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* build: Allow build when --disable-gnutls is setAndrew Bartlett2019-03-201-1/+5
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13844 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Wed Mar 20 05:25:48 UTC 2019 on sn-devel-144
* s3: smbd: Clarify POSIX name handling in SMB2 get/setinfo calls.Jeremy Allison2019-03-192-2/+2
| | | | | | | | | | | | We should never be looking at the info level here, the create call will have set the correct POSIX flag on the smb_filename struct. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 19 22:55:11 UTC 2019 on sn-devel-144
* smbd: Focus smb_file_link_information on correct posix'nessVolker Lendecke2019-03-191-1/+2
| | | | | | | | | | | | | | | | | In the SMB1 unix extensions, posix'ness is a property of the SMB request, because it's tied to the connection. In the upcoming SMB3 extensions, this will become a property of the file name, it's being set at SMB2_CREATE time. To correctly transfer posix'ness of the filename to the destination name, we can't look at the req->posix_pathnames here, the SMB2_SETINFO call has not set that. This is still correct for SMB1, as the per-connection posix'ness has spilled into the filename there too. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 19 18:46:28 UTC 2019 on sn-devel-144
* smbd: Enhance debugging for setting hard linksVolker Lendecke2019-03-191-2/+9
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* talloc: Fix alignment issues for casting pointersAndreas Schneider2019-03-191-5/+25
| | | | | | | | | | | warning: cast from 'char *' to 'struct talloc_chunk *' increases required alignment from 1 to 8 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Mar 19 12:38:50 UTC 2019 on sn-devel-144
* vfs_nfs4acl_xattr: check status for NT_STATUS_ACCESS_DENIED in take ↵Ralph Boehme2019-03-181-0/+3
| | | | | | | | | | | | ownership override This was missing in commit 8b1b1cd8cc561378058b915e03996ff567355d81. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Mar 18 20:19:30 UTC 2019 on sn-devel-144
* selftest: test vfs_nfs4acl_xattr in nfs modeRalph Boehme2019-03-183-0/+29
| | | | | | | | The same tests as for the other modes xdr and ndr are marked as knownfail. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs_nfs4acl_xattr: support for NFS 4.0 and 4.1 ACLs from NFS4 mountRalph Boehme2019-03-186-1/+994
| | | | | | | | | | | | | | | | | | | | | This adds a new main switch "nfs" to "nfs4acl_xattr:encoding" which enables to use NFS4 ACLs from an NFS4 mount on a Linux box. Tested with a FreeBSD NFS4 server. Supports both NFS 4.0 and 4.1 ACLs. By default NFS4 servers send user and group identifiers in ACLs as strings in the format "[USER|GROUP]@DNSDOMAIN". Some NFS4 servers support sending identifiers as numeric strings. This module does support this as well, the config knob "nfs4acl_xattr:nfs4_id_numeric = yes|no" controls behaviour. When "nfs4acl_xattr:encoding" is set to "nfs", the new option "nfs4acl_xattr:validate_mode", which defauts to "yes" is set to "no" to avoid checking and munging the mode on files. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* nfs4acl_xattr: reformat enum nfs4acl_encoding to one per lineRalph Boehme2019-03-181-1/+4
| | | | | | | In preperation of adding another enum value. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* nfs4acl_xattr: add RFC compliant NFS 4.0 and 4.1 ACL defintionsRalph Boehme2019-03-181-0/+17
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* nfs4acl_xattr: move a define to a common header fileRalph Boehme2019-03-182-1/+2
| | | | | | | In preperation of a adding real NFS backend. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* nfs4acl_xattr: move some functions to a seperate fileRalph Boehme2019-03-184-34/+100
| | | | | | | | These functions will be called from another translation unit in a subsequent commit. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* nfs4acl_xattr: append 'i' to nfs4acl functionsRalph Boehme2019-03-181-37/+37
| | | | | | | This reflects the new struct names the functions use. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* nfs4acl_xattr: identifiers are XDR encoded as integersRalph Boehme2019-03-182-26/+26
| | | | | | | | | | | | The structs nfsacl41 and nfsace4 are not RFC 3530 compliant, let's rename them adding a trailing "i" that indicates that the structs store identifiers as integers. struct nfsace4 -> struct nfsace4i struct nfsacl41 -> struct nfsacl41i Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Fix a "assuming signed overflow does not occur" errorVolker Lendecke2019-03-181-3/+4
| | | | | | | | Eventually we need to convert internal_resolve_name to "size_t" for "return_count". But that's a patch for another day :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* libsmb: Align integer typesVolker Lendecke2019-03-181-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* heimdal: Fix "assuming signed overflow doesnt occur" errorVolker Lendecke2019-03-181-4/+4
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* libsmb: Use cli_smb2_query_info_fnumVolker Lendecke2019-03-181-238/+133
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Add cli_smb2_query_info_fnumVolker Lendecke2019-03-182-0/+179
| | | | | | | This wraps getting the file handle from the fnum Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>