summaryrefslogtreecommitdiffstats
path: root/source3/smbd/vfs.c
Commit message (Collapse)AuthorAgeFilesLines
* s3: Fix Coverity ID 703869 Logically dead codeVolker Lendecke2012-06-111-10/+6
| | | | | | | | | | | | We "TALLOC_FREE(curr)" and assign prev=curr in the for-loop header. This will lead to "prev"==NULL always. In this loop, we do not need to correctly re-shuffle the linked list, we delete all from the beginning anyway. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Jun 11 17:26:53 CEST 2012 on sn-devel-104
* s3:smbd: make struct vfs_fsp_data private to vfs.cStefan Metzmacher2012-06-061-0/+10
| | | | metze
* s3:smbd: add vfs_remove_all_fsp_extensions()Stefan Metzmacher2012-06-061-0/+21
| | | | metze
* Add an audit file VFS routine so we can handle auditing with SACLs.Richard Sharpe2012-04-281-0/+14
| | | | | Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Sat Apr 28 08:05:00 CEST 2012 on sn-devel-104
* s3: Simplify check_reduced_name a bitVolker Lendecke2012-04-241-9/+5
| | | | | | | | It's pointless to do a talloc_asprintf with a SMB_STRDUP on the result. Use asprintf directly. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Apr 24 18:18:05 CEST 2012 on sn-devel-104
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-061-19/+19
| | | | | | | | | Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
* s3-vfs: Remove unused lremovexattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-051-7/+0
| | | | | | | If this is ever needed again, it would be more appropriate as an options argument to removexattr. Andrew Bartlett
* s3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-051-9/+0
| | | | | | | If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
* s3-vfs: Remove unused llistxattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-051-7/+0
| | | | | | | If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
* s3-vfs: Remove unused lgetxattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-051-8/+0
|
* build: Remove SMB_STRUCT_DIR defineAndrew Bartlett2012-04-051-9/+9
|
* build: Remove SMB_STRUCT_DIRENT defineAndrew Bartlett2012-04-051-2/+2
|
* s3-vfs: Use new smb_load_module for better diagnosticsAndrew Bartlett2012-04-031-1/+1
|
* s3: Pass filters explicitly through vfs notify watchVolker Lendecke2012-03-261-2/+4
| | | | | | | | | This removes a dependency on "struct notify_entry" and makes the nature of the API more explicit. We depend upon the VFS module to mask out elements from e->filter and e->subdir_filter that it took over to handle. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 26 17:45:44 CEST 2012 on sn-devel-104
* s3: Pass "path" through vfs_notify_watchVolker Lendecke2012-03-211-1/+2
|
* Add the implementation of check_reduced_name_with_privilege(). Now to plumb intoJeremy Allison2012-02-291-3/+157
| | | | SMB1 requests.
* Add check_reduced_name_with_privilege(), filename_convert_with_privilege() ↵Jeremy Allison2012-02-291-0/+15
| | | | | | (currently unimplemented) in order to prepare for adding SeBackup/SeRestore code to the main fileserver. Not yet plumbed into the main SMB1/SMB2 code.
* vfs: Make function pointer names consistent. They all end in _fnRichard Sharpe2011-12-121-136/+141
| | | | | Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Dec 12 04:58:40 CET 2011 on sn-devel-104
* First part of fix for bug #8419 - Make VFS op "streaminfo" stackable.Frank Lahm2011-10-171-0/+15
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 17 21:39:32 CEST 2011 on sn-devel-104
* s3:vfs: add SMB_VFS_GET_DFS_REFERRAL() hooksStefan Metzmacher2011-10-081-0/+7
| | | | metze
* Move FSCTL handling into the VFS. Initial code changes. Passes smbtorture ↵Richard Sharpe2011-10-011-0/+17
| | | | NTTRANS-FSCTL. Test added to selftests.
* Fix bug #8370 - vfs_chown_fsp broken -- returns in the wrong directoryJeremy Allison2011-08-191-3/+7
| | | | | | | Ensure we always use vfs_ChDir() to keep the singleton cache coherent. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Aug 19 00:43:05 CEST 2011 on sn-devel-104
* s3:smbd fix a compile warning on AIX 5.3Christian Ambach2011-07-051-1/+1
| | | | | | | use the correct alias instead of FD directly Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Tue Jul 5 19:51:42 CEST 2011 on sn-devel-104
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* Remove the char * argument from the SMB_VFS_GETWD() call. Now alwaysJeremy Allison2011-06-011-8/+9
| | | | | | | returns malloc'ed memory. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jun 1 04:06:12 CEST 2011 on sn-devel-104
* s3: Remove SHADOW_COPY_DATA typedefVolker Lendecke2011-05-311-1/+1
|
* Fix many const compiler warnings.Jeremy Allison2011-05-051-1/+1
|
* s3: Fix a typoVolker Lendecke2011-04-261-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Apr 26 13:31:08 CEST 2011 on sn-devel-104
* No longer need to call SMB_VFS_LSTAT - check name hasn't changed above is ↵Jeremy Allison2011-04-251-23/+0
| | | | | | | sufficient. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 25 23:35:37 CEST 2011 on sn-devel-104
* Correctly detect and deny symlinks anywhere in a path (not just the last ↵Jeremy Allison2011-04-251-27/+60
| | | | component) if "follow symlinks = no".
* Cosmetic. Fix bad indentation.Jeremy Allison2011-04-221-18/+18
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 22 03:16:43 CEST 2011 on sn-devel-104
* Remove duplicate code - move to parent_dirname() as a common function.Jeremy Allison2011-04-211-25/+14
|
* s3-vfs: rename open function to open_fn.Günther Deschner2011-04-211-5/+2
| | | | | | | | | | | 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
* s3-smbd: fix the AIX 5.3 build.Günther Deschner2011-04-201-0/+3
| | | | | | (AIX defines open to be open64) Guenther
* Ensure vfs_chown_fsp() is safe against races.Jeremy Allison2011-04-151-5/+71
|
* s3: only include ntioctl.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-build: only include transfer_file.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Pass smb_filename through the set_offline vfs opVolker Lendecke2011-03-021-2/+2
|
* s3: Pass smb_filename through the is_offline vfs opVolker Lendecke2011-03-021-2/+3
|
* Add fdopendir to the VFS. We will use this to reuse a directory fd already ↵Jeremy Allison2011-02-091-0/+9
| | | | | | | open by NtCreateX. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Feb 9 00:55:22 CET 2011 on sn-devel-104
* If possible (O_DIRECTORY exists) open an fd for a directory open.Jeremy Allison2011-02-081-2/+2
| | | | | | | | | | | Start of the move towards handle-based code for directory access. Currently makes fstat/fchown code work for directories rather than falling back to pathnames. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Feb 8 06:34:41 CET 2011 on sn-devel-104
* Fix try_chown code. Use new vfs_chown_fsp() which always trys fd first.Jeremy Allison2011-02-051-0/+30
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 5 03:33:59 CET 2011 on sn-devel-104
* Added call out to a Linux-compatible fallocate() when we need to extend a fileJeremy Allison2010-12-211-1/+12
| | | | | | | allocation extent without changing end-of-file size. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Dec 21 02:41:24 CET 2010 on sn-devel-104
* s3: re-add some debugs to check_reduced_nameVolker Lendecke2010-12-191-0/+2
|
* s3: Fix some typosVolker Lendecke2010-12-191-1/+1
|
* Rename vfs operation posix_fallocate to just fallocate and add the ↵Jeremy Allison2010-12-181-9/+12
| | | | | | | | | | | | | | | | | | | | | | vfs_fallocate_mode parameter. It turns out we need the fallocate operations to be able to both allocate and extend filesize, and to allocate and not extend filesize, and posix_fallocate can only do the former. So by defining the vfs op as posix_fallocate we lose the opportunity to use any underlying syscalls (like Linux fallocate) that can do the latter as well. We don't currently use the non-extending filesize call, but now I've changed the vfs op definition we can in the future. For the moment simply map the fallocate op onto posix_fallocate for the VFS_FALLOCATE_EXTEND_SIZE case and return ENOSYS for the VFS_FALLOCATE_KEEP_SIZE case. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 18 08:59:27 CET 2010 on sn-devel-104
* Ensure we use vfs_fsp_stat(), not VFS_STAT directly, and store into ↵Jeremy Allison2010-12-141-19/+20
| | | | | | | | | | | fsp->fsp_name->st instead of a SMB_STRUCT_STAT on the stack. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Dec 14 05:05:50 CET 2010 on sn-devel-104
* Merge the two conflicting allocation codes into one function, ↵Jeremy Allison2010-12-031-34/+45
| | | | | | | | vfs_slow_fallocate() and use that from both the truncate and fill_sparse functions. Jeremy.