summaryrefslogtreecommitdiffstats
path: root/source/smbd/nttrans.c
Commit message (Collapse)AuthorAgeFilesLines
* r25387: Sync with 3.2.0 svn treeGerald Carter2007-09-271-209/+306
|
* r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke2007-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker
* r24702: Remove the old API pointersVolker Lendecke2007-08-271-3/+3
|
* r24660: Merge the inbuf/outbuf changesVolker Lendecke2007-08-251-576/+795
|
* r24499: Move the checks for DOS error codes on open to a function.Jeremy Allison2007-08-161-30/+2
| | | | Jeremy.
* r24474: Map error value NT_STATUS_OBJECT_NAME_COLLISIONJeremy Allison2007-08-151-47/+50
| | | | | to ERRDOS, ERRfilexists for NTCreateX and NTTransCreate. Jeremy.
* r23939: Fixes for notify returns. Returned param value must fix insideJeremy Allison2007-07-171-2/+3
| | | | | max_param or return NT_STATUS_OK. Jeremy.
* r23903: Fix a potential reason for the segfault Steve foundVolker Lendecke2007-07-161-0/+1
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-101-2/+1
|
* r23781: Add Volker's change to remove globals :Jeremy Allison2007-07-091-63/+68
| | | | | | | "Get rid of the three global variables for the case semantics. I think this is really not worth globals." Jeremy.
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-091-1/+1
| | | | Jeremy.
* r23765: Another error-path restore_case_semantics().Volker Lendecke2007-07-091-0/+1
|
* r23764: Do restore_case_semantics in an error path. Jeremy, please check!Volker Lendecke2007-07-091-0/+1
|
* r23761: Rename reduce_name to check_reduced_nameVolker Lendecke2007-07-091-1/+1
| | | | | The function name reduce_name is misleading, making the user believe it changes an argument.
* r23741: Combined merge of 23726, 23727 and 23731 from 3_0:Volker Lendecke2007-07-071-12/+34
| | | | | | | | | | | | | | | | | | | | | 23726: Explicitly pass down the FLAGS2 field to srvstr_pull_buf. The next checkin will pull this up to srvstr_get_path. At that point we can get more independent of the inbuf, the base_ptr in pull_string will only be used to satisfy UCS2 alignment constraints. 23731: Explicitly pass down FLAGS2 to srvstr_get_path. Next step is to remove the bug that in the trans2 code we use the inbuf as the base pointer to decide whether we need ucs2 alignment where we need to use the beginning of the params buffer 23731: Forgot one reference to inbuf
* r23739: Merge r23724 from 3_0 without the accidential checkin:Volker Lendecke2007-07-071-12/+32
| | | | | | | | Reduce access to the global inbuf a tiny bit. Add a struct smb_request that contains some of the fields from the SMB header, removing the need to access inbuf directly. This right now is used only in the open file code & friends, and creating that header is only done when needed. This needs more work, but it is a start.
* r23640: When we support the SeSecurity privilage, this is whereJeremy Allison2007-06-271-0/+21
| | | | | we'll check it. Jeremy.
* r23620: Convert set_nt_acl to return NTSTATUS. Also fix the chownJeremy Allison2007-06-261-9/+3
| | | | | | | | | return to correctly return NT_STATUS_INVALID_OWNER if it should be disallowed. Matches better what W2K3R3 does. NFSv4 ACL module owners, please examine these changes. Jeremy.
* r23511: Merge branches/SAMBA_3_0@23510James Peach2007-06-151-1/+1
| | | | | Tidy calls to smb_panic by removing trailing newlines. Print the failed expression in SMB_ASSERT.
* r23450: max_params_return is complete fiction when getting a changenotifyJeremy Allison2007-06-121-4/+2
| | | | | | request. Ignore it. Should fix bug #4689 but more tests and valgrinding will follow. Jeremy.
* r23346: Fix offline caching with XP/Vista. It was an off-by-oneJeremy Allison2007-06-041-4/+4
| | | | | | in storing the access mask. I shouldn't have made this mistake. Damn. Fixes bug #4673. Jeremy
* r23203: sync a few comments from SAMBA_3_0Gerald Carter2007-05-291-3/+3
|
* r23183: Check in a change made by Tridge:Volker Lendecke2007-05-291-4/+2
| | | | | | | | | | | | | This replaces the internal explicit dev/ino file id representation by a "struct file_id". This is necessary as cluster file systems and NFS don't necessarily assign the same device number to the shared file system. With this structure in place we can now easily add different schemes to map a file to a unique 64-bit device node. Jeremy, you might note that I did not change the external interface of smb_share_modes.c. Volker
* r22909: Change prototype of dump_data(), so that it takes unsigned char *Michael Adam2007-05-151-1/+1
| | | | | | | | | | instead of char *, which matches what samba4 has. Fix all the callers to prevent compiler warnings. This essentially ports r22001 from SAMBA_3_0 to SAMBA_3_0_26. There are a few additional type cast corrections.
* r22652: re-add Jeremy objectID changesGerald Carter2007-05-031-12/+22
|
* r22649: revert the objectID changes (for now) and leave these for 3.0.26Gerald Carter2007-05-031-22/+12
|
* r22542: Move over to using the _strict varients of the tallocJeremy Allison2007-04-271-1/+1
| | | | | calls. No functional changes. Looks bigger than it is :-). Jeremy.
* r22492: Add objectid code.Jeremy Allison2007-04-231-12/+22
| | | | Jeremy.
* r22129: Fix the nttrans create extended response for pipesJeremy Allison2007-04-081-5/+44
| | | | | | and files (tested with Win32 code). Bug #4404 should now be dead :-). Jeremy.
* r22128: Fix the pipe open response with EXTENDED_RESPONSE_REQUIREDJeremy Allison2007-04-081-1/+24
| | | | | set. Only the NTTrans create left to fix for csc. Jeremy.
* r22124: Wow - NTCreateX sets the word count to 42, but returns 50 onJeremy Allison2007-04-071-1/+7
| | | | | | the wire. Strange.... But now we're returning Windows compatible extended info. Next to fix the pipe returns and NTTrans Creates. Jeremy.
* r22123: Try and fix the csc (#4404) bug by supporting the extendedJeremy Allison2007-04-071-7/+18
| | | | | | | response to NTCreateX - need to fix this also for pipe open and NTTransCreate as well so this isn't finished. Jeremy.
* r21856: Re-merge svn r16619 from trunk that was lost when adding PIDLGerald Carter2007-03-161-1/+1
| | | | | | | | | and then not merging PIDL to SAMBA_3_0_25. * Rework parsing for NetFileEnum() and NetSessionEnum() * Add server stub for NetFileClose() * Return correct information for sessions and open files including session duration, number of open files, and open pipes.
* r21800: Check-in the DFS rewrite. I am still testing this but itJeremy Allison2007-03-121-8/+25
| | | | | | | | works from smbclient and Windows, and I am promising to support and fix both client and server code moving forward. Still need to test the RPC admin support but I haven't changed that code. Jeremy.
* r21754: Volker is completely correct. There's no need forJeremy Allison2007-03-071-5/+16
| | | | | | | the RESOLVE_DFSPATH macros and their varients any more. Fix reporting profile bug with all error returns. Jeremy.
* r21752: Merge the cosmetic changesVolker Lendecke2007-03-071-24/+33
|
* r21714: Change the VFS interface to use struct timespecJeremy Allison2007-03-051-1/+1
| | | | | | | | | | for utimes - change the call to ntimes. This preserves nsec timestamps we get from stat (if the system supports it) and only maps back down to usec or sec resolution on time set. Looks bigger than it is as I had to move lots of internal code from using time_t and struct utimebuf to struct timespec. Jeremy.
* r21672: The cannonical file access pattern should look like this :Jeremy Allison2007-03-031-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | srvstr_get_path(inbuf, name, smb_buf(inbuf) + 1, sizeof(name), 0, STR_TERMINATE, &status); if (!NT_STATUS_IS_OK(status)) { return ERROR_NT(status); } RESOLVE_DFSPATH(name, conn, inbuf, outbuf); status = unix_convert(conn, name, False, NULL, &sbuf); if (!NT_STATUS_IS_OK(status)) { return ERROR_NT(status); } status = check_name(conn, name); if (!NT_STATUS_IS_OK(status)) { return ERROR_NT(status); } Make sure that every access pattern (including the wildcard generated paths from unlink, rename, and copy) do the same. Tidy things up a bit.... Jeremy.
* r21420: Looks big, but isn't really. Move internal namesJeremy Allison2007-02-181-1/+1
| | | | | | | | | of SEC_DESC over from grp_owner -> group_owner, ace -> aces and info.mask -> mask. Makes it *much* easier to move code within branches as they're now referring to the same names for the same things (which is what the NDR code also uses). Jeremy.
* r21322: No feedback means consent :-)Volker Lendecke2007-02-131-19/+59
| | | | | | | | | | | It does not matter if I screw up 3.0.25 or 3.0.26 with this, so do it rather sooner than later. Add the notify support that already exists in 3_0 to 3_0_25. If you want to see this patch dissected into digestable parts, look at 3_0, revisions at about 20800 and following. Volker
* r21209: Add in the POSIX extensions.Jeremy Allison2007-02-071-10/+16
| | | | Jeremy.
* r20995: Get rid of unused macrosHerb Lewis2007-01-241-16/+16
|
* r20879: Fix profile cut-and paste error found by Volker.Jeremy Allison2007-01-181-1/+0
| | | | Jeremy.
* r20873: Some correctness fixes w.r.t. Samba4 torture BASE-DELETE.Jeremy Allison2007-01-181-9/+14
| | | | | | | | Allow us to correctly refuse to set delete on close on a non-empty directory. There are still some delete-on-close wrinkles to be fixed, but I understand how to do that better now. I'll fix this tomorrow. Jeremy.
* r20844: Somewhat radical change - this may break the build (I willJeremy Allison2007-01-171-11/+17
| | | | | | | | | | | | watch carefully - so I'm doing it in one transaction so I can roll back). Change check_name(), reduce_name() and dptr_create() to return NTSTATUS. This helps a lot in error path processing and especially in reduce_name() allows us to ditch the flaky and error-prone saving of errno and return errors directly. Jeremy.
* r20781: Fix a couple of paths found by Volker where we weren'tJeremy Allison2007-01-141-1/+7
| | | | | correctly handling deferred opens. Jeremy.
* r20724: Get closer to passing RAW-OPEN. If the client is usingJeremy Allison2007-01-131-12/+10
| | | | | | create disposition of FILE_CREATE then there's no need to check can_delete_file_in_directory(). Jeremy.
* r20719: Sync up the changes in the fileserver code between SAMBA_3_0.Jeremy Allison2007-01-121-9/+16
| | | | | copy now returns NTSTATUS, part of close does the same. Jeremy.
* r20671: This version of the pathname code passes volkersJeremy Allison2007-01-111-9/+4
| | | | | modified gentest to 1000 iterations. Jeremy.
* r20655: After consulting with Volker, fix our pathnameJeremy Allison2007-01-101-33/+14
| | | | | | | | | | handling. Gets rid of more code than it adds. I will port this to SAMBA_3_0 next. There are still some wrinkles with wildcard delete I am working on - for example a dirtype pattern of 0x8aa4 isn't handled correctly yet.... still looking at this. Jeremy.