summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2012-01-04s3: Check for the packet size before accessing itVolker Lendecke1-2/+1
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jan 4 15:16:20 CET 2012 on sn-devel-104
2012-01-03s3: Remove the unused "file_existed" parameter from smbd_calculate_access_maskVolker Lendecke4-10/+2
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jan 3 15:16:50 CET 2012 on sn-devel-104
2012-01-03s3: Avoid "file_existed" in smbd_calculate_maximum_allowed_accessVolker Lendecke1-36/+35
We access the file by name anyway, so we can just try to access it. The file system will for sure tell us if the file does not exist.
2012-01-03s3: Remove some else{} branches in smbd_calculate_maximum_allowed_accessVolker Lendecke1-3/+7
2012-01-03s3: Directly use *p_access_mask in smbd_calculate_maximum_allowed_accessVolker Lendecke1-6/+4
2012-01-03s3: Factor out smbd_calculate_maximum_allowed_accessVolker Lendecke1-40/+59
2011-12-31Final part of fix for bug #8679 - recvfile code path using splice() on Linux ↵Jeremy Allison1-5/+0
leaves data in the pipe on short write. The code to set a DOS error on short writeX return is amazingly legacy code, and also breaks the reply as fixup_chain_error_packet() enforces a 2-byte wct on any reply where smb_rcls != 0. Found in testing by Andrew Bartlett. Thanks Andrew ! Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 31 08:05:35 CET 2011 on sn-devel-104
2011-12-22s3-auth remove auth_ntlmssp_start(), call auth_generic_start() directlyAndrew Bartlett3-7/+7
This makes it clear that this can support more than just NTLMSSP. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-22s3-auth rename auth_ntlmssp_prepare() -> auth_generic_prepare()Andrew Bartlett4-8/+8
This function handles more than NTLMSSP now, at least when we are an AD DC and so changing the name may avoid some confusion in the future. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-22s3-auth rename auth_ntlmssp_state -> auth_generic_stateAndrew Bartlett4-6/+6
This structure handles more than NTLMSSP now, at least when we are an AD DC and so changing the name may avoid some confusion in the future. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-22s3:smb2_negprot: add support for PROTOCOL_SMB2_24Stefan Metzmacher1-0/+15
metze
2011-12-20Allow an object to be deleted from a directory if the caller has ↵Jeremy Allison1-1/+9
DELETE_CHILD access even if we don't have access to read the ACL on the object. Fixes bug #8673 - NT ACL issue. Different fix needed for 3.6.x. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Dec 20 22:13:51 CET 2011 on sn-devel-104
2011-12-20s3: Fix some False/NULL hickupsVolker Lendecke2-2/+2
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 20 13:13:17 CET 2011 on sn-devel-104
2011-12-17check_name() not needed in mkdir.Jeremy Allison1-5/+0
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 17 02:44:55 CET 2011 on sn-devel-104
2011-12-17Ensure VALID_STAT before accessing fields.Jeremy Allison1-1/+3
2011-12-16Fix bug #8664 - Renaming a symlink fails if the symlink target is outside of ↵Jeremy Allison1-2/+4
the share. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Dec 16 23:32:26 CET 2011 on sn-devel-104
2011-12-16Restrict UCF_UNIX_NAME_LOOKUP (symlink allowed) to restricted set of calls.Jeremy Allison1-1/+4
2011-12-16s3:smbd: remove unused sconn_server_id()Stefan Metzmacher1-2/+0
metze
2011-12-16s3:smbd: avoid using sconn_server_id()Stefan Metzmacher9-19/+24
metze
2011-12-16s3: Add some const to find_oplock_typesVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 16 09:10:07 CET 2011 on sn-devel-104
2011-12-16s3: Make open_file_ntcreate a bit easier to readVolker Lendecke1-3/+2
Move the declaration of "id" closer to its use
2011-12-16s3: Make open_file_ntcreate a bit easier to readVolker Lendecke1-4/+6
Move the calculation of "new_file_created" closer to its use
2011-12-16s3: Make open_file_ntcreate a bit easier to readVolker Lendecke1-3/+3
Remove a negation where it's not necessary
2011-12-16s3: Slightly simplify delay_for_exclusive_oplocksVolker Lendecke1-9/+15
2011-12-16s3: Slightly simplify delay_for_batch_oplocksVolker Lendecke1-6/+6
2011-12-16Third part of fix for bug #8663 - deleting a symlink fails if the symlink ↵Jeremy Allison1-0/+8
target is outside of the share. smbd_check_access_rights() - we can always delete a symlink. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Dec 16 03:32:15 CET 2011 on sn-devel-104
2011-12-15Second part of fix for bug #8663 - deleting a symlink fails if the symlink ↵Jeremy Allison1-1/+6
target is outside of the share. Ensure we use UCF_UNIX_NAME_LOOKUP flags on filename_convert() when doing a UNIX infolevel in trans2setfilepathinfo().
2011-12-15First part of fix for bug #8663 - deleting a symlink fails if the symlink ↵Jeremy Allison1-12/+0
target is outside of the share. Remove two unneeded check_name() calls. They have already been done in order to get here.
2011-12-15s3:smbd/globals: remove unused msg_ctx_to_sconn()Stefan Metzmacher2-15/+0
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Dec 15 14:24:59 CET 2011 on sn-devel-104
2011-12-15s3:smbd: pass smbd_server_connection and a snumused function pointer to ↵Stefan Metzmacher8-28/+27
reload_services() metze
2011-12-15s3:smbd: split smb_conf_updated into parent and child versionsStefan Metzmacher2-12/+30
metze
2011-12-15s3:smbd: split ID_CACHE_* message handling into parent and child partsStefan Metzmacher4-179/+159
metze
2011-12-14s3: Fix raw.mux after UNUSED_SHARE_MODE_ENTRY was removedVolker Lendecke1-5/+55
See the large comment in notify_deferred_opens for an explanation Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Dec 14 19:08:30 CET 2011 on sn-devel-104
2011-12-14s3: Slightly simplify the logic in defer_openVolker Lendecke1-5/+3
Doing 3 &&ed conditions in a single if-statement is easier to understand to me than continuing out separately.
2011-12-14s3: Remove UNUSED_SHARE_MODE_ENTRYVolker Lendecke1-2/+1
2011-12-14s3:smb2_lock: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher1-5/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 14 13:34:25 CET 2011 on sn-devel-104
2011-12-14s3:smbd/oplock: make process_oplock_async_level2_break_message() staticStefan Metzmacher2-6/+1
metze
2011-12-14s3:smbd/oplock: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher1-25/+5
metze
2011-12-14s3:smbd/open: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher1-5/+1
metze
2011-12-14s3:smbd/conn_msg: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher1-5/+1
metze
2011-12-14s3:smbd/close: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher1-5/+1
metze
2011-12-14s3:smbd/blocking: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher1-10/+2
metze
2011-12-14s3:smbd: remove brl_register_msgs()Stefan Metzmacher1-1/+2
metze
2011-12-14s3:smbd/server: avoid msg_ctx_to_sconn() in smbd_accept_connection()Stefan Metzmacher1-1/+1
This is the place where we should create smbd_server_connection, when we're ready to remove the global variable. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 14 11:23:42 CET 2011 on sn-devel-104
2011-12-14s3:smbd: remove unused smbd_messaging_context()Stefan Metzmacher2-11/+0
metze
2011-12-14s3:smbd/server: maintain the list of child processes under smbd_parent_contextStefan Metzmacher3-36/+55
metze
2011-12-14s3:smbd/server: pass smbd_parent_context to smbd_setup_sig_chld_handler()Stefan Metzmacher1-6/+6
metze
2011-12-14s3:smbd/globals: change 'int am_parent' into 'struct smbd_parent_context ↵Stefan Metzmacher3-10/+12
*am_parent' This is a short term solution on the way to get rid of 'am_parent' completely. metze
2011-12-13s3:smbd/globals: remove unused extern declarationsStefan Metzmacher1-2/+0
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Dec 13 22:06:02 CET 2011 on sn-devel-104
2011-12-13s3:smbd/server: move smbd_open_socket and smbd_parent_context to the topStefan Metzmacher1-19/+19
metze