Volker Lendecke
80b4a3aadc
s3: Remove a call to procid_self()
2011-12-13 11:00:55 +01:00
Volker Lendecke
0f9d14820e
s3: Remove a bunch of calls to procid_self()
...
All callers to messaging_[re]init only used procid_self()
2011-12-12 21:50:25 +01:00
Stefan Metzmacher
77dc976b53
s3:smbd/close: pass smbd_server_connection to notify_deferred_opens()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 12 21:49:11 CET 2011 on sn-devel-104
2011-12-12 21:49:11 +01:00
Stefan Metzmacher
4d44f879e1
s3:smbd/clode: pass smbd_server_connection as private_data to msg_close_file()
...
metze
2011-12-12 20:14:41 +01:00
Stefan Metzmacher
d1e0997614
s3:smbd/blocking: pass smbd_server_connection as private_data to received_unlock_msg()
...
metze
2011-12-12 20:14:41 +01:00
Stefan Metzmacher
f59d358653
s3:smb2_lock: pass smbd_server_connection as private_data to received_unlock_msg()
...
metze
2011-12-12 20:14:41 +01:00
Stefan Metzmacher
763fe4216b
s3:smb2_server: use sconn->ev_ctx instead of sconn->smb2.event_ctx
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 12 16:08:59 CET 2011 on sn-devel-104
2011-12-12 16:08:59 +01:00
Stefan Metzmacher
7081d7e78f
s3:smb2_lock: avoid using server_event_context()
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
e7a100200b
s3:smbd/pipes: avoid passing server_event_context() as event context to np_{read,write}_send
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
bf8cce18c6
s3:smbd/process: avoid using server_event_context() for the forked echo handler
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
16cfc7243b
s3:smbd/process: avoid using server_event_context() for smbd_deferred_open_timer events
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
68a7be6ab4
s3:smbd/oplock: avoid using server_event_context() in add_oplock_timeout_handler()
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
6811b47c99
s3:smbd/service: avoid using server_event_context() for notify_init()
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
c7286f159a
s3:smbd/ipc: pass 'state' as mem_ctx to np_read_send()
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
1df1e0fb56
s3:smbd/fileio: avoid usage of server_event_context()
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
61d8674727
s3:smbd/close: avoid usage of server_event_context()
...
metze
2011-12-12 14:35:42 +01:00
Stefan Metzmacher
1909cb0724
s3:smbd/blocking: avoid usage of server_event_context()
...
metze
2011-12-12 14:35:42 +01:00
Stefan Metzmacher
1ce9c0ea32
s3:smbd: remember the event context on smbd_server_connection
...
metze
2011-12-12 14:35:42 +01:00
Stefan Metzmacher
0b8eeb1edc
s3:smbd: pass down smbd_server_connection via smbd_echo_state
...
metze
2011-12-12 14:35:42 +01:00
Stefan Metzmacher
bf35606bbf
s3:smbd: remove references to the global smbd_server_conn
...
metze
2011-12-12 14:35:42 +01:00
Stefan Metzmacher
6d84b24d76
s3:smbd: make struct pending_message_list private
...
metze
2011-12-12 14:35:42 +01:00
Stefan Metzmacher
8b2b7d1c87
s3:smbd: remember the smbd_server_connection on pending_message_list
...
metze
2011-12-12 14:35:42 +01:00
Stefan Metzmacher
3d7521c8ab
s3:smbd: call sub_set_socket_ids() in smbd_process() again
...
This got lost in commit b2511a280a
.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 12 10:23:44 CET 2011 on sn-devel-104
2011-12-12 10:23:43 +01:00
Richard Sharpe
422494a8e6
vfs: Make function pointer names consistent. They all end in _fn
...
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Mon Dec 12 04:58:40 CET 2011 on sn-devel-104
2011-12-12 04:58:40 +01:00
Volker Lendecke
14d3889285
s3: Fix some 64-bit warnings
2011-12-08 15:03:42 +01:00
Volker Lendecke
1c46fb5c3e
s3: Use autogenerated open_files.idl
2011-12-02 22:43:05 +01:00
Jeremy Allison
da992be64f
Fix bug 8636 - When returning an ACL without SECINFO_DACL requested, we still set SEC_DESC_DACL_PRESENT in the type field.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 30 04:59:07 CET 2011 on sn-devel-104
2011-11-30 04:59:07 +01:00
Jeremy Allison
6bf97ea3bc
Fix bug 8631 - POSIX ACE x permission becomes rx following mapping to and from a DACL
...
Reported by David Disseldorp. Fix based on a patch by David.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Nov 29 22:32:27 CET 2011 on sn-devel-104
2011-11-29 22:32:27 +01:00
Christian Ambach
717a27ba22
s3:smb2 report access_based_dir_enum in tcon reply
...
let the client know when hide unreadable or hide unwriteable files
is set for a share
2011-11-24 17:26:02 +01:00
Christian Ambach
faf8b9bba0
s3:smb2 do not set allow_namespace_caching flag for a share
...
this matches Win7/2002R2 behavior and clients also must ignore
this flag when set (MS-SMB 2.2.10), so we should not set it at all
2011-11-24 17:25:58 +01:00
Jeremy Allison
de3ab9bd05
Move setting the inherited ACL into the main open code path. Next will
...
remove it from the ACL modules.
2011-11-22 12:33:27 -08:00
Jeremy Allison
6795432f27
Move the "set SD" code into provided SD and "inherit acls" branches.
2011-11-22 11:53:51 -08:00
Jeremy Allison
7b275c551b
Only add the SD if it's not a new stream file.
2011-11-22 10:37:56 -08:00
Jeremy Allison
12514bf008
Move the add security descriptor code to *after* all the other meta-data is
...
updated. We may be adding an SD that restricts our own access.
2011-11-22 10:28:52 -08:00
Stefan Metzmacher
005798fa0b
s3:smb2_negprot: add support for SMB2_22
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Nov 20 16:46:45 CET 2011 on sn-devel-104
2011-11-20 16:46:45 +01:00
Stefan Metzmacher
af1a2eecce
s3:smbd: calculate the negprot signing flags from the signing_state
...
We should map from lp_server_signing() just once in srv_init_signing().
metze
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov 16 18:59:49 CET 2011 on sn-devel-104
2011-11-16 18:59:49 +01:00
Jeremy Allison
05e841c82c
Final part of patchset to fix bug #8556 - ACL permissions ignored when SMBsetatr is requested.
...
This now plumbs access checks through all setattr calls.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 16 04:20:04 CET 2011 on sn-devel-104
2011-11-16 04:20:04 +01:00
Jeremy Allison
865bc0c0ac
Remove the check for FILE_WRITE_ATTRIBUTES from smb_set_file_time(). It
...
is called from places like fileio.c that need to update the write time
on a file handle only open for write, without neccessarily having
FILE_WRITE_ATTRIBUTES permission. Move all checks to before the
smb_set_file_time() callers.
2011-11-15 17:41:48 -08:00
Jeremy Allison
86c1609219
Always set the attribute first, before the time.
2011-11-15 17:01:58 -08:00
Jeremy Allison
edaa7479ed
Move handle-based access check into handle codepath.
2011-11-15 17:01:58 -08:00
Jeremy Allison
c6a62f60a2
We've already checked fsp must be non-null here.
2011-11-15 17:01:58 -08:00
Jeremy Allison
93000c98ad
Remove unneeded access check. This is done inside smb_set_file_time().
2011-11-15 17:01:58 -08:00
Jeremy Allison
f5cda7160c
Remove unneeded access check. This is done inside smb_set_file_size().
2011-11-15 17:01:58 -08:00
Jeremy Allison
c27551b163
Move handle based access check into handle code path.
2011-11-15 17:01:58 -08:00
Jeremy Allison
65566dfa86
Ensure we correctly calculate reply credits over all returned
...
SMB2 replies, and do as Windows does and return the total in the
last SMB2 reply. Fixes an issue found by Christian M Ambach <christian.ambach@de.ibm.com>
(and thanks to Christian for the initial patch this was based on).
2011-11-15 22:44:25 +01:00
Jeremy Allison
c4763385a8
Remove unneeded NULL check.
2011-11-15 22:44:25 +01:00
Stefan Metzmacher
31cd1fbd2b
s3:smbd/aio: handle_aio_completed() should do nothing if aio_ex->fsp is NULL
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Nov 15 18:47:55 CET 2011 on sn-devel-104
2011-11-15 18:47:55 +01:00
Stefan Metzmacher
21eb1450cc
s3:smbd/aio: pass ECANCELED to the smb2 aio handlers
...
metze
2011-11-15 17:14:13 +01:00
Stefan Metzmacher
483b79cfc4
s3:smb2_read: make it possible to cancel aio reads
...
metze
2011-11-15 17:14:13 +01:00
Stefan Metzmacher
3fbf32213a
s3:smb2_write: make it possible to cancel aio writes
...
metze
2011-11-15 17:14:13 +01:00