summaryrefslogtreecommitdiffstats
path: root/source/include/vfs.h
Commit message (Collapse)AuthorAgeFilesLines
* 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.