summaryrefslogtreecommitdiffstats
path: root/source3/smbd/trans2.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove "user" from connection_structVolker Lendecke2008-05-101-3/+6
| | | | (This used to be commit 368454a27cb53a408ec416cbf37235b304592fb5)
* Remove connection_struct->mem_ctx, connection_struct is its own parentVolker Lendecke2008-05-051-1/+1
| | | | (This used to be commit 559180f7d30606d1999399d954ceedc798c669a4)
* Rename inherit_access_acl() -> inherit_access_posix_acl() to make use clear.Jeremy Allison2008-05-021-1/+1
| | | | | Jeremy. (This used to be commit b739c7f1cdb2b19a380b06681b00dcf490d788a9)
* Fix bug found by Igor Mammedov <niallain@gmail.com> where we areJeremy Allison2008-04-281-14/+42
| | | | | | | not returning a directory value for a QPATHINFO on a msdfs link with a non-dfs path. Windows does this. Jeremy. (This used to be commit fbd99071f99cadd21aa2b8971f745a323a9cda13)
* Rewrite the wrap checks to deal with gcc 4.x optimisations.Jeremy Allison2008-04-071-30/+46
| | | | | | Karolin, please pull once Volker has reviewed. Thanks. Jeremy. (This used to be commit 09852899cadc48abe2f2651ecbceaf881198e648)
* smbd: make it possible to disable get_file_infos() on searchesStefan Metzmacher2008-04-071-5/+14
| | | | | metze (This used to be commit 404a865a34c3a7c67131b3f99e92c11b2abe3e39)
* locking: combine get_delete_on_close_flag() and get_write_time() into ↵Stefan Metzmacher2008-04-071-8/+5
| | | | | | | | | get_file_infos() This means we need to fetch the record only once. metze (This used to be commit 4130b873291d39e363184fe4e38dc1f24ebe5056)
* smbd: implement the strange write time update logicStefan Metzmacher2008-04-071-40/+45
| | | | | | | | | | | | | | | | | | | | | We now never call file_ntimes() directly, every update is done via smb_set_file_time(). This let samba3 pass the BASE-DELAYWRITE test. The write time is only updated 2 seconds after the first write() on any open handle to the current time (not the time of the first write). Each handle which had write requests updates the write time to the current time on close(). If the write time is set explicit via setfileinfo or setpathinfo the write time is visible directly and a following close on the same handle doesn't update the write time. metze (This used to be commit 2eab212ea2e1bfd8fa716c2c89b2c042f7ba12ea)
* locking: store the write time in the locking.tdbStefan Metzmacher2008-04-071-1/+2
| | | | | | | | | | This is needed to implement the strange write time update logic later. We need to store 2 time timestamps to distinguish between the time the file system had before the first client opened the file and a forced timestamp update. metze (This used to be commit 6aaa2ce0eeb46f6735ec984a2e7aadde7a7f456d)
* Metze pointed out this we don't need FILE_ATTRIBUTE_READ here.Jeremy Allison2008-03-111-1/+1
| | | | | Jeremy. (This used to be commit 923aa9f330cb370221af6b66cf0f237a9bd06f8e)
* Try and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19,Jeremy Allison2008-03-111-1/+2
| | | | | | BATCH20 and RAW-RENAME. Jeremy. (This used to be commit 9065792d4bc42522f12f9732de3c0ad82c72a2d3)
* Fix S3 to pass the test_raw_oplock_exclusive3 test.Jeremy Allison2008-03-111-1/+1
| | | | | Jeremy. (This used to be commit 028302fac53083d66c969b876db1d831e53b8e35)
* Fix some typosVolker Lendecke2008-03-081-1/+1
| | | | (This used to be commit cfa1b838144800c0758969921b8904fd62e46c07)
* Don't use fname after create_file has been calledVolker Lendecke2008-02-221-2/+2
| | | | | | | | | create_file calls unix_convert internally, so modifies fname. So we can't use "fname" after create_file has returned. Use fsp->fsp_name instead. Found during a lengthy debugging session with Karolin testing the xattr_tdb module... (This used to be commit 183fe570469963923864b732817a87f8660341ed)
* Fix uninitialized variablesVolker Lendecke2008-01-261-1/+2
| | | | | Thanks to Corinna Vinschen (This used to be commit aba8c17599f0be82cff33229bb107814d88faafe)
* Get Samba version or capability information from WindowsCorinna Vinschen2008-01-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | On Jan 22 13:31, Volker Lendecke wrote: > On Tue, Jan 22, 2008 at 11:33:17AM +0100, Corinna Vinschen wrote: > > Right. I changed samba_gitcommitdate from time_t to NTTIME and shortened > > samba_version_string to 28 bytes. New patch below. > > Ok, pushed with some modifications. You might want to review > that. Reviewed and tested. Looks good, thank you! Below you'll find a tiny patch to add the git commit date. It seems I simply missed its existence in version.h :( Tested on Windows XP. Thanks, Corinna * source/smbd/trans2.c (samba_extended_info_version): Fill out samba_gitcommitdate member with GIT commit timestamp. (This used to be commit a33d0797585b5cdd304ac1eb6966b9c7c799bab6)
* Move samba_extended_info_version to smbd/trans2.cVolker Lendecke2008-01-221-0/+32
| | | | | | This is right now only used there, and in version.c it gave linker errors because some binaries (e.g. smbmnt) don't link in time.o (This used to be commit 1f0eaaa5911f893c822465a26fe49ab65afb0730)
* Get Samba version or capability information from WindowsCorinna Vinschen2008-01-221-0/+7
| | | | | | | | | | | | | | | | | | | | | On Jan 21 16:18, Danilo Almeida wrote: > Corina wrote: > > > + time_t samba_gitcommitdate; > > And: > > > + SIVAL(pdata,28,extended_info.samba_gitcommitdate); > > + memcpy(pdata+32,extended_info.samba_version_string,32); > > Note that you are dropping bits on a system w/64-bit time_t, and that this has the 2038 problem. Right. I changed samba_gitcommitdate from time_t to NTTIME and shortened samba_version_string to 28 bytes. New patch below. Thanks, Corinna (This used to be commit 28aa1c199d3a22cda34afcaab49c0561eeb0abcb)
* Hide streams from the EA APIVolker Lendecke2008-01-221-2/+6
| | | | (This used to be commit e9bb3d5067b74a29beb778f85687829778e42b5b)
* Fix get_ea_names_from_file for many EAsVolker Lendecke2008-01-221-1/+1
| | | | | Found by the IBM checker (This used to be commit 8741a9b37496e78b28d59d844aaba12f269171e0)
* Activate SMB_QUERY_FILE_STREAM_INFOVolker Lendecke2008-01-201-5/+6
| | | | | gcolley was right, my nt4 does not blue screen with it (This used to be commit 9f2b5dc1865ca109e1e34c91548479ad9b26f450)
* Add the STREAMINFO vfs callVolker Lendecke2008-01-191-13/+99
| | | | | | | Based on jpeach's work, modified the streaminfo prototype Make use of it in trans2.c together with marshall_stream_info() (This used to be commit c34d729c7c0600a8f11bf7e489a634a4e37fe88e)
* Add get_ea_names_from_file to sanely list posix xattrsVolker Lendecke2008-01-191-49/+142
| | | | | Refactor get_ea_list_from_file to use that. (This used to be commit aec357a456798050abe565d2a744ed5f17ad5901)
* Make get_ea_value publicVolker Lendecke2008-01-191-8/+15
| | | | (This used to be commit 0aa406bbba8699063ea3758b19dca24cf42ff15a)
* Actually test vl's new code and make it work to fix the build farm :-).Jeremy Allison2008-01-181-8/+12
| | | | | Jeremy. (This used to be commit 63defd3e9d4ba3f02f36ec5ad7b73463f31962a1)
* Always return nlink=1 for directoriesVolker Lendecke2008-01-181-7/+2
| | | | | | I did not test it, but it should not affect cifsfs, there are special posix calls that also return the stat information unfiltered. (This used to be commit e96cf1309e45628f4c27d03f77a4eef5e00602df)
* Remove is_remotestorage() call from VFS. We already have statvfs() there to ↵Alexander Bokovoy2008-01-171-6/+4
| | | | | | | | | | | | | handle FS capabilities. As discussed with Volker, it is better to calculate FS capabilities at connection time. We already do this with help of VFS statvfs() call which allows to fill-in system-specific attributes including FS capabilities. So just re-use it if you want to represent additional capabilities in your modules. The only caution is that you need to call underlying statvfs() call to actually get system-specific capabilities (and other fields) added. Then add module-specific ones. (This used to be commit e342ca0d931f9a5c8ec9e472dc9c63f1fe012b3a)
* Add support for offline files support, remote storage, and Async I/O force ↵Alexander Bokovoy2008-01-161-8/+15
| | | | | | | | | | | | | | | | | operations to VFS Offline files support and remote storage are for allowing communication with backup and archiving tools that mark files moved to a tape library as offline. We translate this info into corresponding CIFS offline file attribute and mark an exported volume as remote storage. Async I/O force is to allow selective redirection of I/O operations to asynchronous processing in case it is viable at VFS module discretion. It is needed for proper handling of offline files as performing regular I/O on offline file will block smbd. Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 875208724e39564fe81385dfe36e6c963e79e101)
* use talloc_tos in a few more placesVolker Lendecke2008-01-101-1/+1
| | | | (This used to be commit 65dd869bea351010c67f02046ae4134bdada1a4c)
* Make use of talloc_pool in the main codepaths. Remove the sub-contexts.Jeremy Allison2008-01-091-20/+5
| | | | | Jeremy. (This used to be commit bc932b8ad4396f76b71c43efe9a6346f89c3632c)
* Remove redundant parameter fd from SMB_VFS_FSETXATTR().Michael Adam2008-01-081-1/+1
| | | | | Michael (This used to be commit 0bd2643463a9160c8a1c7e1c2f8cca7b89060e09)
* Remove redundant parameter fd from SMB_VFS_FREMOVEXATTR().Michael Adam2008-01-081-1/+1
| | | | | Michael (This used to be commit bfc3b5a27f707d3e4b8d5d66192891e22365fbb3)
* Remove redundant parameter fd from SMB_VFS_FLISTXATTR().Michael Adam2008-01-081-1/+1
| | | | | Michael (This used to be commit 167649b3b8bc293f8434ffc9fb5f80463e4e75be)
* Remove redundant parameter fd from SMB_VFS_FGETXATTR().Michael Adam2008-01-081-1/+1
| | | | | Michael (This used to be commit 2cb739a82dc6bb194d60718cc74b26ee7c1c46a7)
* Remove redundant parameter fd from SMB_VFS_SYS_ACL_GET_FD().Michael Adam2008-01-071-1/+1
| | | | | Michael (This used to be commit 42663e8736e1a3dfb57e0aafdcbf5fec880da779)
* Remove redundant parameter fd from SMB_VFS_FSTAT().Michael Adam2008-01-071-2/+2
| | | | | Michael (This used to be commit 0b86c420be94d295f6917a220b5d699f65b46711)
* Now conn is part of smb_request, we don't need it asJeremy Allison2008-01-041-4/+6
| | | | | | | an extra parameter. This cleans up quite a few places we were passing it around without needing it. Jeremy. (This used to be commit 8f36def18e9f980e8db522e1de41e80cfd5f466e)
* We dont' modify the smb header for crypto anymore.Jeremy Allison2008-01-041-1/+1
| | | | | Jeremy. (This used to be commit f5b6b6dac66b4ecc113985a7e7db1855b324c465)
* Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-28/+41
| | | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
* Convert call_trans2open to create_file()Volker Lendecke2008-01-021-57/+16
| | | | (This used to be commit 22138572bd2b9ae379b01098566e38e132653968)
* Allow encryption context setup on IPC$.Jeremy Allison2007-12-291-7/+27
| | | | | Jeremy. (This used to be commit 5d424cb3060af89bde50bc7fe2989e3c1b8e91b2)
* Remove tiny code duplicationVolker Lendecke2007-12-291-4/+4
| | | | | sid_size did the same as ndr_size_dom_sid (This used to be commit 8aec5d09ba023413bd8ecbdfbc7d23904df94389)
* Ensure we turn off POSIX large read/write if encryptionJeremy Allison2007-12-281-1/+4
| | | | | | is mandatory or signing is on. Jeremy. (This used to be commit 5088b704791be2f36641fa0ec59dff7f289ae868)
* Add the capability to set "smb encrypt = required"Jeremy Allison2007-12-271-1/+32
| | | | | | | | | on a share (or global) and have the server reply with ACCESS_DENIED for all non-encrypted traffic (except that used to query encryption requirements and set encryption state). Jeremy. (This used to be commit d241bfa57729bb934ada6beabf842a2ca7b4f8a2)
* Add "smb encrypt" parameter. Can be set to "no, yes, required".Jeremy Allison2007-12-271-1/+24
| | | | | | | Currently if set required this is not enforced. I'll be adding that soon. Jeremy. (This used to be commit df7e447623ac03d81bec384f5cfe83c3976cf7b2)
* Add CIFS_UNIX_TRANSPORT_ENCRYPTION_CAP capability toJeremy Allison2007-12-271-1/+5
| | | | | | our reported caps. Jeremy. (This used to be commit e86d027823c85173c64e7b85406e98f6f7345b10)
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-0/+49
| | | | | | negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)
* Fix bug 5055Volker Lendecke2007-11-261-1/+1
| | | | (This used to be commit 8bcd2df841bae63e7d58c35d4728b7d853471697)
* Paranoia check that space_remaining never goes -ve.Jeremy Allison2007-11-201-2/+10
| | | | | Jeremy. (This used to be commit 76f9c0b2dccffbff7cbf98aa63f50b48ad7cb9cb)
* Ensure we use PATH_MAX for symlinks.Jeremy Allison2007-11-161-2/+2
| | | | | Jeremy. (This used to be commit a90ef69350c5efcf8dcf95d4853cbe3c662d1ba3)