summaryrefslogtreecommitdiffstats
path: root/source/include/vfs.h
Commit message (Collapse)AuthorAgeFilesLines
* r18745: Use the Samba4 data structures for security descriptors and security ↵Jelmer Vernooij2007-10-101-5/+5
| | | | | | | | | descriptor buffers. Make security access masks simply a uint32 rather than a structure with a uint32 in it.
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-59/+70
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r15018: Merge Volker's ipc/trans2/nttrans changes overJeremy Allison2007-10-101-3/+7
| | | | | | | | into 3.0. Also merge the new POSIX lock code - this is not enabled unless -DDEVELOPER is defined. This doesn't yet map onto underlying system POSIX locks. Updates vfs to allow lock queries. Jeremy.
* r11232: Added ab's POSIX statvfs vfs call. Sorry for the delay ab.Jeremy Allison2007-10-101-4/+36
| | | | Jeremy.
* r9483: Changed DIR to SMB_STRUCT_DIR because of the amazing stupidity of a ↵Jeremy Allison2007-10-101-7/+8
| | | | | | | UNIX vendor not understanding abstract data types :-(. Jeremy.
* r9091: Fix #2954, aix 5.1 compile. Stupid aix aio.h header defines ↵Jim McDonough2007-10-101-2/+2
| | | | | | aio_error and aio_return as macros...
* r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison2007-10-101-1/+2
| | | | | | | | | tests on this as it's very late NY time (just wanted to get this work into the tree). I'll test this over the weekend.... Jerry - in looking at the difference between the two trees there seem to be some printing/ntprinting.c and registry changes we might want to examine to try keep in sync. Jeremy.
* r8093: Next round. Now it compiles with --enable-socket-wrapper.Volker Lendecke2007-10-101-4/+4
| | | | Volker
* r7963: Add aio support to 3.0.Jeremy Allison2007-10-101-3/+30
| | | | Jeremy.
* r7893: Add in the extra parameters to opendir() to fix the large ↵Jeremy Allison2007-10-101-2/+3
| | | | | | | directory/insane app problem. Rev vfs version. Doesn't change the normal codepath. Jeremy.
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2007-10-101-1/+1
| | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy
* r3844: Attempt to get the build farm in line. Some systems seem to have definedVolker Lendecke2007-10-101-2/+2
| | | | | | | rewinddir as a macro and don't like the construct to call a function pointer called rewinddir. Work around by renaming the function pointer... Volker
* r3642: Extend vfs to add seekdir/telldir/rewinddir. Yes I know I have toJeremy Allison2007-10-101-3/+13
| | | | | | fix the modules too... First step in fixing out large directories problem. Jeremy.
* r404: Revert the change 378 to vfs_extd_audit.c, the parseable auditingVolker Lendecke2007-10-101-0/+3
| | | | | | | Implement vfs_full_audit.c that can log every vfs.h operation. So if you change vfs.h, from now on you also have to change full_audit :-) Volker
* Patch based on work from James Peach <jpeach@sgi.com> to convert over toJeremy Allison2004-01-061-1/+8
| | | | | | using pread/pwrite. Modified a little to ensure fsp->pos is correct. Fix for #889. Jeremy.
* Shadow copy API - Original work by "Ken Cross" <kcross@nssolutions.com>, adaptedJeremy Allison2003-08-071-2/+7
| | | | | into a patch by "Stefan (metze) Metzmacher" <metze@metzemix.de>. Jeremy.
* Add a macro to check whether module-specific data set already or not. ↵Alexander Bokovoy2003-07-241-0/+3
| | | | Returns True or False. Should support further encapsulation of VFS-specific structs
* Added EA operations to VFS layer.Jeremy Allison2003-06-061-3/+49
| | | | Jeremy.
* Sync VFS API changes for vfs_nt_*get_acl. Patch from Stefan Metzmacher ↵Alexander Bokovoy2003-06-041-1/+1
| | | | <mezte@metzemix.de>
* Change get_nt_acl() to include security_info wanted. Only return this.Jeremy Allison2003-05-291-3/+4
| | | | | | | This gets us closer to W2k+ in what we return for file ACLs. Fix horribly broken make_sec_desc() that screwed up the size when given a SD with no owner or group (how did it get this bad... ?). Jeremy.
* Prefix VFS API macros with SMB_ for consistency and to avoid problems with ↵Alexander Bokovoy2003-05-141-4/+4
| | | | VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out
* Fix VFS layer:Alexander Bokovoy2003-05-111-142/+231
| | | | | | | | | 1. Finally work with cascaded modules with private data storage per module 2. Convert VFS API to macro calls to simplify cascading 3. Add quota support to VFS layer (prepare to NT quota support) Patch by Stefan (metze) Metzemacher, with review of Jelmer and me Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
* More merges from HEAD:Jelmer Vernooij2003-04-161-2/+2
| | | | | | - Stephan Kulow's changes (fixing warnings in libsmbclient) - VFS modules - Seperating libs
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-2/+5
|
* sync 3.0 branch with headJelmer Vernooij2002-08-171-2/+199
|
* Stomped on some header file version numbers that have crept back in.Tim Potter2002-03-221-2/+1
|
* Sync up vfs changes from 2.2.x.Jeremy Allison2002-03-191-2/+4
| | | | Jeremy.
* Added POSIX ACL layer into the vfs.Jeremy Allison2002-03-121-2/+25
| | | | Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Getting ready to add UNIX extensions in HEAD also.Jeremy Allison2002-01-101-25/+28
| | | | Jeremy
* Merge of transfer file code from 2.2, fix for readbraw.Jeremy Allison2001-09-041-2/+2
| | | | Jeremy.
* The big character set handling changeover!Andrew Tridgell2001-07-041-19/+19
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* Ensured all the system calls in msdfs.c go through the vfs layer.Jeremy Allison2001-06-291-0/+2
| | | | | | Added vfs calls to symlink() and readlink() with appropriate configure checks. Jeremy.
* configure:Jeremy Allison2001-04-141-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. Also - in removing the tmpdir param in smbrun an extra NULL parameter was missed in each print_run_command() call (which is a varargs fn.). Now fixed. 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.
* Herb's warning fixes. Also the POSIX locking fix.Jeremy Allison2000-10-061-2/+2
| | | | | We now use our own vfs layer to do get/set acl calls (hurrah!). 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). Andrew gets credit for this one :-) :-). 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-10/+76
| | | | | above this layer. Jeremy.
* utf-8 and EUC3 patch from Hiroshi Miura Samba User Group Japan staff.Jeremy Allison2000-10-031-2/+4
| | | | | mkdir high bits patch from Robert Dahlem" <Robert.Dahlem@gmx.net>. jeremy.
* Restructuring of the code to remove dos_ChDir/dos_GetWd and re-vector themJeremy Allison2000-09-271-0/+7
| | | | | | | through the VFS. All file access/directory access code in smbd should now go via the vfs. Added vfs_chown/vfs_chmod calls. Still looking at vfs_get_nt_acl() vfs_set_nt_acl() call API design. 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.