summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:smbd: wildcard characters are allowed in stream namesStefan Metzmacher2008-12-011-1/+11
| | | | | | We only check the filename of the basefile now. metze
* s3:smbd: correctly verify stream names to pass RAW-STREAMSStefan Metzmacher2008-12-011-1/+35
| | | | metze
* s3:smbd: '|' isn't allowed in windows filenamesStefan Metzmacher2008-12-011-1/+1
| | | | metze
* Fix a debug message, append the correct \nVolker Lendecke2008-12-011-1/+1
|
* Make nt4_compatible_acls() non-static for use by VFS ACL modules.Steven Danneman2008-11-301-1/+1
|
* Set PRESENT flag when returning NULL [SD]ACL like Windows does.Steven Danneman2008-11-301-1/+9
| | | | | This could also be handled inside each ACL VFS module, by setting the PRESENT flag when a NULL [SD]ACL is created.
* Remove "conn" parameter from np_open, smb_request contains itVolker Lendecke2008-11-282-2/+2
|
* Remove inbuf references from the trans2ioctl codeVolker Lendecke2008-11-281-4/+4
|
* Consolidate the buffer checks for the reply_trans style functionsVolker Lendecke2008-11-283-169/+54
| | | | | | | | This is the one where I found the problem that led to 3.2.5. So if there is one checkin in the last year that I would like others to review and *understand*, it is this one :-) Volker
* Remove the variable "size" from reply_nttransVolker Lendecke2008-11-281-10/+13
| | | | | | | | | | | | | This converts the range checks for the setup[] array to rely on req->wct being set correctly in init_smb_request. As that already verifies the vwv array to be in the range of the smb_request inbuf, we don't have to do overflow checks here anymore. Jeremy, please check thoroughly! :-) Thanks, Volker
* Remove the variable "size" from reply_transVolker Lendecke2008-11-281-12/+16
| | | | | | | | | | | | | This converts the range checks for the setup[] array to rely on req->wct being set correctly in init_smb_request. As that already verifies the vwv array to be in the range of the smb_request inbuf, we don't have to do overflow checks here anymore. Jeremy, please check thoroughly! :-) Thanks, Volker
* Remove an unused variableVolker Lendecke2008-11-281-2/+0
|
* Remove two direct inbuf references from reply_sesssetup_and_X_spnego()Volker Lendecke2008-11-281-2/+2
|
* Fix the offset checks in the trans routinesVolker Lendecke2008-11-273-9/+9
| | | | | | | | | This fixes a potential crash bug, a client can make us read memory we should not read. Luckily I got the disp checks right... Volker (cherry picked from commit 64a1d80851da5b05e70ec6c96f6e9bd473748369) (cherry picked from commit f04c5650a3aeca23591ddc781c4b297caaf9bb3f)
* Fix bug #5873 - ACL inheritance cannot be broken. This regresses #4308, but ↵Jeremy Allison2008-11-241-0/+8
| | | | | | | that will have to be fixed another way. Jeremy.
* Get rid of pipes_struct->pipe_user, we have server_info now --- YESSS!Volker Lendecke2008-11-241-3/+3
|
* Remove unused make_connection_with_chdir()Volker Lendecke2008-11-241-32/+0
|
* Fix to allow setting of NULL DACL/SACLSteven Danneman2008-11-231-11/+2
| | | | | | | | | | | This is a modification of Jeremy's 7522ef15aca2429ef57c75d8297dd8121e79c9da commit. If no DACL/SACL is present in the packet, the SEC_INFO field should still be passed down as is to the VFS layer to signal the creation of a NULL DACL/SACL. As seen in metze RAW-ACL test_nttrans_create_null_dacl(), a NULL DACL is set regardless of the SEC_DESC_DACL_PRESENT bit being set.
* Add auth_serversupplied_info to create_conn_structVolker Lendecke2008-11-231-4/+15
| | | | srvsvc needs it, as will printing
* Rever 83ff6979f504d50caf725ee62549604630b69be7 - "Fix the logic bug that ↵Jeremy Allison2008-11-211-7/+1
| | | | | | | | caused us to run into kernel oplocks on an open for a stream inside a file with stream_xattr module. On opening the base_fsp we must break existing oplocks." as it broke make test. Jeremy.
* Fix the logic bug that caused us to run into kernel oplocks on an open for a ↵Jeremy Allison2008-11-211-1/+7
| | | | | | stream inside a file with stream_xattr module. On opening the base_fsp we must break existing oplocks. Jeremy.
* Second part of the fix for bug #5903 - vfs_streams_xattr breaks contents of ↵Jeremy Allison2008-11-211-15/+46
| | | | | | | the file (also fix a bad merge of the previous patch from 3.3). Jeremy.
* First part of fix for bug #5903 - vfs_streams_xattr breaks contents of the file.Jeremy Allison2008-11-215-109/+126
| | | | | | Restructures parts of open code so that fsp must be allocated before calling open_file_ntcreate(_internal). Also fix up file ref-counting inside files.c. Jeremy.
* Fix bug #5909 - MS-DFS does not work on Vista, if link name includes ↵Yasuma Takeda2008-11-201-6/+6
| | | | multibyte character.
* Fix bug #5908 - Samba 3.0.32 - internal change notify on share directory fails"Dina Fine2008-11-181-0/+3
|
* Re-structure Volker's patch to "Fix trans2findfirst for the large directory ↵Jeremy Allison2008-11-181-26/+21
| | | | | | optimization". Makes the change clearer. Jeremy.
* Fix trans2findfirst for the large directory optimizationVolker Lendecke2008-11-181-0/+5
| | | | | | | | | | | | | | | | With case sensitive = yes preserve case = no short preserve case = no default case = upper a "dir FOO.txt" would not find "FOO.TXT" because FOO.txt ends up unconverted in the mask for mask_match. Jeremy, please check! Volker
* Fix bug #5900 reported by monyo@samba.gr.jp - vfs_readonly.so does not work.Jeremy Allison2008-11-172-3/+6
| | | | Jeremy.
* Fix build breakTim Prouty2008-11-121-1/+1
|
* Pretty print out SD's on get/set.Jeremy Allison2008-11-121-0/+10
| | | | Jeremy.
* s3: Add support for storing dos attributes as st_flags in the stat struct.Tim Prouty2008-11-121-13/+147
| | | | | | | | | | | | | Some filesystems have support for storing dos attributes directly in the inode's st_flags and accessing them through the stat struct. This patch: - Adds a configure check to see if the special flags are available. - Implements getting and setting dos attributes in the stat struct and inode, respectively. This will not change the existing functionality of any system that doesn't have the special flags available.
* Fix bug 5889. "delete veto files = no" seems to break.Jeremy Allison2008-11-111-4/+11
| | | | Jeremy.
* Make "construct_reply_common" staticVolker Lendecke2008-11-081-1/+3
|
* Do not write into inbuf for the transs requestVolker Lendecke2008-11-084-19/+23
| | | | | Instead, fix up the outbuf in send_xx_reply. In those routines, we know what we are returning.
* Remove direct inbuf refs from send_trans_replyVolker Lendecke2008-11-081-37/+35
|
* change CHECK_READ to use smb_request instead of inbufVolker Lendecke2008-11-081-3/+3
|
* Remove a direct inbuf reference from reply_nttrans()Volker Lendecke2008-11-081-2/+1
|
* Remove a direct inbuf reference (should have been removed with 8987641d...)Volker Lendecke2008-11-081-1/+1
|
* Remove the change to the user context in process_blocking_lock_queue()Volker Lendecke2008-11-081-76/+8
|
* Converting notify.c to store a request, not an inbufVolker Lendecke2008-11-082-56/+30
|
* Make us clean under valgrind --leak-check=full by using ↵Jeremy Allison2008-11-062-4/+4
| | | | | | | | | | talloc_autofree_context() instead of NULL. Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should be deleted when their parent context is deleted, so freeing them at some arbitrary point later will be a double-free. Jeremy.
* Convert to use VFS layer.Herb Lewis2008-11-061-1/+1
|
* Add wrapper str_list_make_v3() to replace the old S3 behavior ofJeremy Allison2008-11-062-2/+2
| | | | | | | | str_list_make(). From Dan Sledz <dan.sledz@isilon.com>: In samba 3.2 passing NULL or an empty string returned NULL. In master, it now returns a list of length 1 with the first string set to NULL (an empty list). Jeremy.
* Final fix to make us pass NULL SD test in RAW-ACLs. Not sure if this is 100% ↵Jeremy Allison2008-11-061-0/+3
| | | | | | right. Only inheritance left to fix. Jeremy.
* Don't call FSET_NT_ACL on file create if there's no SD to set. Leave the ↵Jeremy Allison2008-11-061-1/+6
| | | | | | default ACL in place. Jeremy.
* Add reference to bug #4308 to remind me to add regression test to smbtorture.Jeremy Allison2008-11-051-1/+1
| | | | Jeremy.
* Fix the buildVolker Lendecke2008-11-051-1/+1
|
* Fix a const warningVolker Lendecke2008-11-041-1/+1
|
* Convert blocking.c to store a smb_request instead of just inbufVolker Lendecke2008-11-041-88/+54
|
* Simplify logic of cancel_pending_lock_requests_by_fid()Volker Lendecke2008-11-041-20/+18
| | | | | The only caller of this function is locking_close_file(). This checks itself if brl_lock != NULL. The additional check is not necessary here.