summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:modules/vfs_gpfs add GPFS_GETACL_NATIVE defineChristian Ambach2013-02-041-0/+4
| | | | | | | | this is not in the official GPFS header file, but can be found in the GPL'd kernel module sources Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:modules/non_posix_acls: only stat if we do not have it cachedChristian Ambach2013-02-041-4/+8
| | | | | | | most probably we already have the stat() information Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3-waf:modules add non_posix_acls dependency to vfs_gpfsChristian Ambach2013-02-041-1/+1
| | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* vfs: Add helper function for non posix ACL modulesAndrew Bartlett2013-02-043-0/+136
| | | | | | | | | | | This handles the stat, and fills in the pre-supplied blob into a wrapper sturcture that can then be returned to vfs_acl_common for hashing. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* vfs_acl_common: Do not fetch the underlying NT ACL unless we need itAndrew Bartlett2013-02-041-44/+80
| | | | | | | | | | This avoids asking for the posix ACL on disk twice, and avoids running a good deal of mapping code if it is not needed. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* vfs: Whitespace fix only to get_nt_acl_internal indentationAndrew Bartlett2013-02-041-4/+4
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* vfs: Implement an improved vfs_acl_common that uses the hash of the system ACLAndrew Bartlett2013-02-041-51/+250
| | | | | | | | | | | | | | | | Where supported by the system ACL backend, this avoids hashing the result of the ACL mapping, instead hashing the original ACL, linearlised. For maximum robustness, the hash of the NT and system ACL are stored, along with the time and a description of the system ACL. This variety of extra metadata may assist some future implementation in determining which hash to validate. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* vfs: Add helper function hash_blob_sha256 to vfs_acl_common.cAndrew Bartlett2013-02-041-7/+19
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* Move copychunk locking to be local to the read/write calls.Jeremy Allison2013-01-181-0/+42
| | | | | | | | | | Eliminates the need to hold locks across the entire lifetime of the call. Next commit will remove these. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* s3-vfs: add copy_chunk vfs hooksDavid Disseldorp2013-01-163-0/+234
| | | | | | | | | | | | | | | | | | copy_chunk copies n bytes from a source file at a specific offset to a destination file at a given offset. This interface will be used in handling smb2 FSCTL_SRV_COPYCHUNK ioctl requests. Use a pread/pwrite loop in vfs_default, so that requests referring to the same src and dest file are possible. Provide send and receive hooks for copy chunk VFS interface, allowing asynchronous behaviour. Check whether the request source offset + length exceeds the current size. Return STATUS_INVALID_VIEW_SIZE under such a condition, matching Windows server behaviour. Reviewed by: Jeremy Allison <jra@samba.org>
* smbd: Fix bug 9544, part 2Volker Lendecke2013-01-151-0/+80
| | | | | | | | | Plug in async pwrite Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jan 15 00:55:51 CET 2013 on sn-devel-104
* smbd: Fix bug 9544, part 1Volker Lendecke2013-01-141-3/+3
| | | | | | Adapt the sync function names Reviewed by: Jeremy Allison <jra@samba.org>
* vfs: Fix compilation of solaris ACL moduleAndrew Bartlett2013-01-101-1/+1
| | | | | | Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3: Fix vfs_zfsacl to compile.Ira Cooper2013-01-091-3/+3
| | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Add uint32_t share_access to vuid_cache_entry.Jeremy Allison2013-01-091-0/+1
| | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Clean up struct connection_struct, make struct vuid_cache a pointer not inline.Jeremy Allison2013-01-091-2/+2
| | | | | | | | Change VFS ABI to 31 for 4.1.0. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3-vfs: Fix a null pointer deferference in vfs_media_harmony.Andreas Schneider2012-12-211-1/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* s3-vfs: Fix typo in readonly_connect().Andreas Schneider2012-12-211-1/+1
| | | | | | | Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* vfs: Make sure we don't call talloc_free on an uninitialized pointer.Andreas Schneider2012-12-121-1/+1
| | | | | | | Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s3:smbd:vfs_acl: fix a PANIC when setting an ACL fails with ACCESS_DENIEDMichael Adam2012-12-041-0/+1
| | | | | | | | | | | | Omission to free the talloc frame causes a panic (at least in developer mode) in the next main event loop due to "Frame not freed in order." (Freed frame ../source3/smbd/process.c:3617, expected ../source3/modules/vfs_acl_common.c:534.) Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Dec 4 09:03:25 CET 2012 on sn-devel-104
* s3:vfs_gpfs: add no memory check in gpfs2smb_acl()Stefan Metzmacher2012-11-281-0/+5
| | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Nov 28 14:06:27 CET 2012 on sn-devel-104
* s3:vfs_gpfs: make sure we return the correct errno in gpfs2smb_acl()Stefan Metzmacher2012-11-281-1/+1
| | | | | | | TALLOC_FREE() could overwrite errno. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:vfs_aixacl2: make use of vfs_aixacl_util.hStefan Metzmacher2012-11-281-3/+1
| | | | | | | This should fix the build. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:modules:nfs4_acls remove unused mem_ctx parameter to smbacl4_fill_ace4Christian Ambach2012-11-171-3/+1
| | | | | | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Nov 17 01:11:07 CET 2012 on sn-devel-104
* s3:modules:nfs4_acls fix memory hierarchy in smb_create_smb4aclChristian Ambach2012-11-161-2/+1
| | | | | | | | the ACEs should be talloc children of the ACL itself and not be placed on talloc_tos() Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:vfs_gpfs fix a memory leak in gpfsacl_get_posix_aclChristian Ambach2012-11-161-0/+3
| | | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:vfs_gpfs fix memory corruption in gpfs2smb_aclChristian Ambach2012-11-161-0/+2
| | | | | | | | | | | sys_acl_init returns a SMB_ACL_T with zero entries in the acl array reallocate the array to proper size before filling it, otherwise we overwrite memory This one is a result of a improper fixing in 7a6182962966e5edb42728c8 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:vfs_gpfs fix memory leak in gpfs_get_nfs4_aclChristian Ambach2012-11-161-0/+1
| | | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:vfs_gpfs fix memory leaks in gpfs_getacl_allocChristian Ambach2012-11-161-2/+4
| | | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:vfs_default: optimize vfswrap_asys_finished() and read as much as we canStefan Metzmacher2012-11-051-16/+33
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Nov 5 19:01:13 CET 2012 on sn-devel-104
* vfs_acl_common: In add_directory_inheritable_components allocate on psd as ↵Andrew Bartlett2012-11-021-4/+16
| | | | | | | | | | | | | | | | parent When we add a new DACL to the security descriptor, we need to use the SD as the memory context, so we can talloc_move() it as a tree to a new parent. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Nov 2 22:16:14 CET 2012 on sn-devel-104
* vfs: Fix compilation of ACL support on solarisAndrew Bartlett2012-10-231-2/+4
|
* s3:vfs_gpfs re-indent run-away linesChristian Ambach2012-10-121-4/+10
| | | | some lines added by the acl_blob additions were longer than 80 chars
* s3:vfs_gpfs fix the buildChristian Ambach2012-10-121-5/+11
| | | | make it compile again after the recent (untested) additions of the acl_blob functions
* s3:vfs_gpfs remove a trailing spaceChristian Ambach2012-10-121-1/+1
|
* s3:vfs_gpfs skip local flock when gpfs sharemodes are disabledChristian Ambach2012-10-121-2/+5
| | | | no sense in calling local flock when clustered sharemodes should be disabled
* vfs: Remove irixacl module (all the fucntions in it are unimplemented)Andrew Bartlett2012-10-113-145/+0
|
* vfs: Fix alternative posix and no-op sys acl implementations to take a mem_ctxAndrew Bartlett2012-10-113-9/+13
| | | | | | These were missed with the initial conversion to use a talloc context. Andrew Bartlett
* vfs: Improve formatting of vfs_fake_aclsAndrew Bartlett2012-10-111-2/+2
| | | | | | | | | This avoids this bad style being copied into new modules. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 11 05:10:16 CEST 2012 on sn-devel-104
* vfs: Improve formatting of vfs_defaultAndrew Bartlett2012-10-111-23/+23
| | | | | | This avoids this bad style being copied into new modules. Andrew Bartlett
* vfs: Use a blocking function in vfs_zfsacl for system ACL blobsAndrew Bartlett2012-10-111-0/+12
| | | | | | | This is so we do not query some other module for the ACL blob, as zfs ACLs are not posix ACLs. We may add a linearisation later. Andrew Bartlett
* vfs: Use posix_sys_acl_blob_get_file in vfs_tru64acl for posix ACLsAndrew Bartlett2012-10-111-0/+2
|
* vfs: Use posix_sys_acl_blob_get_file in vfs_solarisacl for posix ACLsAndrew Bartlett2012-10-111-0/+2
|
* vfs: Use posix_sys_acl_blob_get_file in vfs_posixacl for posix ACLsAndrew Bartlett2012-10-111-0/+2
|
* vfs: Use posix_sys_acl_blob_get_file in vfs_irix for posix ACLsAndrew Bartlett2012-10-111-0/+2
|
* vfs: Use posix_sys_acl_blob_get_file in vfs_hpux for posix ACLsAndrew Bartlett2012-10-111-0/+2
|
* vfs: Use posix_sys_acl_blob_get_file in vfs_gpfs for posix ACLsAndrew Bartlett2012-10-111-0/+58
|
* vfs: Use posix_sys_acl_blob_get_file in vfs_fake_acls for posix ACLsAndrew Bartlett2012-10-111-67/+2
|
* vfs: Use posix_sys_acl_blob_get_file in vfs_default for posix ACLsAndrew Bartlett2012-10-111-0/+2
|
* vfs: Use posix_sys_acl_blob_get_file in vfs_aixacl2 for posix ACLsAndrew Bartlett2012-10-111-0/+38
|