Stefan Metzmacher
7d772064b4
s3:smbd: pass down vuid as uint64_t in lanman.c
...
metze
2012-06-06 10:18:41 +02:00
Stefan Metzmacher
612838dca8
s3:smbd: pass down vuid as uint64_t in ipc.c
...
metze
2012-06-06 10:18:41 +02:00
Stefan Metzmacher
d3e79a864d
s3:smbd: change vuid to uint64_t in uid.c
...
metze
2012-06-06 10:18:41 +02:00
Stefan Metzmacher
c535668f7b
s3:smbd: let fcb_or_dos_open() take a uint64_t vuid
...
metze
2012-06-06 10:18:41 +02:00
Stefan Metzmacher
9ffb8f1532
s3:smbd: let close_cnum() take a uint64_t vuid
...
metze
2012-06-06 10:18:41 +02:00
Stefan Metzmacher
69d1f9b836
s3:smbd: use UID_FIELD_INVALID (0) instead of (uint16)-1 when calling close_cnum()
...
The only thing that's important is that the value is invalid.
metze
2012-06-06 10:18:41 +02:00
Stefan Metzmacher
2a9a95e673
s3:smbd: let make_connection() take a uint64_t vuid
...
metze
2012-06-06 10:18:41 +02:00
Stefan Metzmacher
19d05171fa
s3:smbd: let conn_clear_vuid_caches() take a uint64_t vuid
...
metze
2012-06-06 10:18:41 +02:00
Stefan Metzmacher
2477c73b62
s3:smbd: let open_fake_file() take a uint64_t vuid
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
53cd38ebb8
s3:smbd: change conn_ctx->vuid to uint64_t
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
21e6db8f7e
s3:smbd: change trans_state->vuid to uint64_t
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
d4aa494654
s3:include: change smb_request->vuid to uint64_t
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
37bfadf4a3
s3:include: change files_struct->vuid to uint64_t
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
bc39915f47
s3:smbd: move struct user_struct to globals.h
...
metze
2012-06-06 10:18:39 +02:00
Stefan Metzmacher
f52e5738a2
s3:smbd: use 'struct user_struct' instead of typedef'ed 'user_struct'
...
metze
2012-06-06 10:18:39 +02:00
Stefan Metzmacher
9e2e3708aa
s3:smbd: move forward declaration of struct aio_extra to smbd.h
...
metze
2012-06-06 10:18:39 +02:00
Stefan Metzmacher
9b5c2ca14c
s3:include: move some prototypes (e.g. smb_register_vfs) to vfs.h
...
These are called from vfs modules, which should not depend on smbd/proto.h
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
5306c18f2c
s3:smbd: move UCF_ defines to smbd.h
...
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
5fc502c624
s3:include: move struct connection_struct (and sub structs) to vfs.h
...
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
44482ad452
s3:smbd: move struct trans_state to smbd.h
...
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
ce41497769
s3:smbd: move struct privilege_paths to smbd.h
...
metze
2012-06-06 10:18:37 +02:00
Stefan Metzmacher
659f3e681e
s3:smbd: make struct notify_change_buf private to notify.c
...
metze
2012-06-06 10:18:37 +02:00
Stefan Metzmacher
b5b943dbad
s3:smbd: make use of change_notify_fsp_has_changes()
...
metze
2012-06-06 10:18:37 +02:00
Stefan Metzmacher
dc962c195e
s3:smbd: add change_notify_fsp_has_changes()
...
metze
2012-06-06 10:18:37 +02:00
Stefan Metzmacher
e91c223531
s3:smbd: use print_spool_rap_jobid() in call_trans2ioctl()
...
metze
2012-06-06 10:18:37 +02:00
Stefan Metzmacher
c2ffe330b4
s3:smbd: use print_spool_rap_jobid() in reply_ioctl()
...
metze
2012-06-06 10:18:37 +02:00
Stefan Metzmacher
145fe2ac4c
s3:smbd: fcb_or_dos_open() can be static
...
metze
2012-06-06 10:18:37 +02:00
Stefan Metzmacher
0907b1e20c
s3:smbd: dup_file_fsp() never gets called for print files
...
metze
2012-06-06 10:18:37 +02:00
Stefan Metzmacher
cf549ff2bc
s3:smbd: make struct vfs_fsp_data private to vfs.c
...
metze
2012-06-06 10:18:37 +02:00
Stefan Metzmacher
4321e19657
s3:smbd: make use of vfs_remove_all_fsp_extensions() in file_free()
...
metze
2012-06-06 10:18:37 +02:00
Stefan Metzmacher
cd3e658d82
s3:smbd: add vfs_remove_all_fsp_extensions()
...
metze
2012-06-06 10:18:36 +02:00
Stefan Metzmacher
05dc497637
s3:smbd: remove typedef for struct write_cache
...
metze
2012-06-06 10:18:36 +02:00
Stefan Metzmacher
4a91321f3a
s3:smbd: make typedef write_cache private to fileio.c
...
metze
2012-06-06 10:18:36 +02:00
Andrew Bartlett
d2f6d0ba1e
build: Rationalise AIO support in configure, ensure on by default
...
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
2012-06-06 08:23:10 +02:00
Stefan Metzmacher
8693a4fff9
s3:lib: split things into a conn_tdb.h
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jun 5 19:28:35 CEST 2012 on sn-devel-104
2012-06-05 19:28:35 +02:00
Andrew Bartlett
9db04c481d
s3-smbd: Remove support for protocols before LANMAN1
...
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
2012-06-05 04:27:36 +02:00
Jeremy Allison
4accd2396e
Fix bug #8972 - Directory group write permission bit is set if unix 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
2012-06-05 04:26:10 +02:00
Stefan Metzmacher
9c80b91d8f
s3:smbd: make conn_close_all() a void function
...
metze
2012-06-03 21:33:10 +02:00
Stefan Metzmacher
abcd095847
s3:smbd/close: call del_share_mode() directly before TALLOC_FREE(lck)
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jun 3 21:08:19 CEST 2012 on sn-devel-104
2012-06-03 21:08:19 +02:00
Stefan Metzmacher
f66d88d10a
s3:smbd/close: remove unused goto out from close_directory()
...
metze
2012-06-03 17:23:28 +02:00
Stefan Metzmacher
8751c3f2ef
s3:smbd/close: do an early return in close_directory()
...
metze
2012-06-03 17:23:28 +02:00
Stefan Metzmacher
d792f59aeb
s3: Fix an assert to trigger in close_remove_share_mode
...
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>
2012-06-03 17:23:28 +02:00
Volker Lendecke
b9e11bd63e
s3: Do an early return in close_remove_share_mode
...
Without "lck" we don't have much to clean up
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-03 17:23:28 +02:00
Volker Lendecke
2e95b77c99
s3: Make close_remove_share_mode a bit more readable
...
by introducing a variable simplifying a boolean expression
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-03 17:23:28 +02:00
Volker Lendecke
8541829a9a
s3: Slightly simplify close_remove_share_mode
...
Remove a level of indentation by more use of "continue;"
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-03 17:23:28 +02:00
Stefan Metzmacher
8486d514f5
s3:smbd/close: avoid procid_is_me()
...
metze
2012-06-03 17:23:28 +02:00
Stefan Metzmacher
85e6dcf49c
s3:smbd/open: avoid procid_is_me()
...
metze
2012-06-03 17:23:27 +02:00
Stefan Metzmacher
9dba59d026
s3:smbd/oplock: avoid procid_is_me()
...
metze
2012-06-03 17:23:27 +02:00
Jeremy Allison
8fd02fa2d6
Forward port of Richard Sharpe's <realrichardsharpe@gmail.com> fix for bug #8970 - Possible memory leaks in the samba master process.
2012-05-31 16:08:44 -07:00
Jeremy Allison
f6e41026f8
We are triggering the cleanup_timeout_fn() too often, on exiting when an 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.
2012-05-31 12:35:04 -07:00