summaryrefslogtreecommitdiffstats
path: root/source/include/vfs.h
Commit message (Collapse)AuthorAgeFilesLines
* Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-301-19/+42
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-011-27/+31
| | | | Jeremy.
* Sync-up with SAMBA_2_2 branch.Jeremy Allison2001-10-111-2/+2
| | | | Jeremy.
* Syncup getting ready for release.Jeremy Allison2001-07-061-0/+2
| | | | Jeremy.
* configure:Jeremy Allison2001-04-131-0/+2
| | | | | | | | | | | | | | | | | | | configure.in: include/config.h.in: include/profile.h: smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod and fchown to VFS (sorry Gerald - but we needed them anyway). smbd/dosmode.c: smbd/files.c: printing/printfsp.c: smbd/close.c: smbd/open.c: Fixed "dos filemode" correctly so there are no race conditions. Forces test of open of file O_WRONLY before allowing fchmod as root. Afterwards, calls standard close function that preserves POSIX locks due to POSIX-me-harder braindamage. :-). Andrew please review this code. Jeremy.
* include/vfs.h:Jeremy Allison2001-01-231-0/+8
| | | | | | | | | | | | | smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod_acl and chmod_acl. lib/substitute.c: smbd/lanman.c: smbd/open.c: smbd/process.c: smbd/reply.c: smbd/service.c: Removed sessetup_user variable. Added current_user_info struct which conatins domain info etc. Added '%D' for client domain parameter. Jeremy.
* Added a VFS version return to init call. Allows smbd to fail an init ifJeremy Allison2000-11-061-0/+8
| | | | | versions don't match. Jeremy.
* We now use our own vfs layer to do get/set acl calls (hurrah!).Jeremy Allison2000-10-061-2/+2
| | | | Jeremy.
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-061-220/+39
| | | | | | | | | | | | | | a conn struct depending on the call. We need this to have a clean NT ACL call interface. This will break any existing VFS libraries (that's why this is pre-release code). In addition - added Herb's WITH_PROFILE changes - Herb - please examine the changes I've made to the smbd/reply.c code you added. The original code was very ugly and I have replaced it with a START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor. Please check this compiles ok with the --with-profile switch. Jeremy.
* Vector get_nt_acl/set_nt_acl via vfs. POSIX ACL support should be addedJeremy Allison2000-10-051-12/+80
| | | | | above this layer. Jeremy.
* Backport of the HEAD vfs changes....Jeremy Allison2000-09-281-0/+7
| | | | Jeremy.
* Added an NT_USER_TOKEN structure that is copied/passed around associatedJeremy Allison2000-08-031-0/+49
| | | | | | | with the current user. This will allow se_access_check() to quickly do a SD check without having to translate uid/gid's to SIDs. Still needs work on pipe calls. Jeremy.
* Moved uglyness needed in fcntl locking (64->32 bit mapping, NFSJeremy Allison2000-05-021-0/+1
| | | | | | | errors etc.) into locking/posix.c, where it is needed. fcntl_lock in lib/util.c is now very small and clean. Added (*lock) op to vfs layer. Jeremy.
* This is a *big* checkin that may break some things, but implements theJeremy Allison2000-04-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new open mechanism Andrew & I discussed. config.sub: configure: Included the QNX patch. include/vfs.h: smbd/vfs-wrap.c: smbd/vfs.c: Added ftruncate vfs call (needed). Note that we will also need locking calls in the vfs (to be added). lib/util_unistr.c: nmbd/nmbd_processlogon.c: Fix for NT domain logons causing nmbd to core dump. Also fix for sidsize DOS bug. locking/locking.c: Check value of ret before using it for memdup. printing/printing.c: Convert print_fsp_open to return an allocated fsp. rpc_server/srv_lsa.c: Fix for NT domain logons. I have removed all use of lp_share_modes() from the code (although I left the parameter in the table for backwards compatibility). It no longer makes sense for this to exist. smbd/close.c: Removed lp_share_modes(). smbd/fileio.c: Fixed parameters to unlock_share_entry call in panic code. smbd/files.c: Correctly set the unix_ERR_code to ERRnofids on fsp allocation fail. smbd/nttrans.c: smbd/reply.c: smbd/trans2.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. smbd/open.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. In addition I have fixed a long standing race condition in the deny mode processing w.r.t. two smbd's creating a file. Andrew, please note that your original idea of using open with O_EXCL in this case would not work (I went over the races very carefully) and so we must re-check deny modes *after* the open() call returns. This is because there is a race between the open with O_EXCL and the lock of the share mode entry. Imagine the case where the first smbd does the open with O_EXCL and a deny mode of DENY_ALL, but is pre-empted before it locks the share modes and creates the deny mode entry for DENY_ALL. A second smbd could then come in with O_RDONLY and a deny mode of DENY_NONE and the two opens would be allowed. The *only* way to fix this race is to lock the share modes after the open and then do the deny mode checks *after* this lock in the case where the file did not originally exist. This code will need extensive testing but seems to initially work. Jeremy.
* Change to vfs API. POSIX states fsync should return an int, not a void.Jeremy Allison2000-04-041-1/+1
| | | | Jeremy.
* Busting up of source/include/smb.h into smaller pieces which can beTim Potter2000-02-031-0/+147
| | | | #included by VFS modules without bringing in too much other junk.
* 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1999-12-131-146/+0
| | | | that were in the head branch but weren't in SAMBA_2_0
* Added service name to vfs_connection_struct.Tim Potter1999-07-221-0/+9
| | | | | Added a vfs_options struct for passing smb.conf parameters to VFS modules.
* Avoid a symbol conflict with /usr/include/sys/vfs.h under AIX.Tim Potter1999-05-111-0/+6
| | | | Thanks to Steve Noyd Jones <noyd@u.washington.edu>
* Broke out of smb.hTim Potter1999-04-201-0/+131
Changed arguments to fsync() function to break dependency on connection_struct.