Stefan Metzmacher
64ddb66884
s3:smbd/signing: use smbd_server_connection as talloc parent for its smb1 signing state
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri May 25 00:23:53 CEST 2012 on sn-devel-104
2012-05-25 00:23:53 +02:00
Stefan Metzmacher
b5e9ece1f3
s3:smbd: remove global 'smbd_server_conn' !!!
...
For now we still use a global 'global_smbXsrv_connection'
in order to pass the connection state to exit_server*().
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu May 24 20:07:20 CEST 2012 on sn-devel-104
2012-05-24 20:07:20 +02:00
Stefan Metzmacher
288a75d8dc
s3:smbd: only call file_init_global() in the parent smbd
...
metze
2012-05-24 18:16:37 +02:00
Stefan Metzmacher
9e45885fcc
s3:smbd/files: split file_init_global() out of file_init()
...
metze
2012-05-24 18:16:37 +02:00
Stefan Metzmacher
48e62f2d46
s3:smbd: remove unused var in smbXsrv_connection_init_tables()
...
metze
2012-05-24 18:16:37 +02:00
Stefan Metzmacher
a95b2ba043
s3:smbd/msdfs: pass allow_broken_path to resolve_dfspath_wcard()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu May 24 16:14:01 CEST 2012 on sn-devel-104
2012-05-24 16:14:01 +02:00
Stefan Metzmacher
758d61201f
s3:smbd/msdfs: pass 'allow_broken_path' to get_referred_path()
...
Note the DCERPC code should not be smb2 specific!
I wonder why this is at all smb2 specific...
metze
2012-05-24 14:12:32 +02:00
Stefan Metzmacher
a92f7176bd
s3:smbd/msdfs: let create_conn_struct() also fake the 'smbd_server_connection'
...
metze
2012-05-24 14:12:32 +02:00
Stefan Metzmacher
0733183594
s3:smbd/files: work without sconn->file_bmap and assign fsp->fnum = -1
...
For faked connection_structs we do not need valid fnum values,
e.g. in the dfs and printing code.
metze
2012-05-24 14:12:32 +02:00
Stefan Metzmacher
768004b11d
s3:smbd/files: fix error path and correctly cleanup
...
metze
2012-05-24 14:12:32 +02:00
Stefan Metzmacher
aa7b1e21a8
s3:smbd/proto.h: remove unused resolve_dfspath() prototype
...
metze
2012-05-23 20:03:10 +02:00
Stefan Metzmacher
97f0a3675f
s3:smbd/files: remove unused VALID_FNUM()
...
metze
2012-05-23 20:03:09 +02:00
Stefan Metzmacher
a0c9a291e7
s3:smb2_server: make use of nt_status_np_pipe()
...
metze
2012-05-23 20:03:09 +02:00
Stefan Metzmacher
d595d2e5af
s3:smbd: use nt_status_np_pipe for smb1
...
metze
2012-05-23 20:03:08 +02:00
Stefan Metzmacher
d869f0260c
s3:smbd: add nt_status_np_pipe()
...
This mapps between NT_STATUS_CONNECTION_* to NT_STATUS_PIPE_*
metze
2012-05-23 20:03:08 +02:00
Stefan Metzmacher
37866df4ee
s3:smbd: use reply_force_doserror(req, ERRSRV, ERRbaduid) on SMBulogoff
...
We don't support security = share anymore, so we should always have
a valid session.
Found by the raw.context test.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 23 12:47:37 CEST 2012 on sn-devel-104
2012-05-23 12:47:37 +02:00
Michael Adam
f9e4105f41
s3:smbd: remove unused 'connection_struct->used'
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 22 16:42:22 CEST 2012 on sn-devel-104
2012-05-22 16:42:22 +02:00
Stefan Metzmacher
ce11eb5b94
s3:smb2_ioctl: Fix Coverity ID 701771 Uninitialized scalar variable
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 21 19:27:44 CEST 2012 on sn-devel-104
2012-05-21 19:27:43 +02:00
Jeremy Allison
32cbf20e65
Move the set_write_time() call to after get_existing_share_mode_lock() returns with a share mode.
...
get_existing_share_mode_lock() isn't really the right
call here, as we're being called after
close_remove_share_mode() inside close_normal_file()
so it's quite normal to not have an existing share
mode here. However, get_share_mode_lock() doesn't
work because that will create a new share mode if
one doesn't exist - so stick with this call (just
ignore any error we get if the share mode doesn't
exist.
The previous commit raised the error message debug
level inside get_share_mode_lock_internal() so
we don't always get a level 1 error message if
get_existing_share_mode_lock() fails.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat May 19 06:26:33 CEST 2012 on sn-devel-104
2012-05-19 06:26:33 +02:00
Stefan Metzmacher
d58f7cd546
s3:smbd: allow creating new spnego sessions only with a 0 vuid
...
Found by the raw.context test.
metze
2012-05-18 16:36:16 +02:00
Stefan Metzmacher
84ce4484e7
s3:smbd: SMBtdis should return ERRSRV, ERRinvnid instead of NETWORK_NAME_DELETED
...
Found by the raw.context test.
metze
2012-05-18 16:36:16 +02:00
Volker Lendecke
f5ca3f11e4
s3: Revert the serverid changes, they need more work
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri May 18 13:12:14 CEST 2012 on sn-devel-104
2012-05-18 13:12:14 +02:00
Volker Lendecke
182faceab2
s3: Check for serverid_exists in close_directory
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
2db3ecbc95
s3: Check for serverid_exists in close_remove_share_mode
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
49237b0cef
s3: Check for serverid_exists in find_oplock_types
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
5017bbe70d
s3: Check for serverid_exists in smb_posix_unlink
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
4962ab2aa8
s3: Check for serverid_exists in open_mode_check
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:21 -07:00
Volker Lendecke
689a04bc6c
s3: Check for serverid_exists in notify_deferred_opens
...
We will remove the check in parse_share_modes soon
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:21 -07:00
Stefan Metzmacher
ff700acdd0
s3:smb2_sesssetup: make use of nt_status_squash() in smbd_smb2_session_setup_recv()
...
metze
2012-05-17 12:59:08 +02:00
Andrew Bartlett
6bafb4ac25
s3-smbd: Avoid creating a UID ACL entry for SIDs that are mapped as ID_TYPE_BOTH The GID ACL entry is what will be mapped in most cases, and so is sufficient.
...
Andrew Bartlett
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu May 17 05:08:44 CEST 2012 on sn-devel-104
2012-05-17 05:08:44 +02:00
Andrew Bartlett
f38638d451
s3-smbd: Consider a group with the same SID as sufficient duplication
...
This code is to ensure that the user does not loose rights when their file
ownership is taken away. If the owner (an IDMAP_BOTH SID) appears as a group
then a duplicate user is not required.
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 03:17:05 +02:00
Andrew Bartlett
5b1c42228b
s3-smbd: Handle ID_TYPE_BOTH by mapping to both a group ACL entry and file ownership This will allow groups, such as domain administrators, to own files while correctly handling the rest of the ACL permissions.
...
Andrew Bartlett
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 03:17:05 +02:00
Andrew Bartlett
367a644c4d
We need to split things up into a new helper function add_current_ace_to_acl() in order for there to be more posix ACL elements than NT ACL elements (so a group SID can own a file, but also get the group permissions that will be honoured)
...
Andrew Bartlett
Slightly modified by Jeremy to reduce diff size.
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 03:17:05 +02:00
Jeremy Allison
173f818a29
This covers a case where an ID_TYPE_BOTH mapping creates group permissions, but must own the file. Based on an original patch by Andrew Bartlett.
2012-05-17 03:17:05 +02:00
Andrew Bartlett
59106473d3
s3-smbd: Do not merge UID ACE values with GID ACE values for posix ACL
...
This might happen when we get a SID mapped to IDMAP_BOTH.
Andrew Bartlett
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 03:17:05 +02:00
Stefan Metzmacher
70be41c772
s3:onefs: remove all onefs related code as it not maintained anymore
...
See https://lists.samba.org/archive/samba-technical/2012-May/083631.html
for the discussion.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 16 11:23:05 CEST 2012 on sn-devel-104
2012-05-16 11:23:04 +02:00
Volker Lendecke
c562a534c8
s3: Fix a likely cut&paste error
2012-05-15 16:18:50 +02:00
Andreas Schneider
78af4738e7
s3-auth: Rename to init_system_session_info().
...
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue May 15 13:56:00 CEST 2012 on sn-devel-104
2012-05-15 13:56:00 +02:00
Stefan Metzmacher
e7e67962c7
s3:smb2_close: make the top level code async using
...
metze
2012-05-14 15:12:33 +02:00
Stefan Metzmacher
b8d999ce84
s3:smb2_close: add add smbd_smb2_close_send/recv as wrapper
...
metze
2012-05-14 15:12:33 +02:00
Stefan Metzmacher
643e648ed0
s3:smb2_close: don't do any marshalling in smbd_smb2_close() let the caller to it
...
metze
2012-05-14 15:12:33 +02:00
Stefan Metzmacher
302f767fb7
s3:smb2_tcon: make the top level code async using
...
metze
2012-05-14 15:12:33 +02:00
Stefan Metzmacher
b19a9dbb5b
s3:smb2_tcon: add smbd_smb2_tree_connect_send/recv as wrapper
...
metze
2012-05-14 15:12:33 +02:00
Volker Lendecke
87542e1310
s3: Make SMB_QUERY_FILE_UNIX_BASIC's devno work for files
...
According to susv3, st_rdev is valid exactly for char and block devices. Normal
files have st_dev set.
2012-05-14 13:16:32 +02:00
Stefan Metzmacher
8f887ce164
s3:smb2_sesssetup: make the top level code async using
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun May 13 17:59:39 CEST 2012 on sn-devel-104
2012-05-13 17:59:39 +02:00
Stefan Metzmacher
1b8645b4c8
s3:smb2_sesssetup: add smbd_smb2_session_setup_send/recv as wrapper
...
This just adds smbd_smb2_session_setup_send/recv as wrapper to
the sync smbd_smb2_session_setup function.
This will allow us to change to top level code to work async,
then we can have a 2nd step where we remove the sync
smbd_smb2_session_setup function.
metze
2012-05-13 14:11:02 +02:00
Stefan Metzmacher
70ac2cc831
s3:smb2_sesssetup: pass down in_flags to smbd_smb2_session_setup()
...
metze
2012-05-13 14:11:01 +02:00
Stefan Metzmacher
7b359bc615
s3:smb2_sesssetup: pass down in_previous_session_id to all layers
...
metze
2012-05-13 14:11:00 +02:00
Stefan Metzmacher
212e805507
s3:smb2_ioctl: implement FSCTL_VALIDATE_NEGOTIATE_INFO
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat May 12 02:50:42 CEST 2012 on sn-devel-104
2012-05-12 02:50:42 +02:00
Stefan Metzmacher
8963930974
s3:smb2_ioctl: implement FSCTL_VALIDATE_NEGOTIATE_INFO_224
...
metze
2012-05-12 01:01:35 +02:00