summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* s3: Move basic SMB checking to a much earlier pointVolker Lendecke2012-01-051-19/+19
|
* s3: Add a suicide mode to smbdVolker Lendecke2012-01-051-0/+11
| | | | | To test our cleanup code paths properly, we need a way to make smbd exit hard without cleaning up
* s3: Check for the packet size before accessing itVolker Lendecke2012-01-041-2/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jan 4 15:16:20 CET 2012 on sn-devel-104
* s3: Remove the unused "file_existed" parameter from smbd_calculate_access_maskVolker Lendecke2012-01-034-10/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jan 3 15:16:50 CET 2012 on sn-devel-104
* s3: Avoid "file_existed" in smbd_calculate_maximum_allowed_accessVolker Lendecke2012-01-031-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.
* s3: Remove some else{} branches in smbd_calculate_maximum_allowed_accessVolker Lendecke2012-01-031-3/+7
|
* s3: Directly use *p_access_mask in smbd_calculate_maximum_allowed_accessVolker Lendecke2012-01-031-6/+4
|
* s3: Factor out smbd_calculate_maximum_allowed_accessVolker Lendecke2012-01-031-40/+59
|
* Final part of fix for bug #8679 - recvfile code path using splice() on Linux ↵Jeremy Allison2011-12-311-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
* s3-auth remove auth_ntlmssp_start(), call auth_generic_start() directlyAndrew Bartlett2011-12-223-7/+7
| | | | | | | | This makes it clear that this can support more than just NTLMSSP. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth rename auth_ntlmssp_prepare() -> auth_generic_prepare()Andrew Bartlett2011-12-224-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>
* s3-auth rename auth_ntlmssp_state -> auth_generic_stateAndrew Bartlett2011-12-224-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>
* s3:smb2_negprot: add support for PROTOCOL_SMB2_24Stefan Metzmacher2011-12-221-0/+15
| | | | metze
* Allow an object to be deleted from a directory if the caller has ↵Jeremy Allison2011-12-201-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
* s3: Fix some False/NULL hickupsVolker Lendecke2011-12-202-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 20 13:13:17 CET 2011 on sn-devel-104
* check_name() not needed in mkdir.Jeremy Allison2011-12-171-5/+0
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 17 02:44:55 CET 2011 on sn-devel-104
* Ensure VALID_STAT before accessing fields.Jeremy Allison2011-12-171-1/+3
|
* Fix bug #8664 - Renaming a symlink fails if the symlink target is outside of ↵Jeremy Allison2011-12-161-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
* Restrict UCF_UNIX_NAME_LOOKUP (symlink allowed) to restricted set of calls.Jeremy Allison2011-12-161-1/+4
|
* s3:smbd: remove unused sconn_server_id()Stefan Metzmacher2011-12-161-2/+0
| | | | metze
* s3:smbd: avoid using sconn_server_id()Stefan Metzmacher2011-12-169-19/+24
| | | | metze
* s3: Add some const to find_oplock_typesVolker Lendecke2011-12-161-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 16 09:10:07 CET 2011 on sn-devel-104
* s3: Make open_file_ntcreate a bit easier to readVolker Lendecke2011-12-161-3/+2
| | | | Move the declaration of "id" closer to its use
* s3: Make open_file_ntcreate a bit easier to readVolker Lendecke2011-12-161-4/+6
| | | | Move the calculation of "new_file_created" closer to its use
* s3: Make open_file_ntcreate a bit easier to readVolker Lendecke2011-12-161-3/+3
| | | | Remove a negation where it's not necessary
* s3: Slightly simplify delay_for_exclusive_oplocksVolker Lendecke2011-12-161-9/+15
|
* s3: Slightly simplify delay_for_batch_oplocksVolker Lendecke2011-12-161-6/+6
|
* Third part of fix for bug #8663 - deleting a symlink fails if the symlink ↵Jeremy Allison2011-12-161-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
* Second part of fix for bug #8663 - deleting a symlink fails if the symlink ↵Jeremy Allison2011-12-151-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().
* First part of fix for bug #8663 - deleting a symlink fails if the symlink ↵Jeremy Allison2011-12-151-12/+0
| | | | | | | target is outside of the share. Remove two unneeded check_name() calls. They have already been done in order to get here.
* s3:smbd/globals: remove unused msg_ctx_to_sconn()Stefan Metzmacher2011-12-152-15/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Dec 15 14:24:59 CET 2011 on sn-devel-104
* s3:smbd: pass smbd_server_connection and a snumused function pointer to ↵Stefan Metzmacher2011-12-158-28/+27
| | | | | | reload_services() metze
* s3:smbd: split smb_conf_updated into parent and child versionsStefan Metzmacher2011-12-152-12/+30
| | | | metze
* s3:smbd: split ID_CACHE_* message handling into parent and child partsStefan Metzmacher2011-12-154-179/+159
| | | | metze
* s3: Fix raw.mux after UNUSED_SHARE_MODE_ENTRY was removedVolker Lendecke2011-12-141-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
* s3: Slightly simplify the logic in defer_openVolker Lendecke2011-12-141-5/+3
| | | | | Doing 3 &&ed conditions in a single if-statement is easier to understand to me than continuing out separately.
* s3: Remove UNUSED_SHARE_MODE_ENTRYVolker Lendecke2011-12-141-2/+1
|
* s3:smb2_lock: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher2011-12-141-5/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 14 13:34:25 CET 2011 on sn-devel-104
* s3:smbd/oplock: make process_oplock_async_level2_break_message() staticStefan Metzmacher2011-12-142-6/+1
| | | | metze
* s3:smbd/oplock: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher2011-12-141-25/+5
| | | | metze
* s3:smbd/open: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher2011-12-141-5/+1
| | | | metze
* s3:smbd/conn_msg: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher2011-12-141-5/+1
| | | | metze
* s3:smbd/close: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher2011-12-141-5/+1
| | | | metze
* s3:smbd/blocking: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher2011-12-141-10/+2
| | | | metze
* s3:smbd: remove brl_register_msgs()Stefan Metzmacher2011-12-141-1/+2
| | | | metze
* s3:smbd/server: avoid msg_ctx_to_sconn() in smbd_accept_connection()Stefan Metzmacher2011-12-141-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
* s3:smbd: remove unused smbd_messaging_context()Stefan Metzmacher2011-12-142-11/+0
| | | | metze
* s3:smbd/server: maintain the list of child processes under smbd_parent_contextStefan Metzmacher2011-12-143-36/+55
| | | | metze
* s3:smbd/server: pass smbd_parent_context to smbd_setup_sig_chld_handler()Stefan Metzmacher2011-12-141-6/+6
| | | | metze
* s3:smbd/globals: change 'int am_parent' into 'struct smbd_parent_context ↵Stefan Metzmacher2011-12-143-10/+12
| | | | | | | | *am_parent' This is a short term solution on the way to get rid of 'am_parent' completely. metze