summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:smbd: change trans_state->vuid to uint64_tStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:include: change smb_request->vuid to uint64_tStefan Metzmacher2012-06-061-3/+4
| | | | metze
* s3:include: change files_struct->vuid to uint64_tStefan Metzmacher2012-06-062-3/+4
| | | | metze
* s3:smbd: move struct user_struct to globals.hStefan Metzmacher2012-06-061-0/+14
| | | | metze
* s3:smbd: use 'struct user_struct' instead of typedef'ed 'user_struct'Stefan Metzmacher2012-06-0612-28/+28
| | | | metze
* s3:smbd: move forward declaration of struct aio_extra to smbd.hStefan Metzmacher2012-06-061-0/+1
| | | | metze
* s3:include: move some prototypes (e.g. smb_register_vfs) to vfs.hStefan Metzmacher2012-06-061-9/+0
| | | | | | These are called from vfs modules, which should not depend on smbd/proto.h metze
* s3:smbd: move UCF_ defines to smbd.hStefan Metzmacher2012-06-061-0/+9
| | | | metze
* s3:include: move struct connection_struct (and sub structs) to vfs.hStefan Metzmacher2012-06-061-0/+2
| | | | metze
* s3:smbd: move struct trans_state to smbd.hStefan Metzmacher2012-06-061-0/+30
| | | | metze
* s3:smbd: move struct privilege_paths to smbd.hStefan Metzmacher2012-06-061-0/+9
| | | | metze
* s3:smbd: make struct notify_change_buf private to notify.cStefan Metzmacher2012-06-061-0/+20
| | | | metze
* s3:smbd: make use of change_notify_fsp_has_changes()Stefan Metzmacher2012-06-062-2/+2
| | | | metze
* s3:smbd: add change_notify_fsp_has_changes()Stefan Metzmacher2012-06-062-0/+18
| | | | metze
* s3:smbd: use print_spool_rap_jobid() in call_trans2ioctl()Stefan Metzmacher2012-06-061-5/+3
| | | | metze
* s3:smbd: use print_spool_rap_jobid() in reply_ioctl()Stefan Metzmacher2012-06-061-5/+2
| | | | metze
* s3:smbd: fcb_or_dos_open() can be staticStefan Metzmacher2012-06-062-20/+10
| | | | metze
* s3:smbd: dup_file_fsp() never gets called for print filesStefan Metzmacher2012-06-061-8/+3
| | | | metze
* s3:smbd: make struct vfs_fsp_data private to vfs.cStefan Metzmacher2012-06-061-0/+10
| | | | metze
* s3:smbd: make use of vfs_remove_all_fsp_extensions() in file_free()Stefan Metzmacher2012-06-061-3/+1
| | | | metze
* s3:smbd: add vfs_remove_all_fsp_extensions()Stefan Metzmacher2012-06-062-0/+22
| | | | metze
* s3:smbd: remove typedef for struct write_cacheStefan Metzmacher2012-06-061-9/+9
| | | | metze
* s3:smbd: make typedef write_cache private to fileio.cStefan Metzmacher2012-06-061-0/+8
| | | | metze
* build: Rationalise AIO support in configure, ensure on by defaultAndrew Bartlett2012-06-063-3/+3
| | | | | | | | | With this change, the define to check for AIO is HAVE_AIO, consistant with other subsystems. It is now also on by default in the autoconf build, as it has been for waf. Andrew Bartlett
* s3:lib: split things into a conn_tdb.hStefan Metzmacher2012-06-053-0/+3
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 5 19:28:35 CEST 2012 on sn-devel-104
* s3-smbd: Remove support for protocols before LANMAN1Andrew Bartlett2012-06-051-35/+0
| | | | | | | This falls out of the removal of security=share, because we now require that a session setup has been performed before (essentially) all other operations. Andrew Bartlett
* Fix bug #8972 - Directory group write permission bit is set if unix ↵Jeremy Allison2012-06-051-2/+4
| | | | | | | | | | extensions are enabled We can't manipulate file_attributes if it's a posix call. I'll look at adding a test for this asap. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Jun 5 04:26:11 CEST 2012 on sn-devel-104
* s3:smbd: make conn_close_all() a void functionStefan Metzmacher2012-06-033-8/+3
| | | | metze
* s3:smbd/close: call del_share_mode() directly before TALLOC_FREE(lck)Stefan Metzmacher2012-06-031-5/+15
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Jun 3 21:08:19 CEST 2012 on sn-devel-104
* s3:smbd/close: remove unused goto out from close_directory()Stefan Metzmacher2012-06-031-3/+1
| | | | metze
* s3:smbd/close: do an early return in close_directory()Stefan Metzmacher2012-06-031-2/+1
| | | | metze
* s3: Fix an assert to trigger in close_remove_share_modeStefan Metzmacher2012-06-031-6/+17
| | | | | | | | | | | | | | | | | | | | | In case we have a left-over entry in the share mode entry array, the SMB_ASSERT(got_tokens) is likely to kick in. It happens when we are about to delete a file with initial delete on close. We don't have a delete on close token set in the locking.tdb record. We see the fsp->initial_delete_on_close set, add the delete_on_close token to lck. Then "delete_file" is being set to true. Then later on we do the notify_deferred_opens. This walks the list, also checking for share_mode_stale_pid. We have already deleted our own share mode entry, share_mode_stale_pid() sees the left-over entry. It not also deletes that one but also the delete on close token. This leads to a different view of "delete_file" a.k.a. "got_tokens" further down in close_remove_share_mode, leading the SMB_ASSERT to fire. This patch attempts to fix the issue by keeping around our own share mode entry for almost the whole routine, preventing share_mode_stale_pid() from removing the delete tokens. Pair-Programmed-With: Volker Lendecke <vl@samba.org>
* s3: Do an early return in close_remove_share_modeVolker Lendecke2012-06-031-2/+1
| | | | | | Without "lck" we don't have much to clean up Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Make close_remove_share_mode a bit more readableVolker Lendecke2012-06-031-2/+4
| | | | | | by introducing a variable simplifying a boolean expression Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Slightly simplify close_remove_share_modeVolker Lendecke2012-06-031-10/+15
| | | | | | Remove a level of indentation by more use of "continue;" Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd/close: avoid procid_is_me()Stefan Metzmacher2012-06-031-1/+2
| | | | metze
* s3:smbd/open: avoid procid_is_me()Stefan Metzmacher2012-06-031-4/+5
| | | | metze
* s3:smbd/oplock: avoid procid_is_me()Stefan Metzmacher2012-06-031-2/+4
| | | | metze
* Forward port of Richard Sharpe's <realrichardsharpe@gmail.com> fix for bug ↵Jeremy Allison2012-05-311-0/+1
| | | | #8970 - Possible memory leaks in the samba master process.
* We are triggering the cleanup_timeout_fn() too often, on exiting when an ↵Jeremy Allison2012-05-311-11/+4
| | | | | | | smbd is idle. Calls to exit_server_cleanly() should be treated as a "clean" shutdown, and not trigger the master smbd to call cleanup_timeout_fn.
* s3:smbd: use server_messaging_context() instead of sconn->msg_ctx in ↵Stefan Metzmacher2012-05-311-2/+3
| | | | | | | | | | | | | exit_server_common() sconn is not available in the parent anymore. Thanks to Volker Lendecke <vl@samba.org> for finding this! metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu May 31 18:08:06 CEST 2012 on sn-devel-104
* s3: Fix some 64-bit warningsVolker Lendecke2012-05-312-4/+4
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu May 31 10:06:56 CEST 2012 on sn-devel-104
* Stop spamming the logs with "Could not remove pid XX from serverid.tdb" ↵Jeremy Allison2012-05-311-15/+18
| | | | | | | | | | | messages and initiating the cleanup function on every process death. We now have many sub-processes from smbd that don't serve SMB1/SMB2 requests and don't register themselves in the serverid.tdb. Only initiate the cleanup from processes that were explicitly in the child list. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu May 31 04:44:09 CEST 2012 on sn-devel-104
* s3-param: Use same function name for "max xmit" as lib/paramAndrew Bartlett2012-05-301-1/+1
| | | | | | Again, this helps with merging the FN_ list. Andrew Bartlett
* s3:smb2_ioctl: verify credit chargeStefan Metzmacher2012-05-291-0/+25
| | | | | | | | | Based on a patch from Christian Ambach <ambi@samba.org>. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 29 18:55:29 CEST 2012 on sn-devel-104
* s3:smb2_ioctl: add more validation checksStefan Metzmacher2012-05-291-6/+67
| | | | metze
* s3:smb2_ioctl: add some more validation checksStefan Metzmacher2012-05-291-7/+36
| | | | | | Based on a patch from Christian Ambach <ambi@samba.org>. metze
* s3:smbd/smb2_find add a debug messageChristian Ambach2012-05-291-0/+4
| | | | | | like the ones in the other calls that check for max sizes Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd/smb2_getinfo add a debug messageChristian Ambach2012-05-291-0/+8
| | | | | | like the ones in the other calls that check for max sizes Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd/smb2_setinfo add a debug messageChristian Ambach2012-05-291-0/+4
| | | | | | similar to the ones present in other paths Signed-off-by: Stefan Metzmacher <metze@samba.org>