summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2009-06-18Fix bug 4699: Remove pidfile on clean shutdownVolker Lendecke1-0/+3
2009-06-18acl_group_override() doesn't need to call stat. Pass thisJeremy Allison1-28/+17
down from above (as const). Jeremy.
2009-06-18Add some const to the stat struct in the dosmode calls.Jeremy Allison6-83/+64
Fix a couple more unix_convert uses to filename_convert. Fix bug in acl_group_override() where an uninitialized struct could be used. Move unix_convert with wildcard use in SMBsearch reply to boilerplate code. Jeremy.
2009-06-18Replace the boilerplate calls to :Jeremy Allison5-268/+146
resolve_dfspath() -> unix_convert() -> get_full_smb_filename() -> check_name() with a new function filename_convert(). This restores the check_name() calls that had gone missing since the default create_file was changed. All "standard" pathname processing now goes through filename_convert(). I'll take a look at the non-standard pathname processing next. As a benefit, fixed a missing resolve_dfspath() in the trans2 mkdir call. Jeremy.
2009-06-17s3: Change SMB_VFS_OPEN to take an smb_filename structTim Prouty3-7/+22
This was a little messy because of all of the vfs modules I had to touch. Most of them were pretty straight forward, but the streams modules required a little attention to handle smb_filename. Since the use of smb_filename enables the vfs modules to access the raw, over-the-wire stream, a little bit of the handling that was being done by split_ntfs_stream_name has now been shifted into the individual stream modules. It may be a little more code, but overall it gives more flexibility to the streams modules, while also allowing correct stream handling.
2009-06-17s3: Plumb smb_filename from create_file all of the way down to fd_openTim Prouty3-196/+276
I used the smb_filename struct everywhere that was feasible for the first pass. There are still some places in this path that need to be changed to use smb_filename, but this is a good start. I also: - Removed fname/path arguments from a few functions that weren't really using them. - Added a utility function for detecting whether an smb_filename is a stream.
2009-06-17Fix bug #6476 - more then 3000 smbd-zombies in memoryJeremy Allison1-0/+12
We weren't reaping children in the [x]inetd case. Jeremy.
2009-06-16Remove msdfs pathname processing from default create file.Jeremy Allison1-25/+0
No longer needed. Jeremy
2009-06-16Fix msdfs after the change to smb_filename struct. We must *always*Jeremy Allison4-27/+138
pull the pathname, then call resolve_dfspath(), before unix_convert(). Jeremy.
2009-06-12s3: Plumb smb_filename through SMB_VFS_CREATE_FILETim Prouty6-257/+234
2009-06-12s3: Add smb_filename utility functions and fix a bug in copy_smb_filenameTim Prouty1-5/+85
2009-06-12Check for error in transfer_file return also.Jeremy Allison1-1/+7
Jeremy.
2009-06-12Fix bug 6440Volker Lendecke1-11/+19
Don't ignore the close error of the output file in check_magic()
2009-06-12Simplify close_normal_file()Volker Lendecke1-22/+21
2009-06-11Fix bug #6297 - owner of sticky directory cannot delete files created by others.Jeremy Allison1-2/+13
The reason we couldn't delete was we were erroring out early if requestor was not the owner of the file we wanted to delete, instead of checking if the requestor owned the directory as well. If either of these is true, we must go on and check the ACL. Karolin, this is a must for 3.4.0 and also 3.3.next. I'll update the bug report with patches for 3.4.0 and 3.3.next and ask vl to review. Jeremy.
2009-06-11s3: Prepare the rename path for passing smb_filename to SMB_VFS_CREATE_FILETim Prouty1-106/+133
2009-06-11s3: Prepare the do_unlink path for passing smb_filname to SMB_VFS_CREATE_FILETim Prouty1-72/+77
2009-06-11s3: refactor utility function to handle splitting the directory from the maskTim Prouty1-11/+35
2009-06-10s3: Prepare the first set of SMB_VFS_CREATE_FILE callers to take an ↵Tim Prouty4-157/+233
smb_filename struct Some of the callers required minimal changes, while others (copy_internals) required significant changes. The task is simplified a little bit because we are able to do operations and checks on the base_name when a stream isn't used. This patch should cause no functional changes. Volker, Jeremy: Please check
2009-06-10s3: Add utility function for copying an smb_filename structTim Prouty1-0/+39
2009-06-10s3: Remove unix_convert handling from createfile implementationsTim Prouty1-29/+4
2009-06-10s3: Make all callers of SMB_VFS_CREATEFILE call unix_convert firstTim Prouty4-140/+209
This step is a requirement to change SMB_VFS_CREATEFILE to take an smb_filename struct.
2009-06-10s3: Remove unused stat structs being passed to SMB_VFS_CREATE_FILETim Prouty2-8/+2
2009-06-09s3:smbd: only check the next_status for related requestsStefan Metzmacher1-11/+12
metze
2009-06-09s3:smbd: response with the same SMB2 flags as given by the clientStefan Metzmacher1-1/+4
...but also add the response flag. metze
2009-06-09s3:smbd: only pass the chained file handle for related compounded SMB2 requestsStefan Metzmacher1-0/+4
metze
2009-06-09s3:smbd: make sure we pad compounded SMB2 responses to 8 bytesStefan Metzmacher1-2/+47
metze
2009-06-09s3:smbd: skip file handle checks for SMB2 compounded requestsStefan Metzmacher5-6/+16
metze
2009-06-09s3:smbd: more validation of the incoming SMB2 requestsStefan Metzmacher2-4/+96
metze
2009-06-09s3:smbd: for now ignore all non NBT Session Message requests for SMB2Stefan Metzmacher1-0/+9
metze
2009-06-09s3:smbd: don't include 1 byte padding for the dynamic buffer of SMB2 responsesStefan Metzmacher1-21/+9
It seems that Windows 2008 and Windows 7 doesn't do this anymore. metze
2009-06-08Set SIGRTMIN to NSIGTimur I. Bakeyev1-3/+0
In the includes we define SIGRTMIN to 32 if it's not defined already. This value could be fairly low and it's better to use NSIG(number of defined signals) as the lower mark for the available signals. We have similar defenition in the source3/smbd/aio.c, which can be safely removed, as it comes from includes.h then. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-06-06s3:smbd: FSCTL_PIPE_TRANSCEIVE on a none IPC$ share should give NOT_SUPPORTEDStefan Metzmacher1-1/+1
metze
2009-06-06s3:smbd: return the same things as Windows 7 for SMB2 Ioctl responsesStefan Metzmacher1-7/+23
metze
2009-06-05s3:smbd: split smbd_smb2_flush() into a tevent_req based _send()/_recv() pairStefan Metzmacher1-25/+97
metze
2009-06-05s3:smbd: split smbd_smb2_create() into a tevent_req based _send()/_recv() pairStefan Metzmacher1-99/+199
metze
2009-06-05s3:smbd: fix the build in smb2_ioctl.cStefan Metzmacher1-1/+1
metze
2009-06-05s3:smbd: add support for SMB2 Ioctl FSCTL_DFS_GET_REFERRALSStefan Metzmacher1-0/+74
metze
2009-06-05s3:smbd: add support for STATUS_BUFFER_OVERFLOW to SMB2 IoctlStefan Metzmacher1-5/+10
metze
2009-06-05s3:smbd: keep the chain_fsp for SMB2 requestsStefan Metzmacher3-0/+5
metze
2009-06-05s3:smbd: fix the logic for compounded requestsStefan Metzmacher1-1/+1
metze
2009-06-05s3:smbd: only setup the dyn iovec if a a dyn blob is givenStefan Metzmacher1-2/+1
Otherwise leave the default in there, which takes care of padding for compounded requests. metze
2009-06-05s3:smbd: add support for SMB2 Ioctl FSCTL_PIPE_TRANSCEIVE on IPC$Stefan Metzmacher1-0/+92
metze
2009-06-05s3:smbd: add support for SMB2 Read on IPC$Stefan Metzmacher1-6/+52
metze
2009-06-05s3:smbd: add support for SMB2 Write on IPC$Stefan Metzmacher1-5/+49
metze
2009-06-05s3:smbd: add support for SMB2 Create on IPC$Stefan Metzmacher1-1/+17
metze
2009-06-05s3:smbd: add support for SMB2 IoctlStefan Metzmacher3-1/+273
We don't implement any level yet. metze
2009-06-05s3:smbd: add missing return statements to the SMB2 write error casesStefan Metzmacher1-0/+2
metze
2009-06-05s3:smbd: add missing return statements to the SMB2 read error casesStefan Metzmacher1-0/+2
metze
2009-06-05s3:smbd: split smbd_smb2_write() into tevent_req based *_send()/_recv() ↵Stefan Metzmacher1-47/+129
functions metze