summaryrefslogtreecommitdiffstats
path: root/source/smbd/nttrans.c
Commit message (Collapse)AuthorAgeFilesLines
* Add some debug to reply_nttransVolker Lendecke2008-09-091-0/+11
|
* Fix calculation of useable_space for trans2 and nttrans repliesVolker Lendecke2008-09-081-12/+10
| | | | | | When alignment was in place, we pretended to send more data/params according to the param_offset/param_length and data_offset/data_length parameters than would actually fit into the SMB according to the NBSS length field.
* smbd: fix the handling of create_options to pass RAW-OPENStefan Metzmacher2008-08-201-0/+12
| | | | | | | | Some of the bits generate INVALID_PARAMETER and some bits are ignored when they come from a client, that's why we need to use bits from the ignored range for our internal usage. metze
* Introduce is_known_pipenameVolker Lendecke2008-07-191-35/+1
| | | | | This scans the list of pipes registered via rpc_pipe_register_commands instead of using static tables.
* Remove current_user references from nttrans.cVolker Lendecke2008-06-191-3/+2
|
* Remove current_user references from trans2.cVolker Lendecke2008-06-191-2/+2
| | | | This involved replacing the CHECK_NTQUOTA_HANDLE_OK macro by a function.
* Remove the "current_user" arg from fsp_belongs_connVolker Lendecke2008-06-191-3/+3
| | | | | fsp_belongs_conn only used the vuid struct member anyway, and this is available in the smb_request structure as well.
* Remove the "current_user" arg from check_fspVolker Lendecke2008-06-191-1/+1
| | | | | check_fsp only used the vuid struct member anyway, and this is available in the smb_request structure as well.
* Simplify fake_file logicVolker Lendecke2008-05-161-1/+1
|
* Remove "user" from connection_structVolker Lendecke2008-05-101-4/+6
|
* Remove a couple of uses of SMB_VFS_GET_NT_ACL(), useJeremy Allison2008-05-091-8/+2
| | | | | | SMB_VFS_FGET_NT_ACL instead. I'd like to ultimately remove SMB_VFS_GET_NT_ACL. Jeremy.
* Yay ! Remove a VFS entry. Removed the set_nt_acl() call,Jeremy Allison2008-05-081-7/+1
| | | | | | | | | | | | | | this can only be done via fset_nt_acl() using an open file/directory handle. I'd like to do the same with get_nt_acl() but am concerned about efficiency problems with "hide unreadable/hide unwritable" when doing a directory listing (this would mean opening every file in the dir on list). Moving closer to rationalizing the ACL model and maybe moving the POSIX calls into a posix_acl VFS module rather than having them as first class citizens of the VFS. Jeremy.
* Remove connection_struct->mem_ctx, connection_struct is its own parentVolker Lendecke2008-05-051-1/+1
|
* Remove two pointless else branchesVolker Lendecke2008-04-141-7/+5
|
* Rewrite the wrap checks to deal with gcc 4.x optimisations.Jeremy Allison2008-04-071-38/+51
| | | | | Karolin, please pull once Volker has reviewed. Thanks. Jeremy.
* smbd: implement the strange write time update logicStefan Metzmacher2008-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | 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
* smbd: ignore nttrans renames as w2k3 doesStefan Metzmacher2008-04-011-24/+3
| | | | | | | | This lets us pass the RAW-RENAME test. metze Signed-off-by: Michael Adam <obnox@samba.org>
* Using Metze's S4 nttrans rename test, the nttrans renameJeremy Allison2008-03-111-1/+1
| | | | | behaves the same as the trans2 one. Jeremy.
* Try and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19,Jeremy Allison2008-03-111-2/+3
| | | | | BATCH20 and RAW-RENAME. Jeremy.
* Don't use fname after create_file has been calledVolker Lendecke2008-02-221-5/+5
| | | | | | | | 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...
* Add "split_ntfs_stream_name()" together with a torture testVolker Lendecke2008-01-191-0/+3
|
* Make use of talloc_pool in the main codepaths. Remove the sub-contexts.Jeremy Allison2008-01-091-8/+0
| | | | Jeremy.
* Remove superfluous parameter fd from SMB_VFS_FSET_NT_ACL().Michael Adam2008-01-061-2/+1
| | | | Michael
* Remove superfluous fd parameter from SMB_VFS_FGET_NT_ACL().Michael Adam2008-01-061-1/+1
| | | | Michael
* Now conn is part of smb_request, we don't need it asJeremy Allison2008-01-041-5/+9
| | | | | | an extra parameter. This cleans up quite a few places we were passing it around without needing it. Jeremy.
* Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-17/+22
| | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy.
* Remove tiny code duplicationVolker Lendecke2007-12-291-1/+1
| | | | ndr_size_security_descriptor does the same as sec_desc_size
* Remove tiny code duplicationVolker Lendecke2007-12-291-1/+2
| | | | sid_size did the same as ndr_size_dom_sid
* Change the prototype of the vfs function get_nt_acl().Michael Adam2007-12-191-1/+1
| | | | | | | | | | | | | | Up to now, get_nt_acl() took a files_struct pointer (fsp) and a file name. All the underlying functions should need and now do need (after the previous preparatory work), is a connection_struct and a file name. The connection_struct is already there in the vfs_handle passed to the vfs functions. So the files_struct argument can be eliminated. This eliminates the need of calling open_file_stat in a couple of places to produce the fsp needed. Michael
* make use of [un]marshall_sec_desc, allow for fd==-1 in get/set_secdescVolker Lendecke2007-12-161-87/+46
|
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-3/+4
|
* Attempt to fix make test :-)Volker Lendecke2007-12-071-2/+2
|
* Pass only internal oplock request values to create_fileVolker Lendecke2007-12-071-4/+66
| | | | | Other callers (e.g. reply_open_and_X) might have other ideas of the bit shuffling
* More parameter shufflingVolker Lendecke2007-12-071-4/+4
|
* Re-arrange create_file() parametersVolker Lendecke2007-12-071-4/+4
| | | | | This changes them to be a bit closer to open_file_ntcreate and thus provides less surprises to developers
* There's no point in passing down a 0Volker Lendecke2007-12-051-4/+2
|
* Move create_file to open.cVolker Lendecke2007-12-051-477/+0
| | | | | I'm checking in this long sequence of micro-checkins for review, the overall patch from 3b057022a5 to this is not too large.
* Fix an uninitialized variableVolker Lendecke2007-12-051-1/+1
|
* Fix debugVolker Lendecke2007-12-051-2/+8
|
* Fix attribute calculation for ntcreate&xVolker Lendecke2007-12-051-17/+21
|
* Fix error returnsVolker Lendecke2007-12-051-2/+12
|
* Fix debugsVolker Lendecke2007-12-051-2/+18
|
* Implement create_file()Volker Lendecke2007-12-051-706/+347
| | | | | | Rip out the cores of reply_ntcreate_and_X and call_nt_transact_create Volker
* Reformatting, also allow quotas for transact_createVolker Lendecke2007-12-051-12/+38
|
* Tiny refactoringsVolker Lendecke2007-12-051-17/+12
|
* Split out sd parsingVolker Lendecke2007-12-051-5/+33
|
* ReformattingVolker Lendecke2007-12-051-9/+12
|
* Align formatting, one TALLOC_FREE is enoughVolker Lendecke2007-12-051-5/+5
|
* Move pulling the ea list out of the wayVolker Lendecke2007-12-051-14/+8
|
* ReformattingVolker Lendecke2007-12-051-10/+12
|