summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
* Add support for VFS op streaminfo chaining in all relevant VFS modules.Frank Lahm2011-10-204-58/+20
| | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 14 03:26:06 CEST 2011 on sn-devel-104 (cherry picked from commit 7a0b5d6fc51d5d212529e82e5ed8e21516bfbe27)
* Tidy up previous patch for bug #8442 - NFSv4 DENY ACLs always include ↵Jeremy Allison2011-10-111-5/+4
| | | | | | | | | | SYNCHRONIZE flag - blocking renames. aceType is an enum field, not a bitmask. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Sep 8 03:34:39 CEST 2011 on sn-devel-104 (cherry picked from commit 0aa6751e919d842cdae044be26f6da725063eac2)
* Fix bug #8442 - NFSv4 DENY ACLs always include SYNCHRONIZE flag - blocking ↵Ira Cooper2011-10-111-1/+7
| | | | | | | | | | renames. Thanks to Youzhong Yang for discovering this issue. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Sep 7 22:56:06 CEST 2011 on sn-devel-104 (cherry picked from commit 600451da33728cbd377b122c85cf146f5b319998)
* These modules are no longer experimental but production-ready (especially ↵Jeremy Allison2011-09-282-4/+0
| | | | | | | | | | the acl_xattr code). Remove the "experimental" tag. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Sep 27 21:00:12 CEST 2011 on sn-devel-104 (cherry picked from commit fa2236c066890b687483408ed0d82a4bb1f95157) Fix bug #8494 (Remove "experimental" label on VFS ACL modules).
* Fix bug 8480 - acl_xattr can free an invalid pointer if no blob is loaded.David Disseldorp2011-09-281-1/+1
| | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Sep 23 22:20:55 CEST 2011 on sn-devel-104 (cherry picked from commit ca8c25abebb8715176f68be9916217db9a8400dd)
* s3: Fix the build of vfs_aixacl2.cSATOH Fumiyasu2011-08-301-0/+1
| | | | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Aug 25 23:06:12 CEST 2011 on sn-devel-104 (cherry picked from commit faa769ec19b6486675048734837a6e2237d6f0a4) Fix bug #8390 (vfs_aixacl2.c needs system/filesys.h).
* Fix bug Bug 8422 - Infinite loop in ACL module code.Jeremy Allison2011-08-301-1/+1
| | | | | | Missing assignment means this loop will never terminate. Need to be applied to 3.5.x and 3.6.1. (cherry picked from commit 218cccfdf1820a9840a5cbc7df3915b6b58a762d)
* s3-vfs: Fix vfs_chown_fsp.Jeremy Allison2011-08-201-2/+11
| | | | Fix bug #8370 (vfs_chown_fsp broken -- returns in the wrong directory).
* s3-modules: Fix the build of gpfs.c on RHEL 6.0 with gpfs 3.4.0-4Björn Baumbach2011-08-181-0/+1
| | | | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed May 18 11:58:14 CEST 2011 on sn-devel-104 (cherry picked from commit 192198ad70474e56d4708b65482eee976ea78a05) Fix bug #8364 (gpfs vfs module build broken).
* s3:vfs_prealloc: fix build on SLES8Björn Jacke2011-08-181-0/+1
| | | | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue Aug 9 19:29:08 CEST 2011 on sn-devel-104 (cherry picked from commit 1e76662ae6aa77d7b6e9e8a0266fcb1a1320a7fb) Fix bug #8363 (vfs_prealloc build broken on SLES8).
* s3:modules:nfs4_acls: improve fix for bug #8330Michael Adam2011-08-091-4/+2
| | | | | | simplify the check insmbacl4_find_equal_special() Signed-off-by: Michael Adam <obnox@samba.org>
* s3:modules fix Bug 8330 NFSv4 ACL merging logic is brokenChristian Ambach2011-08-091-2/+1
| | | | | | | | | | | | | | | | | we should not merge ACEs with different flags (e.g. CI/OI/I/) Otherwise ACLs get wrong entries and thus wrong semantics Example: ACL:BUILTIN\Users:ALLOWED/0x0/FULL ACL:BUILTIN\Users:ALLOWED/I/READ got merged to ACL:BUILTIN\Users:ALLOWED/I/FULL This is not the same and also leads to wrong displays in the Windows ACL dialog Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Wed Jul 27 16:03:51 CEST 2011 on sn-devel-104
* s3:lib/afs fix the build with --with-vfs-afsaclChristian Ambach2011-07-261-0/+4
| | | | This fixes the second piece of Bug #8263
* s3:vfs_commit: fix buildBjörn Jacke2011-06-241-0/+1
| | | | | | | | | | | | fix build Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Fri Jun 24 14:51:31 CEST 2011 on sn-devel-104 (cherry picked from commit d4ea319e7ad9ee2fc2fad0c016845f820681569a) Fix bug #8262 (vfs_commit doesn't compile).
* s3:modules fix Bug 8244 - Cannot copy files larger than 2 GB to Samba shareChristian Ambach2011-06-211-3/+3
| | | | | | | | | | | | | | the time_audit module uses int instead of uint64 as return value in get_alloc_size so that sizes of files larger than 2 GB are cut of leading to wrong replies to NtCreateAndX and Windows clients giving up While checking the types of all functions, I found two more wrong return value types that needed correction Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Fri Jun 17 23:11:10 CEST 2011 on sn-devel-104 (cherry picked from commit bb66504dadf56366ea30697ae73673de3df08132)
* Fix re-opened bug 8083 - "inherit owner = yes" doesn't interact correctly ↵Jeremy Allison2011-06-091-4/+17
| | | | | | | | | | | | with vfs_acl_xattr or vfs_acl_tdb module. Fix incorrect interaction when all of "inherit permissions = yes" "inherit acls = yes" "inherit owner = yes" are set. Found by Björn Jacke. Thanks Björn !
* struct make "struct shadow_copy_data" its own talloc context (cherry picked ↵Volker Lendecke2011-06-022-2/+2
| | | | | | from commit d77854fbb22bc9237cea14aae1179bbfe3bd0998) The last 3 patches address bug #8189 (Snapshot display not supported over SMB2).
* s3: Remove SHADOW_COPY_DATA typedef (cherry picked from commit ↵Volker Lendecke2011-06-025-6/+13
| | | | 0ec9a90c29b86435f32c1d47d89df85fa51742f2)
* Split the ACE flag mapping between nfs4 and Windows into two separate ↵Jeremy Allison2011-06-021-14/+59
| | | | functions rather than trying to do it inline. Allows us to carefully control what flags are mapped to what in one place. Modification to bug #8191 - vfs_gpfs dosn't honor ACE_FLAG_INHERITED_ACE
* nfs4_acls: pass ACE_FLAG_INHERITED_ACE down from the clientGregor Beck2011-06-021-0/+3
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 817c64f5de65c6ba7cc535446279f769d6552618) Fix bug #8191
* nfs4_acls: pass ACE_FLAG_INHERITED_ACE up to the clientGregor Beck2011-06-022-1/+5
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit b0471303ba50caab7da5f50e6f7d8c4b1c664238) Fix bug #8191
* Actually make use of the SMBTA_SUBRELEASE define in smb_traffic_analyzer.h. ↵Holger Hetterich2011-05-262-1/+12
| | | | | | This will allow to introduce new features or fixes into the protocol after the 3.6.0 release. The client software is designed to take care for the subrelease number. Fix bug #8154 (Actually make use of SMBTA subversion numbers).
* Make protocol version 2 the default protocol, and only run on version 1 if ↵Holger Hetterich2011-05-201-6/+5
| | | | | | | | | | | | | | | | | V1 is explcitly given as a module option. I haven't received a single line of feedback on protocol v1 for at least 1 1/2 years, whereas protocol v2 has an active userbase and more people developing around it. This patch includes a manpage update, describing the new version handling, as well as documenting the recent changes making the module transfer the IP address of the client machine as submitted with 464c69609aa7e582f484c1d357b7c6d3eb2bcbe3. Bug #8148 (Default to protocol version 2 for SMB Traffic Analyzer in Samba 3.6.0).
* Ensure we always write the correct incoming mid into the share modeJeremy Allison2011-05-161-2/+4
| | | | | table entries. (cherry picked from commit fe21bdc43c0aeacfc8592998e6a90f6f83c939e0)
* s3: only include tdb headers where needed.Günther Deschner2011-05-163-0/+3
| | | | | Guenther (cherry picked from commit d8cfca3a9bd2b6b6c562fd202377d95a98eb5472)
* gpfs.so: Add gpfs:syncio optionGregor Beck2011-05-161-0/+13
| | | | | This enables optimizations for shared file access on gpfs (cherry picked from commit 2ddfbbbdba0003fda85f2d1c0be87ceca2586e5d)
* s3-waf: add vfs_gpfs_hsm_notify to the build.Günther Deschner2011-05-061-0/+8
| | | | | | | | | | Volker, can you please check this is correct ? Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed May 4 19:03:45 CEST 2011 on sn-devel-104 (cherry picked from commit 0d1b2d2033e9cc33accea29a4c3a8fafd3d75aa2)
* s3-vfs: make vfswrap_llistxattr and vfswrap_flistxattr static.Günther Deschner2011-05-041-2/+2
| | | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed May 4 12:31:10 CEST 2011 on sn-devel-104 (cherry picked from commit b8eaec6b666b1f0d3711540c492edd79cd02b1fe)
* vfs_gpfs: Properly notify the offline->online changesVolker Lendecke2011-05-041-0/+110
| | | | | | | | This needs to be a separate module that cooperates with vfs_gpfs. If aio_fork is used early in the module chain it (correctly) does not propagate the aio ops down, so vfs_gpfs does not see them. This slim module must come early in the chain for notifies to work properly. (cherry picked from commit 3f68b43dd56b8f338a18074741162bf6437ae78d)
* vfs_gpfs: Block sendfile for offline filesVolker Lendecke2011-05-041-0/+12
| | | | (cherry picked from commit 41bde55821a6c18ace24330aede8d4928215e658)
* vfs_gpfs: Store the winattrs in st.vfs_privateVolker Lendecke2011-05-041-5/+12
| | | | | This avoids a considerable amount of gpfs_winattr calls (cherry picked from commit 2329fb56a701804585d866817586b4d567966b92)
* s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCHAndrew Bartlett2011-04-291-3/+3
| | | | | | | This means we use just one constant for this file attribute. Andrew Bartlett (cherry picked from commit 0520da2bbe246c45d89bfdec0d399862ecb867ba)
* s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIRAndrew Bartlett2011-04-292-2/+2
| | | | | | | This means we use just one constant for this file attribute. Andrew Bartlett (cherry picked from commit 0eca33bbf620678759bbe39efaa74f33f96efb74)
* s3:vfs use gpfs_lib_initChristian Ambach2011-04-273-0/+22
| | | | | | | | | | | | | With newer GPFS releases, libgpfs contains a function gpfs_lib_init(). It marks the pseudo-device the lib uses as interface to the GPFS kernel module to not be to destroyed after each call to GPFS. This saves us some microseconds creating and removing the device each time we do a call to libgpfs. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Apr 26 20:52:36 CEST 2011 on sn-devel-104 (cherry picked from commit 7a4cff842d342d77631912fdcee05521506eec52)
* s3-vfs: rename open function to open_fn.Günther Deschner2011-04-2120-24/+20
| | | | | | | | | | | | This should finally fix the AIX build and allow to remove AIX specific ifdefs. Guenther Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 21 02:01:20 CEST 2011 on sn-devel-104 (cherry picked from commit c7073f8b545976719bfdba7b7bbd460d595041d5)
* s3-build: move MAP_FILE define to the only place used.Günther Deschner2011-04-211-0/+4
| | | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Apr 20 19:16:47 CEST 2011 on sn-devel-104 (cherry picked from commit 0b89ce671250daddc86400ef4e1996c37c126025)
* s3-smbd: fix the AIX 5.3 build.Günther Deschner2011-04-202-0/+5
| | | | | | | (AIX defines open to be open64) Guenther (cherry picked from commit ae61a5c3d05192457f5a0b24dd9bd34317df566f)
* s3: Fix the build of vfs_gpfs.cVolker Lendecke2011-04-181-0/+1
| | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Apr 18 14:40:07 CEST 2011 on sn-devel-104 (cherry picked from commit 83a0b94cf8c3a1a96d6060c21f0c93dfb67640d8)
* Fix bug #8083 - "inherit owner = yes" doesn't interact correctly with ↵Jeremy Allison2011-04-141-3/+27
| | | | | | | | | | | | vfs_acl_xattr or vfs_acl_tdb module. If "inherit owner = yes", pass in the directory owner and group owner as the target for CREATOR_OWNER and CREATOR_GROUP substitutions, and also as the owner and primary group of the new security descriptor being applied to the object. Jeremy. (cherry picked from commit 182eea9ae26804d7f4eedcfa09eef0342ec3db5a)
* s3-includes: move readahead prototype to its only user.Günther Deschner2011-04-141-0/+4
| | | | | Guenther (cherry picked from commit daea6a4b8cf48c96718d6f757d01c430d1811446)
* s3: only include smb profiling where needed.Günther Deschner2011-04-142-1/+2
| | | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Apr 14 01:31:39 CEST 2011 on sn-devel-104 (cherry picked from commit 165521e20d8aea1e35cc68e39ced57de64f8e560)
* s3-includes: only include acl prototypes when needed.Günther Deschner2011-04-145-2/+7
| | | | | Guenther (cherry picked from commit 321587e44a337e8c47ed3a3c22dd1243d06d8a26)
* s3-modules: Fix debug messageBjörn Baumbach2011-04-111-1/+1
| | | | | | | | | | Print child descriptor instead of parent. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Apr 11 11:48:42 CEST 2011 on sn-devel-104 (cherry picked from commit e6cf92c574fba14132757f141d8b1242fa71be88)
* Fix bug 8072 - PANIC: create_file_acl_common frees handle two times.Jeremy Allison2011-04-081-51/+48
| | | | | | | | | | | | | Caused by premature optimisation storing the parent ACL on the module handle instead of (correctly) on the file fsp. Previous code wasn't reentrant safe. This is less optimal but doesn't crash in the specific case :-). Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Apr 9 02:05:15 CEST 2011 on sn-devel-104 (cherry picked from commit af45636166c7a0cb87630105d18ce489e7391525)
* s3/vfs_gpfs: s/syncops/gpfsBjörn Jacke2011-04-051-1/+1
| | | | | | | | as pointed out by Metze in bug #8031 Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue Apr 5 18:08:42 CEST 2011 on sn-devel-104 (cherry picked from commit dca465fa53f4d16cdce1353685b11010aa8ff0c7)
* Fix bug #7080 - Quota only shown when logged as root.Jeremy Allison2011-04-051-2/+2
| | | | | | | | | | | | | | | | Remove the final incorrect uses of conn->session_info->utok.uid. When we're in the "admin users" list, then this value is not set to zero. Inspired by the comment on this bug by Dmitry Butskoy <dmitry@butskoy.name>. I'll create a different fix for 3.5.x. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Apr 5 21:53:59 CEST 2011 on sn-devel-104 (cherry picked from commit b6a30be70266c07733ddfa2ae08d127e08560868)
* s3-vfs: try to fix build of aio_fork module.Günther Deschner2011-04-051-1/+2
| | | | | Guenther (cherry picked from commit 3800bae260ed3998317ce5e492a8f0a42fb2fd5f)
* s3-vfs acl modules: more non-linux build fixes.Günther Deschner2011-04-057-1/+7
| | | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 16:00:02 CEST 2011 on sn-devel-104 (cherry picked from commit 53bdf43acab2f8808fb205a719ff6323543a6440)
* s3-vfs_solarisacl: try to fix the solaris build.Günther Deschner2011-04-051-0/+1
| | | | | Guenther (cherry picked from commit b09b694dddfa4284b2c92d289694013e48b1e3f6)
* s3: only include ntioctl.h where needed.Günther Deschner2011-04-055-0/+5
| | | | | Guenther (cherry picked from commit b1e3b9d7c118b5ba5260525e87796a98a5037144)