summaryrefslogtreecommitdiff
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
* vfs_scannedonly: Remove vfs_scannedonly from samba source tree.Robin Hack2015-08-212-1052/+0
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11459 Signed-off-by: Robin Hack <hack.robin@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Aug 21 07:17:35 CEST 2015 on sn-devel-104
* s3:modules/perfcount_*: make function prototypes available via ↵Stefan Metzmacher2015-08-201-0/+1
| | | | | | | | | static_decl_perfcount; This allows the static build of the modules. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:modules/vfs_*: make function prototypes available via static_decl_vfs;Stefan Metzmacher2015-08-2012-1/+12
| | | | | | | This allows the static build of the modules. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:wscript: remove leftover from vfs_notify_famStefan Metzmacher2015-08-201-4/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* vfs: Add some {}Volker Lendecke2015-08-201-1/+2
| | | | | | | | The "mode = " from a very casual view looked as if it was part of the if-condition Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* nfs4acls: Remove type_name param from smbacl4_get_vfs_paramsVolker Lendecke2015-08-131-10/+10
| | | | | | | | | | | It is kindof unexpected that we get params for something else but "nfs4:" Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Aug 13 17:45:31 CEST 2015 on sn-devel-104
* nfs4acls: Fix a small memleakVolker Lendecke2015-08-131-1/+1
| | | | | | | | We don't need the nt_ace_list beyond this function, make_sec_acl makes a copy and make_sec_desc makes another one Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Introduce a helper variableVolker Lendecke2015-08-131-3/+5
| | | | | | | ... triggered by removing a "==false" condition Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Remove a few unnecessary castsVolker Lendecke2015-08-131-15/+8
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Use talloc_realloc()Volker Lendecke2015-08-131-3/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Use talloc_zero_array()Volker Lendecke2015-08-131-2/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Use talloc_zero()Volker Lendecke2015-08-131-2/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Use talloc_zero()Volker Lendecke2015-08-131-2/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Remove get_validated_aceintVolker Lendecke2015-08-131-31/+8
| | | | | | | | With the anonymous struct SMB4ACE_T we can rely on the compiler to warn us Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Remove get_validated_aclintVolker Lendecke2015-08-131-69/+39
| | | | | | | | With the anonymous struct SMB4ACL_T we can rely on the compiler to warn us Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Remove the SMB_ACE4_INT_T typedefVolker Lendecke2015-08-131-22/+22
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Remove the SMB_ACL4_INT_T typedefVolker Lendecke2015-08-131-16/+16
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Use SMB4ACE_T instead of _SMB_ACE4_INT_TVolker Lendecke2015-08-131-1/+1
| | | | | | | | We can make the _INT_ structure now be the representation of the published anonymous struct Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Use SMB4ACL_T instead of _SMB_ACL4_INT_TVolker Lendecke2015-08-131-1/+1
| | | | | | | | We can make the _INT_ structure now be the representation of the published anonymous struct Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Remove an obsolete commentVolker Lendecke2015-08-131-4/+0
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Use an anon struct for SMB4ACE_TVolker Lendecke2015-08-136-21/+21
| | | | | | | | | | -typedef struct _SMB4ACE_T {char dontuse;} SMB4ACE_T; +struct SMB4ACE_T; Same as for ACL_T Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Use an anon struct for SMB4ACL_TVolker Lendecke2015-08-136-62/+68
| | | | | | | | | | | | | The relevant change: -typedef struct _SMB4ACL_T {char dontuse;} SMB4ACL_T; +struct SMB4ACL_T; We can use anonymous structs to prevent direct use. This patch will trigger a set of simplifications in the next patches Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* nfs4acls: Use ZERO_STRUCTPVolker Lendecke2015-08-131-4/+4
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* vfs_catia: run translation on stream namesRalph Boehme2015-08-071-4/+54
| | | | | | | | | | | | | With vfs_fruit option "fruit:encoding = native" we're already converting stream names that contain illegal NTFS characters from their on-the-wire Unicode Private Range encoding to their native ASCII representation. Unfortunately the reverse mapping for stream names was not perfomed. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11278 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* vfs_streams_xattr: stream names may contain colonsRalph Boehme2015-08-071-1/+15
| | | | | | | | | | | | | | | With vfs_fruit option "fruit:encoding = native" we're already converting stream names that contain illegal NTFS characters from their on-the-wire Unicode Private Range encoding to their native ASCII representation. As as result the name of xattrs storing the streams (via vfs_streams_xattr) may contain a colon, so we have to use strrchr_m() instead of strchr_m() for matching the stream type suffix. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11278 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* vfs: fix build warning in smb traffic analyzer.Günther Deschner2015-07-242-3/+2
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* vfs: Fix CID 1312072 Failure to restore non-local valueVolker Lendecke2015-07-221-9/+12
| | | | | | | | 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 Jul 22 09:06:29 CEST 2015 on sn-devel-104
* vfs: Fix CID 1312073 Argument cannot be negativeVolker Lendecke2015-07-221-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: Consolidate failure paths in vfswrap_init_asys_ctxVolker Lendecke2015-07-171-6/+7
| | | | | | | | 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): Fri Jul 17 01:35:33 CEST 2015 on sn-devel-104
* vfs: Fix CID 1035384 Unchecked return value from libraryVolker Lendecke2015-07-161-1/+7
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs_shadow_copy2: change log level from 0 to 1 and log share pathRalph Boehme2015-07-161-2/+3
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* vfs_fruit: Fix the 32-bit buildVolker Lendecke2015-07-131-4/+5
| | | | | | | | | | "z" is only for size_t, here we have off_t Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Jul 13 11:53:47 CEST 2015 on sn-devel-104
* vfs_gpfs: Use C99 initializers instead of ZERO_STRUCTChristof Schmitt2015-07-081-8/+4
| | | | | Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* vfs_gpfs: Use ACL defines from GPFS 3.5 header filesChristof Schmitt2015-07-081-16/+12
| | | | | | | | GPFS 3.5 is now the oldest support version. Cleanup the ACL code by using the defines and structs from the 3.5 header file. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* smbd: Remove SMB_VFS_NOTIFY_WATCHVolker Lendecke2015-07-075-130/+0
| | | | | | | No longer needed Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbd: Remove the notify_fam moduleVolker Lendecke2015-07-072-323/+0
| | | | | | | This has been moved to main smbd Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: Make "kernel change notify" globalVolker Lendecke2015-07-071-1/+1
| | | | | | | | With a central notifyd, we can't do this per share anymore. Notifyd will only look at absolute paths, not shares. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs_fruit: Fix CID 1311244 Out-of-bounds readVolker Lendecke2015-07-071-1/+1
| | | | | | | | | | We should not call memcpy if the offset is exactly AFP_INFO_SIZE Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Tue Jul 7 14:04:39 CEST 2015 on sn-devel-104
* vfs_fruit: check offset and length for AFP_AfpInfo read requestsRalph Boehme2015-07-021-1/+15
| | | | | | | | | | | | fruit_pread doesn't check the offset and length parameters and instead always writes 60 bytes, the size of the AFP_AfpInfo blob, to the the passed buffer. If the passed in buffer is smaller, we overwrite something somewhere. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11363 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3:vfs: copy_chunk buffer sizeRalph Boehme2015-07-011-2/+8
| | | | | | | | | | | | | | | | | | Use a dynamically allocated copy_chunk buffer size with an upper bound of 8 MB for now. The previous size of 64 KB has proven to really hurt performance, especially with "strict locking = yes". The SMB2 protocol level maximum allowed copy_chunk size is 1 MB, that's what will be used as buffer size in the typical case. With the AAPL copyfile extension the requested copy_chunk size is the size whole file, which would then make use of a larger buffer up to the limit of 8 MB. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs:fruit: implement copyfile style copy_chunkRalph Boehme2015-06-231-0/+218
| | | | | | | | | | | | | | Implement Apple's special copy_chunk ioctl that requests a copy of the whole file along with all attached metadata. These copy_chunk requests have a chunk count of 0 that we translate to a copy_chunk_send VFS call overloading the parameters src_off = dest_off = num = 0. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11317 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* vfs_fruit: simplify lp_parm_bool checkRalph Boehme2015-06-231-22/+13
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* vfs_fruit: add option veto_appledoubleRalph Boehme2015-06-091-20/+28
| | | | | | | | | | | | | | | | | | | | | | vfs_fruit adds a wildcard path "._*" to the vetolist in order to prevent client access to ._ AppleDouble files created internally by vfs_fruit for storing the Mac resource fork stream. Unfortunately there are legitimite use cases where an OS X client may want to use such filenames, extracting ZIP archives (where the archive contains ._ files) being one of them. A possible simple solution to this problem would be to not veto ._ files in the first place, even though that exposes internally created ._ files which the client shouldn't be able to access. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11305 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Tue Jun 9 14:48:14 CEST 2015 on sn-devel-104
* vfs_hpuxacl: Fix typo in comment...Karolin Seeger2015-05-211-3/+3
| | | | | | | and remove some trailing whitespaces. Signed-off-by: Karolin Seeger <kseeger@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:modules: remove unused allow_warnings=True for vfs_nfs4acl_xattrStefan Metzmacher2015-05-191-1/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:vfs_nfs4acl_xattr: fix compiler warningsStefan Metzmacher2015-05-191-10/+12
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:modules: remove unused allow_undefined_symbols=False from vfs_glusterfsStefan Metzmacher2015-05-191-2/+1
| | | | | | | This is the default... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:modules: remove unused allow_undefined_symbols=True from vfs_aio_*Stefan Metzmacher2015-05-191-8/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:modules: remove unused allow_warnings=True for vfs_aio_forkStefan Metzmacher2015-05-191-1/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:vfs_aio_fork: avoid -Wcast-qual warningsStefan Metzmacher2015-05-191-3/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>