summaryrefslogtreecommitdiff
path: root/source3/modules
AgeCommit message (Collapse)AuthorFilesLines
2012-10-01s3: vfs_streams_depot: add delete_lost optionBjörn Baumbach1-23/+42
With this option lost stream directories will be removed instead of renamed. Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Oct 1 18:47:30 CEST 2012 on sn-devel-104
2012-09-28vfs: check full_audit enum->str mapping on startupDavid Disseldorp1-3/+4
Signed-off-by: Jim McDonough <jmcd@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Fri Sep 28 19:28:49 CEST 2012 on sn-devel-104
2012-09-28vfs: add missing pwrite ops to full_auditDavid Disseldorp1-0/+2
The op enum is used by audit_opname() as an index into the vfs_op_names array, so any decrepencies cause bogus audit log entries. Signed-off-by: Jim McDonough <jmcd@samba.org>
2012-09-27s3:nfs4acls filter away inheritance flags on filesChristian Ambach1-0/+11
While it is possible to define inheritance flags on files on Windows, this will be denied by GPFS and UFS (and potentially others). So it will be better to strip of these bits when being set for files instead of failing to set the ACL completely (this is current behavior). Users that want to retain the full SD will have to use acl_xattr (acl_tdb), as other pieces of the SD are also lost when translating to NFSv4. So this should not be a too intrusive change, but allow users to migrate data with such flags instead of failing to migrate the ACL completely.
2012-09-27s3:nfs4acls pass down fsp instead of just the filenameChristian Ambach1-4/+6
2012-09-23s3:vfs_fake_acls fix a compiler warningChristian Ambach1-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
2012-09-20vfs: fix acl_blob_get* in vfs_full_auditDavid Disseldorp1-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
2012-09-20vfs: fix lock logging in vfs_full_auditDavid Disseldorp1-4/+4
2012-09-16s3:vfs_gpfs: fix buildChristian Ambach1-5/+5
after recent VFS changes
2012-09-14s3: fix the hpux acl moduleBjörn Jacke1-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
2012-09-14s3: fix the tru64 acl moduleBjörn Jacke1-5/+5
This was not adopted to the recent VFS acl structure changes.
2012-09-14s3: fix the aix acl moduleBjörn Jacke1-9/+9
This was not adopted to the recent VFS acl structure changes.
2012-09-14s3: Fix the vfs_solarisacl module to compile.Ira Cooper1-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
2012-09-12In vfs modules, don't use 'conn->origpath' when we really mean 'conn->cwd'.Jeremy Allison4-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
2012-09-12smbd: Add extra VFS hooks to get the posix ACL as a blobAndrew Bartlett3-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
2012-09-12smbd: Remove pre-allocation of ACL array in sys_acl_init()Andrew Bartlett1-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
2012-09-12smbd-posix_acls: Use a IDL union to store the ACL entryAndrew Bartlett1-4/+4
This is a clearer, long-term-stable structure we can hash without risking it changing. Andrew Bartlett
2012-09-11smbd: Print ACL used to create hash in vfs_xattr_commonAndrew Bartlett1-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
2012-09-10s3:vfs/time_audit: Add back pointer for sys_acl_delete_def_file_fnChristof Schmitt1-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>
2012-09-10s3:vfs/time_audit: add path names to log messagesRalph Wuerthner1-80/+170
Signed-off-by: Christian Ambach <ambi@samba.org>
2012-09-09s3: fix wrong invocations of talloc_reallocBjörn Jacke1-2/+2
2012-09-08s3:vfs_default: add basic support for durable handle request and reconnectMichael Adam1-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>
2012-09-08s3:vfs: add durable VFS operationsMichael Adam1-1/+34
This allows a VFS module to implement durable handles in different ways. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-06s3: Fix 64-bit warnings in vfs_media_harmonyVolker Lendecke1-1/+1
2012-09-05build: Remove unused deps from vfs modulesAndrew Bartlett1-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
2012-09-04build: Remove references to charset modules - we no longer have theseAndrew Bartlett1-0/+1
2012-09-04build: vfs_fake_acls does not need the acl libAndrew Bartlett1-1/+1
2012-09-01s3: Fix warnings in aio_fork.cVolker Lendecke1-2/+4
2012-08-31s3: Fix a few "warning: ISO C90 forbids mixed declarations and code"Volker Lendecke1-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
2012-08-29s3:vfs_gpfs: Use directory not file to get fileset idChristof Schmitt2-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
2012-08-29vfs_media_harmony: fix some compile warnings with llvmBjörn Jacke1-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
2012-08-28s3-vfs: Try to be consistent about localtime vs GMT handling in vfs_shadow_copy2Andrew Bartlett1-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
2012-08-28s3-vfs_shadow_copy2: Also accept a sscanf resultAndrew Bartlett1-18/+46
2012-08-22s3-vfs: Remove extra calls to SMB_VFS_HANDLE_GET_DATAAndrew Bartlett1-6/+0
Found by the talloc_stackframe() out of order checker! Andrew Bartlett
2012-08-21s3-vfs: Make vfs_aio_fork erratic timing behaviour a run-time optionAndrew Bartlett1-5/+44
This will allow this to be tested as part of a normal selftest. Andrew Bartlett
2012-08-21build: Remove special case for the build farmAndrew Bartlett1-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
2012-08-20s3-vfs: Add lstat and lchown hooks to the vfs_fake_acls moduleAndrew Bartlett1-0/+63
2012-08-20s3-vfs: Correct the implementation of fake_acls_sys_acl_delete_def_file()Andrew Bartlett1-1/+31
2012-08-20s3-vfs: Use the system. namespace for fake ACLsAndrew Bartlett1-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
2012-08-20s3-vfs: Allow vfs_xattr_tdb to work without a connected shareAndrew Bartlett1-19/+99
This is needed to that get_nt_acl_no_snum() can work. Andrew Bartlett
2012-08-17s3:vfs_tsmsm only send notifications when file was offline beforeChristian Ambach1-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
2012-08-17s3: Adapt the tsmsm module to the new aio routinesVolker Lendecke1-8/+120
Signed-off-by: Christian Ambach <ambi@samba.org>
2012-08-17s3-vfs: Fix calls of lp_parm_talloc_stringVolker Lendecke1-6/+9
Signed-off-by: Christian Ambach <ambi@samba.org>
2012-08-17s3: Remove the gpfs_hsm_notify moduleVolker Lendecke2-118/+0
The functionality has been merged into vfs_gpfs Signed-off-by: Christian Ambach <ambi@samba.org>
2012-08-17s3: Merge vfs_gpfs_hsm_notify into vfs_gpfs.cVolker Lendecke1-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>
2012-08-16s3:vfs_gpfs: make sure parameters are set correctly for leasesChristian Ambach1-0/+25
gpfs:leases requires kernel oplocks = yes and level2 oplocks = no to work properly make sure those are set correctly for a share
2012-08-16s3:vfs_gpfs: Fix compile error in gpfs moduleChristof Schmitt1-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)
2012-08-16s3-vfs: Continue to make vfs_xattr_tdb non-recursiveAndrew Bartlett1-24/+50
We now always use _NEXT_ VFS calls, even to build the file id. Andrew Bartlett
2012-08-16s3-vfs: Add new VFS module to fake setting an ACLAndrew Bartlett1-0/+374
The purpose of this module is to remove the relience on the system having ACL support to test NT ACLs. Andrew Bartlett
2012-08-15s3-vfs: Set errno in xattr emulationAndrew Bartlett2-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