summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
* s3:vfs_fake_acls fix a compiler warningChristian Ambach2012-09-231-1/+1
| | | | | | | about acl being potentially uninitialized Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Sun Sep 23 01:08:39 CEST 2012 on sn-devel-104
* vfs: fix acl_blob_get* in vfs_full_auditDavid Disseldorp2012-09-201-9/+11
| | | | | | | Plumb-in functions and use correct return types. Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Thu Sep 20 20:42:09 CEST 2012 on sn-devel-104
* vfs: fix lock logging in vfs_full_auditDavid Disseldorp2012-09-201-4/+4
|
* s3:vfs_gpfs: fix buildChristian Ambach2012-09-161-5/+5
| | | | after recent VFS changes
* s3: fix the hpux acl moduleBjörn Jacke2012-09-141-5/+5
| | | | | | | This was not adopted to the recent VFS acl structure changes. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Sep 14 12:23:23 CEST 2012 on sn-devel-104
* s3: fix the tru64 acl moduleBjörn Jacke2012-09-141-5/+5
| | | | This was not adopted to the recent VFS acl structure changes.
* s3: fix the aix acl moduleBjörn Jacke2012-09-141-9/+9
| | | | This was not adopted to the recent VFS acl structure changes.
* s3: Fix the vfs_solarisacl module to compile.Ira Cooper2012-09-141-5/+5
| | | | | | | This got broken with the recent VFS acl structure changes. Autobuild-User(master): Ira Cooper <ira@samba.org> Autobuild-Date(master): Fri Sep 14 05:21:29 CEST 2012 on sn-devel-104
* In vfs modules, don't use 'conn->origpath' when we really mean 'conn->cwd'.Jeremy Allison2012-09-124-10/+10
| | | | | | | | This allows VFS modules to work even when we've changed directory under the connect path in order to do root-safe calls. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Sep 12 23:45:23 CEST 2012 on sn-devel-104
* smbd: Add extra VFS hooks to get the posix ACL as a blobAndrew Bartlett2012-09-123-0/+153
| | | | | | | | | | | This will allow us to hash this, rather than the NT ACL it maps to. This will in turn allow us to know if the NT ACL is valid even if we have to change the mapping code. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Sep 12 07:06:01 CEST 2012 on sn-devel-104
* smbd: Remove pre-allocation of ACL array in sys_acl_init()Andrew Bartlett2012-09-121-1/+1
| | | | | | | | Instead, this is just handled with realloc in sys_acl_create_entry() This allows us to remove the size element from the SMB_ACL_T. Andrew Bartlett
* smbd-posix_acls: Use a IDL union to store the ACL entryAndrew Bartlett2012-09-121-4/+4
| | | | | | | This is a clearer, long-term-stable structure we can hash without risking it changing. Andrew Bartlett
* smbd: Print ACL used to create hash in vfs_xattr_commonAndrew Bartlett2012-09-111-0/+10
| | | | | | | | | This should help us understand why sometimes an ACL set won't stick. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Sep 11 18:19:53 CEST 2012 on sn-devel-104
* s3:vfs/time_audit: Add back pointer for sys_acl_delete_def_file_fnChristof Schmitt2012-09-101-0/+1
| | | | | | | | | Commit e25830dcd87387a237b96f0d70deb204a5bf0a54 removed the function pointer from the time_audit module, although the VFS function still exists. Add the function pointer again in time_audit as this seems to be an accidentally deletion. Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:vfs/time_audit: add path names to log messagesRalph Wuerthner2012-09-101-80/+170
| | | | Signed-off-by: Christian Ambach <ambi@samba.org>
* s3: fix wrong invocations of talloc_reallocBjörn Jacke2012-09-091-2/+2
|
* s3:vfs_default: add basic support for durable handle request and reconnectMichael Adam2012-09-081-3/+6
| | | | | | | | | | | | We only grant durable handles for CIFS/SMB2 only access, that means "kernel oplocks", "kernel share modes" and "posix locking" need to be set to "no". For now we also don't grant durable handles if delete on close is active on the handle. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Pair-Programmed-With: Volker Lendecke <vl@samba.org>
* s3:vfs: add durable VFS operationsMichael Adam2012-09-081-1/+34
| | | | | | This allows a VFS module to implement durable handles in different ways. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3: Fix 64-bit warnings in vfs_media_harmonyVolker Lendecke2012-09-061-1/+1
|
* build: Remove unused deps from vfs modulesAndrew Bartlett2012-09-051-2/+2
| | | | | | | | | Both these modules are just implemented in terms of other modules. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Sep 5 03:34:08 CEST 2012 on sn-devel-104
* build: Remove references to charset modules - we no longer have theseAndrew Bartlett2012-09-041-0/+1
|
* build: vfs_fake_acls does not need the acl libAndrew Bartlett2012-09-041-1/+1
|
* s3: Fix warnings in aio_fork.cVolker Lendecke2012-09-011-2/+4
|
* s3: Fix a few "warning: ISO C90 forbids mixed declarations and code"Volker Lendecke2012-08-311-154/+234
| | | | | Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Aug 31 19:24:47 CEST 2012 on sn-devel-104
* s3:vfs_gpfs: Use directory not file to get fileset idChristof Schmitt2012-08-292-5/+35
| | | | | | | | | | | | | | | The query of the fileset quota needs to determine the file set id first. With the currently available interface, this requires opening the file to get a file descriptor. For files, this open can fail when a share mode is set. Workaround this by querying the fileset id on the directory instead. The proper solution would be getting an interface for getting the fileset id that does not require opening the file. Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Wed Aug 29 18:58:34 CEST 2012 on sn-devel-104
* vfs_media_harmony: fix some compile warnings with llvmBjörn Jacke2012-08-291-66/+66
| | | | | Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Aug 29 16:05:10 CEST 2012 on sn-devel-104
* s3-vfs: Try to be consistent about localtime vs GMT handling in vfs_shadow_copy2Andrew Bartlett2012-08-281-12/+19
| | | | | | | With the ability to handle times a abolute time_t values since 1970 this becomes more important to get absolutly correct. Andrew Bartlett
* s3-vfs_shadow_copy2: Also accept a sscanf resultAndrew Bartlett2012-08-281-18/+46
|
* s3-vfs: Remove extra calls to SMB_VFS_HANDLE_GET_DATAAndrew Bartlett2012-08-221-6/+0
| | | | | | Found by the talloc_stackframe() out of order checker! Andrew Bartlett
* s3-vfs: Make vfs_aio_fork erratic timing behaviour a run-time optionAndrew Bartlett2012-08-211-5/+44
| | | | | | This will allow this to be tested as part of a normal selftest. Andrew Bartlett
* build: Remove special case for the build farmAndrew Bartlett2012-08-211-3/+3
| | | | | | | | | | | Except in the formatting of the selftest output, this removes the special case of the build farm, so that an autobuild, a manual make test and the build farm are more similar. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 21 06:39:04 CEST 2012 on sn-devel-104
* s3-vfs: Add lstat and lchown hooks to the vfs_fake_acls moduleAndrew Bartlett2012-08-201-0/+63
|
* s3-vfs: Correct the implementation of fake_acls_sys_acl_delete_def_file()Andrew Bartlett2012-08-201-1/+31
|
* s3-vfs: Use the system. namespace for fake ACLsAndrew Bartlett2012-08-201-4/+4
| | | | | | | By using the system. namespace, we make sure this is only run on top of a TDB based ACL store (ie in make test). Andrew Bartlett
* s3-vfs: Allow vfs_xattr_tdb to work without a connected shareAndrew Bartlett2012-08-201-19/+99
| | | | | | This is needed to that get_nt_acl_no_snum() can work. Andrew Bartlett
* s3:vfs_tsmsm only send notifications when file was offline beforeChristian Ambach2012-08-171-2/+6
| | | | | Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Fri Aug 17 20:05:30 CEST 2012 on sn-devel-104
* s3: Adapt the tsmsm module to the new aio routinesVolker Lendecke2012-08-171-8/+120
| | | | Signed-off-by: Christian Ambach <ambi@samba.org>
* s3-vfs: Fix calls of lp_parm_talloc_stringVolker Lendecke2012-08-171-6/+9
| | | | Signed-off-by: Christian Ambach <ambi@samba.org>
* s3: Remove the gpfs_hsm_notify moduleVolker Lendecke2012-08-172-118/+0
| | | | | | The functionality has been merged into vfs_gpfs Signed-off-by: Christian Ambach <ambi@samba.org>
* s3: Merge vfs_gpfs_hsm_notify into vfs_gpfs.cVolker Lendecke2012-08-171-0/+190
| | | | | | | | It was separated out because formerly our async I/O was not properly stackable. aio_fork could for example catch aio and not get aio_return get through to vfs_gpfs Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:vfs_gpfs: make sure parameters are set correctly for leasesChristian Ambach2012-08-161-0/+25
| | | | | | | gpfs:leases requires kernel oplocks = yes and level2 oplocks = no to work properly make sure those are set correctly for a share
* s3:vfs_gpfs: Fix compile error in gpfs moduleChristof Schmitt2012-08-161-0/+1
| | | | | | | | | | | Fix this compile error by adding fcntl.h as a include that defines F_RDLCK and F_WRLCK: modules/gpfs.c: In function ‘set_gpfs_lease’: modules/gpfs.c:102: error: ‘F_RDLCK’ undeclared (first use in this function) modules/gpfs.c:102: error: (Each undeclared identifier is reported only once modules/gpfs.c:102: error: for each function it appears in.) modules/gpfs.c:105: error: ‘F_WRLCK’ undeclared (first use in this function)
* s3-vfs: Continue to make vfs_xattr_tdb non-recursiveAndrew Bartlett2012-08-161-24/+50
| | | | | | We now always use _NEXT_ VFS calls, even to build the file id. Andrew Bartlett
* s3-vfs: Add new VFS module to fake setting an ACLAndrew Bartlett2012-08-161-0/+374
| | | | | | | The purpose of this module is to remove the relience on the system having ACL support to test NT ACLs. Andrew Bartlett
* s3-vfs: Set errno in xattr emulationAndrew Bartlett2012-08-152-0/+7
| | | | | | | | | The caller may check this errno. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 15 18:05:33 CEST 2012 on sn-devel-104
* s3-vfs: Avoid loops in VFS modules: call _NEXT functions in xattr emulationAndrew Bartlett2012-08-152-8/+8
| | | | | | | | We need to call the next module in the stack otherwise we will loop if the stat call is in turn implemented in terms of extended attribute lookup. Andrew Bartlett
* s3-vfs: ensure we strictly free the talloc_stackframeAndrew Bartlett2012-08-151-1/+1
| | | | | | | We must do this when leaving the function or else in development, we will panic. Andrew Bartlett
* librpc/idl: Make smb_acl_t public so we can pull/push it as a blobAndrew Bartlett2012-08-151-0/+9
|
* s3-smbd: Remove sys_acl_*() VFS wrapper functionsAndrew Bartlett2012-08-153-761/+0
| | | | | | | | | | | | | | | | | | | | | | | We no longer do struct smb_acl_t manipuations via the VFS layer, which is now reduced to handling the get/set functions. The only backend that implemented these functions (aside from audit) was the vfs_default module calling the sys_acl code. The various ACL implementation modules either worked on the fully initilaised smb_acl_t object or on NT ACLs. This not only makes the operation of the posix ACL code more efficient (as allocation and free is not put via the VFS), it makes it easier to test and removes the fantasy that a module could safely redefine this structure or the behaviour here. The smb_acls.idl now defines the structure, and it is now allocated with talloc. These operations were originally added to the VFS in commit 3bb219161a270f12c27c3bc7e1220829c6e9f284. Andrew Bartlett
* s3-smbd: Change allocation of smb_acl_t to talloc()Andrew Bartlett2012-08-157-53/+39
| | | | | | | | | The acl element is changed to be a talloc child, and is no longer one element longer than requested by virtue of the acl[1] base pointer. This also avoids one of the few remaining cases of over-allocation of a structure. Andrew Bartlett