summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
* s3:vfs_aixacl2: add missing semicolonBjörn Jacke2010-03-021-1/+1
| | | | fixes #7197. Thanks to William Jojo for the correction.
* s3: vfs_full_audit.c: implement negated vfs_ops in the success/failure listHolger Hetterich2010-02-281-24/+31
| | | | | | | Supports negated arguments in configuration like: full_audit:success = all !readdir !telldir !closedir Update the manpage accordingly. Part of BSO#4025
* s3-modules: fix get_acl_blob in the acl_tdb VFS module.Günther Deschner2010-02-181-1/+1
| | | | | | Shuttle-reviewed by jra :) Guenther
* s3-vfs: use TYPESAFE_QSORT() in s3 VFS modulesAndrew Tridgell2010-02-142-8/+6
|
* Fix bad use when freeing linked list. Todd Stecher (Original author) please ↵Jeremy Allison2010-02-101-6/+8
| | | | | | check ! Jeremy.
* s3-perfcount: update to use new DLIST macrosAndrew Tridgell2010-02-102-3/+2
| | | | (cherry picked from commit a13b507f2d8be7f90c8872094cd0732926a6fcbb)
* vfs_catia: fix return type warningsBjörn Jacke2010-02-091-2/+2
|
* Fix bug #6876 for acl_tdb module.Jeremy Allison2010-02-081-2/+1
| | | | | | | As pointed out by bj@sernet.de, the rmdir module initializer was duplicated. Fix this properly. Jeremy.
* s3: fix build issue on Tru64Björn Jacke2010-02-071-7/+7
| | | | | Thanks, Volker for the hint - acl_type is a macro on Tru64. Renamed it to acltype. This fixes #7103.
* Fix bug 7075 - bug in vfs_scannedonly rmdir implementation.Jeremy Allison2010-02-041-1/+5
| | | | | | Check for NULL on opendir, correctly call next rmdir. Jeremy.
* s3:vfs_scannedonly: fix build on HP-UXBjörn Jacke2010-02-041-0/+6
|
* s3: Simplify the code a bit: Catch (len==0) earlyVolker Lendecke2010-02-031-7/+4
|
* Fix bug 7081 - vfs_expand_msdfs doesn't work correctly (with fix identified)Jeremy Allison2010-02-021-3/+16
| | | | | | Fix inspired by idea from Eric Horst <erich@cac.washington.edu>. Jeremy.
* AIX doesn't have MSG_DONTWAITolivier2010-01-291-1/+1
|
* Add localtime parameter to shadow_copy2.Ed Plese2010-01-211-0/+22
|
* Add format parameter to shadow_copy2.Ed Plese2010-01-211-11/+73
|
* Add sort parameter to shadow_copy2.Ed Plese2010-01-211-0/+62
|
* Modification of fix for bug 6876 - Delete of an object whose parent folder ↵Jeremy Allison2010-01-161-8/+5
| | | | | | | | | | does not have delete rights fails even if the delete right is set on the object Suggested by Volker. Reduce the surface area of the become_root() unbecome_root() code to reduce the chance of errors. Jeremy.
* Part 4 of bug #7028 - include scannedonly VFS moduleOlivier Sessink2010-01-141-13/+8
| | | | Fix some issues with handling names ending in '/'.
* Fix bug #7034 - vfs_cap causes signal 11 (SIGSEGV)SASAJIMA Toshihiro2010-01-121-1/+2
|
* Fix two uses of strncat -> strlcat. Ensure proper use of strncpy when ↵Jeremy Allison2010-01-121-3/+3
| | | | | | setting socket name. Jeremy.
* Fix bug #6876 - Delete of an object whose parent folder does not have delete ↵Jeremy Allison2010-01-123-1/+131
| | | | | | | | | | rights fails even if the delete right is set on the object. Final fix for the vfs_acl_xattr and vfs_acl_tdb code. Ensure we can delete a file even if the underlying POSIX permissions don't allow it, if the Windows permissions do. Jeremy.
* s3: Lift the version of the scannedonly VFS moduleVolker Lendecke2010-01-121-1/+1
|
* s3: Add the "scannedonly" vfs virus scanner interface moduleOlivier Sessink2010-01-121-0/+995
|
* s3: Add a zfsacl:denymissingspecial parameterVolker Lendecke2010-01-111-0/+10
| | | | | | | | When setting an ACL without any of the user/group/other entries, ZFS automatically creates them. This can at times confuse users a lot. This parameter denies setting such an acl, users explicitly have to for example set an ACE with everyone allowing nothing. Users need to be educated about this, but this helps avoid a lot of confusion.
* vfs_commit: print warning when no fsync support is thereBjörn Jacke2010-01-061-0/+2
| | | | this one was part of an old patch from jpeach.
* Attempt to fix one of the last two bugs with the full Windows ACL support.Jeremy Allison2009-12-231-0/+106
| | | | | | | | | | | | | | | | | | When returning an underlying ACL on a directory, normally on a POSIX system it has no inheritable entries, which breaks the Windows ACL when a user does a get/set of a Windows ACL on a POSIX directory with no existing stored Windows ACL from the Windows ACL editor. What happens is any new entry added by the user gets set inheritable, but none of the others entries are (as returned by default). So any new files then only inherit the single new ACE entry (the one marked inheritable by the ACL editor). Fix this by faking up a default 3 element inheritable ACL that represents what a user creating a POSIX file or directory will get by default from the smbd code. Jeremy.
* s3: keep subsecond times on cross-filesystem moves and don't follow linksBjörn Jacke2009-12-091-0/+22
|
* s3: make sys_posix_fallocate more genericBjörn Jacke2009-12-081-14/+11
| | | | this is in preparation for other preallocation methods to be introduced.
* s3: allocate only "new" space, not "old" sparse space in the posix_fallocate ↵Björn Jacke2009-12-081-2/+3
| | | | | | path this makes the posix_fallocate path work analogous to the manual allocate path.
* parent_sd can never be null in this function, so don'tJeremy Allison2009-12-071-1/+5
| | | | | | check for it. Jeremy.
* Hopefullt final fix for 6802 - acl_xattr.c module: A created folder does not ↵Jeremy Allison2009-12-073-267/+168
| | | | | | | | | | properly inherit permissions from parent and 6938 - No hook exists to check creation rights when using acl_xattr module Volker was right (dammit :-). It's much easier to catch this case in the create_file() vfs call instead of trying to do everything inside open() and mkdir(). Hook all these functions to gain the desired effect. Jeremy.
* Remove smb_fname duplicates that just keep the same information as in ↵Jeremy Allison2009-12-032-11/+0
| | | | | | | | fsp->fsp_name. Moving towards making VFS_OPEN/VFS_MKDIR/VFS_RMDIR handle based... Jeremy.
* Remove unneeded argument from can_set_delete_on_close(). EnsureJeremy Allison2009-12-021-2/+2
| | | | | | can_set_delete_on_close() is correctly called before any setting of the disposition bit (clean up the do_unlink() call). Jeremy.
* ѕ3: remove superfluous option checkBjörn Jacke2009-12-031-13/+10
| | | | this function is only called when strict alloc is set, no reason to check that twice.
* Restructure the ACL code some more, get the internal semanticsJeremy Allison2009-12-021-169/+130
| | | | | | | | | | | | | | | | | right. The previous bugs were due to the fact that get_nt_acl_internal() could return an NTSTATUS error if there was no stored ACL blob, but otherwise would return the underlying ACL from the filysystem. Fix this so it always returns a valid acl if it can, and if it does not its an error to be reported back to the client. This then changes the inherit acl code. Previously we were trying to match Windows by setting a minimal ACL on a new file that didn't inherit anything from a parent directory. This is silly - the returned ACL wouldn't match the underlying UNIX permissions. The current code will correctly inherit from a parent if a parent has any inheritable ACE entries that apply to the new object, but will return a mapping from the underlying UNIX permissions if the parent has no inheritable entries. This makes much more sense for new files/directories. Jeremy.
* Ensure check_parent_acl_common() only looks at storedJeremy Allison2009-12-021-2/+16
| | | | | blobs - returns NT_STATUS_OK if there aren't any. Jeremy.
* s3: prefer posix_fallocate for doing "strict allocate"Björn Jacke2009-12-021-4/+21
| | | | | | | | | | | | | | | | posix_fallocate is more efficient than manual zero'ing the file. When preallocation in kernel space is supported it's extremely fast. Support for preallocation at fs layer via posix_fallocate and fallocate at kernel site can be found in Linux kernel 2.6.23/glibc 2.10 with ext4, XFS and OCFS2. Other systems that I know of which support fast preallocation in kernel space are AIX 6.1 with JFS2 and recent Solaris versions with ZFS maybe UFS2, too. People who have a system with preallocation in kernel space might want to set "strict allocate = yes". This reduces file fragentation and it's also safer for setups with quota being turned on. As of today most systems still don't have preallocation in kernel space, and that's why "strict allocate = no" will stay the default for now.
* Ensure get_nt_acl_internal() only looks at the ACL blobs, notJeremy Allison2009-12-022-19/+23
| | | | | | | reads off the underlying filesystem. Ensure that vfs_acl_tdb.c returns NT_STATUS_NOT_FOUND, not NT_STATUS_OBJECT_NAME_NOT_FOUND when it can't find a blob matching the file. Jeremy.
* Fix DEBUG 0 -> DEBUG 10 (left over code).Jeremy Allison2009-11-301-2/+4
| | | | | Fix opendir status return if access denied. Jeremy.
* Fix bug 6938 : No hook exists to check creation rights when using acl_xattr ↵Jeremy Allison2009-11-303-7/+104
| | | | | | | | | module Fix ACL modules to test for permissions on open/mkdir/opendir. Ensure that underlying ACLs are returned for directories/files with no Windows xattr or tdb acls stored. Jeremy.
* Restructure the connect function code to always callJeremy Allison2009-11-3016-37/+117
| | | | | | | | down to NEXT-> before initializing. This allows us to do cleanup (by calling DISCONNECT) if initialization fails. Also fix vfs_acl_xattr which was failing to call the NEXT connect function. Jeremy.
* s3: Restore "fake directory create times" as a share parameterVolker Lendecke2009-11-291-3/+3
|
* s3: "copy_reg" only looks at mode, uid, gid, atime and mtime (no birthtime)Volker Lendecke2009-11-291-2/+1
|
* s3: Pass up fake_dir_create_times from atalk_build_pathsVolker Lendecke2009-11-291-15/+24
| | | | The callers only look at the mode
* s3: Pass the "fake dir create times" parameter to sys_*statVolker Lendecke2009-11-292-6/+10
| | | | Step 0 to restore it as a per-share paramter
* Fix bug 6892 - When a chown operation is issued via Windows Explorer, all ↵Jeremy Allison2009-11-251-15/+36
| | | | | | | ACLS are wiped out. Merges existing DACLs when a ACL set operation comes in with only owner or group values set. Jeremy.
* Revert "s3: Make the implicit reference to Protocol in is_in_path() explicit"Volker Lendecke2009-11-232-4/+2
| | | | This reverts commit f7b4151a64d8c6851e62255a7139fd00a5fc63a3.
* Revert "s3: Move the global variable Protocol to struct smbd_server_connection"Volker Lendecke2009-11-231-1/+1
| | | | This reverts commit c85a4c9ba4a7de65a7850f6f9708df66bd24deea.
* s3: Move the global variable Protocol to struct smbd_server_connectionVolker Lendecke2009-11-211-1/+1
|