Volker Lendecke [Mon, 5 Jan 2009 12:33:20 +0000 (13:33 +0100)]
Use talloc_tos in vfs_full_audit.c:do_log
Volker Lendecke [Mon, 5 Jan 2009 12:32:53 +0000 (13:32 +0100)]
Fix a bad memleak in vfs_full_audit
Volker Lendecke [Mon, 5 Jan 2009 12:08:07 +0000 (13:08 +0100)]
Add create_file to vfs_op_names
Volker Lendecke [Mon, 5 Jan 2009 11:58:23 +0000 (12:58 +0100)]
Fix bug 6012: Add "get_real_filename" to full_audit
Thanks to Hodur <coil93@gmail.com> for testing!
Volker
Michael Adam [Thu, 18 Dec 2008 17:01:55 +0000 (18:01 +0100)]
smbd: prevent access to root filesystem when connecting with empty service name
This only applies to a setup with "registry shares = yes"
Michael
(cherry picked from commit
288fa94ac7cfdf7457b5098c33fc840bed3d5410)
(cherry picked from commit
e85526b184e66f86b7faa9d0a37288a09c12c19e)
Stefan Metzmacher [Mon, 5 Jan 2009 09:53:12 +0000 (10:53 +0100)]
tevent: fix tevent_add_timer() and tevent_add_aio() macros
metze
Andrew Bartlett [Mon, 5 Jan 2009 09:02:02 +0000 (20:02 +1100)]
Initialise 'flags' in new python ldb binding for ldb_connect
Tim Prouty [Mon, 5 Jan 2009 03:27:06 +0000 (19:27 -0800)]
s3: Remove a few unnecessary checks from the streams depot module and fix to work with NTRENAME
Handling of error codes when renaming a file to a stream and a stream
to a file is now done in rename_internals_fsp.
The NTRENAME stream path only passes in the stream name, so the new
base can now be different from the old base.
Tim Prouty [Mon, 5 Jan 2009 01:36:36 +0000 (17:36 -0800)]
s3: Remove a few unnecessary checks from the streams xattr module
Handling of error codes when renaming a file to a stream and a stream
to a file is now done in rename_internals_fsp.
The NTRENAME stream path only passes in the stream name, so the new
base can now be different from the old base.
Tim Prouty [Sun, 4 Jan 2009 18:45:34 +0000 (10:45 -0800)]
s3: Allow renames of streams via NTRENAME and fix stream error codes on rename
The test_streams_rename2 test in RAW-STREAMS verifies these changes
Tim Prouty [Fri, 19 Dec 2008 05:03:01 +0000 (21:03 -0800)]
s4 torture: Add more rename tests to RAW-STREAMS
There is one part of the new rename tests that passes against windows,
but doesn't pass against samba3 right now. Windows allow renaming a
stream to the default stream, but none of the current streams module
support this. When this ability is added the check for samba can be
removed from this test.
This patch also adds a missing unlink in the cleanup of
test_stream_delete and changes the order that the tests are run to be
consistent with the physical order in the file.
Andrew Bartlett [Mon, 5 Jan 2009 01:24:35 +0000 (12:24 +1100)]
More work to have OpenLDAP accept the full AD schema
We need to avoid handling DN+Binary and DN+String with the refint
module for now, as this is a currently unsupported syntax.
Also rename entryTTL to avoid a conflict with the operational
attribute of the same name.
Andrew Bartlett
Jeremy Allison [Sun, 4 Jan 2009 19:47:16 +0000 (11:47 -0800)]
Fix bug #6009 - Setting "min receivefile size = 1" breaks writes.
Jeremy.
Stefan Metzmacher [Sun, 4 Jan 2009 16:58:56 +0000 (17:58 +0100)]
tevent: move samba4 stuff from libtevent.m4 to samba.m4
metze
Stefan Metzmacher [Sun, 4 Jan 2009 16:57:40 +0000 (17:57 +0100)]
s4:build: add SMB_MAKE_SETTINGS() macro
metze
Volker Lendecke [Sun, 4 Jan 2009 17:14:33 +0000 (18:14 +0100)]
Fix a typo found by the IBM Checker
Volker Lendecke [Sun, 4 Jan 2009 17:03:23 +0000 (18:03 +0100)]
Remove a duplicated comment
Volker Lendecke [Sun, 4 Jan 2009 16:28:24 +0000 (17:28 +0100)]
Fix the build of smbfilter
Volker Lendecke [Sun, 4 Jan 2009 00:46:05 +0000 (01:46 +0100)]
Simulate the Windows behaviour to fire 445 and after a timeout 139
Volker Lendecke [Sun, 4 Jan 2009 00:45:06 +0000 (01:45 +0100)]
Add open_socket_out_defer_send/recv
Volker Lendecke [Sat, 3 Jan 2009 18:50:05 +0000 (19:50 +0100)]
Async wrapper for open_socket_out_send/recv
Volker Lendecke [Sun, 28 Dec 2008 16:43:18 +0000 (17:43 +0100)]
Add a quick test of wb_trans_send/recv
Volker Lendecke [Sat, 27 Dec 2008 17:43:03 +0000 (18:43 +0100)]
async libwbclient infrastructure
Volker Lendecke [Sun, 28 Dec 2008 13:49:22 +0000 (14:49 +0100)]
Remove wb_trans_send/recv
Volker Lendecke [Sun, 28 Dec 2008 13:47:40 +0000 (14:47 +0100)]
Move winbindd/winbindd_reqtrans.c to lib/wb_reqtrans.c
Volker Lendecke [Sat, 3 Jan 2009 23:26:49 +0000 (00:26 +0100)]
Convert async_connect to "normal" style
Volker Lendecke [Sat, 3 Jan 2009 18:23:13 +0000 (19:23 +0100)]
Actually do a non-blocking connect.... :-)
Volker Lendecke [Sun, 4 Jan 2009 10:28:40 +0000 (11:28 +0100)]
Add an async queueing mechanism
Volker Lendecke [Sat, 3 Jan 2009 18:10:57 +0000 (19:10 +0100)]
Add async timeout helpers
Stefan Metzmacher [Sun, 4 Jan 2009 08:39:17 +0000 (09:39 +0100)]
tevent: completely initialize tevent_fd structs
This fixes crash bugs... I forgot to commit and squash
this to commit
e45ed828d042acca09cb1ed5b6dd7a24eb5e7ffd
metze
Stefan Metzmacher [Sat, 3 Jan 2009 14:24:31 +0000 (15:24 +0100)]
s4:smbd: convert to tevent_* api
metze
Stefan Metzmacher [Sat, 3 Jan 2009 11:49:50 +0000 (12:49 +0100)]
s4:libcli/ldap: convert to tevent_* api
metze
Stefan Metzmacher [Sat, 3 Jan 2009 11:48:20 +0000 (12:48 +0100)]
s4:auth/kerberos: convert to tevent_* api
metze
Stefan Metzmacher [Sat, 3 Jan 2009 10:36:04 +0000 (11:36 +0100)]
tevent: raise version to 0.9.2 after AUTOCLOSE changes
metze
Stefan Metzmacher [Sat, 3 Jan 2009 10:34:37 +0000 (11:34 +0100)]
tevent: remove TEVENT_FD_AUTOCLOSE feature
TEVENT_FD_AUTOCLOSE adds a dependency to SOCKET_WRAPPER,
which is bad. Callers should use tevent_fd_set_close_fn() now.
metze
Stefan Metzmacher [Sat, 3 Jan 2009 10:30:21 +0000 (11:30 +0100)]
tevent: remove dependency to SOCKET_WRAPPER via "system/network.h"
metze
Stefan Metzmacher [Sat, 3 Jan 2009 11:47:24 +0000 (12:47 +0100)]
s4:socket: use a socket_wrapper aware function to auto close the fd event for sockets
metze
Stefan Metzmacher [Sat, 3 Jan 2009 11:43:18 +0000 (12:43 +0100)]
s4:sysdep/inotify: use tevent_fd_set_auto_close()
metze
Stefan Metzmacher [Sat, 3 Jan 2009 11:39:11 +0000 (12:39 +0100)]
tevent: add tevent_fd_set_auto_close()
tevent_fd_set_auto_close() is a simple wrapper
arround tevent_fd_set_close_fn() with a callback
that uses plain close(2).
metze
Stefan Metzmacher [Sat, 3 Jan 2009 10:27:00 +0000 (11:27 +0100)]
tevent: add tevent_fd_set_close_fn()
Let callers specify a close function
as an alternative to TEVENT_FD_AUTOCLOSE.
metze
Stefan Metzmacher [Sat, 3 Jan 2009 10:18:14 +0000 (11:18 +0100)]
tevent: move some common tevent_fd related functions into tevent_fd.c
metze
Stefan Metzmacher [Sat, 3 Jan 2009 09:42:10 +0000 (10:42 +0100)]
tevent: specify argument names for the event handlers
metze
Stefan Metzmacher [Sat, 3 Jan 2009 09:41:17 +0000 (10:41 +0100)]
tevent: fix standalone make test
metze
Volker Lendecke [Sat, 3 Jan 2009 17:16:08 +0000 (18:16 +0100)]
open_socket_out is always used with SOCK_STREAM, remove argument "type"
Volker Lendecke [Sat, 27 Dec 2008 17:42:45 +0000 (18:42 +0100)]
Fix retval of async_syscall_result_int
Volker Lendecke [Sat, 3 Jan 2009 09:34:59 +0000 (10:34 +0100)]
struct async_req doesn't really need to carry an event_context
Volker Lendecke [Sat, 3 Jan 2009 14:23:13 +0000 (15:23 +0100)]
Remove unused argument "vuid" from make_internal_rpc_pipe_p
Stefan Metzmacher [Sat, 3 Jan 2009 08:14:23 +0000 (09:14 +0100)]
tevent: raise version to 0.9.1
This 0.9.1 isn't compatible with 0.9.0,
but it makes only sense to raise the major version
after we have reached 1.0.0.
metze
Kai Blin [Fri, 2 Jan 2009 21:46:08 +0000 (22:46 +0100)]
s4 winbind: Correctly silence a "discard const" warning
Thanks to metze for pointing out the error.
Volker Lendecke [Sat, 27 Dec 2008 16:20:25 +0000 (17:20 +0100)]
Replace some SMB_ASSERTs with NT_STATUS_INTERNAL_ERROR
Volker Lendecke [Sat, 20 Dec 2008 09:51:54 +0000 (10:51 +0100)]
Optimize for the common case that packet.c received exactly one full packet
Volker Lendecke [Sat, 20 Dec 2008 09:44:29 +0000 (10:44 +0100)]
packet.h API: The callback is now responsible to talloc_free() "buf"
Jeremy Allison [Fri, 2 Jan 2009 20:51:18 +0000 (12:51 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Fri, 2 Jan 2009 20:49:49 +0000 (12:49 -0800)]
Remove cli_cm_set_dest_ss() - removes the global dest_ss
from libsmb/clidfs.c. Keep the '-I<address>' option in
smbclient working. The intent is to remove all globals
from libsmb/clidfs.c.
Jeremy.
scudette@gmail.com [Fri, 2 Jan 2009 11:41:04 +0000 (22:41 +1100)]
Changed code to use proper talloc context instead of NULL to control memory leak.
scudette@gmail.com [Fri, 2 Jan 2009 11:40:32 +0000 (22:40 +1100)]
Memory leak fixed due to accumulation of open reg keys.
scudette@gmail.com [Fri, 2 Jan 2009 11:39:58 +0000 (22:39 +1100)]
Fixes uninitialised access as reported by valgrind.
Jeremy Allison [Fri, 2 Jan 2009 19:39:04 +0000 (11:39 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Fri, 2 Jan 2009 19:38:24 +0000 (11:38 -0800)]
Fix warnings in make test code.
Jeremy.
Stefan Metzmacher [Fri, 2 Jan 2009 15:41:21 +0000 (16:41 +0100)]
s4:lib/events: remove unused events_internal.h
external users need to use tevent_internal.h anyway
metze
Stefan Metzmacher [Fri, 2 Jan 2009 15:27:48 +0000 (16:27 +0100)]
s4:selftest: report tevent tests as 'tevent.python'
metze
Stefan Metzmacher [Fri, 2 Jan 2009 14:34:37 +0000 (15:34 +0100)]
s4:lib/events: convert to use tevent_* functions instead of compat macros
metze
Stefan Metzmacher [Fri, 2 Jan 2009 15:28:38 +0000 (16:28 +0100)]
tevent: only provide compat macros if the caller wants them
metze
Stefan Metzmacher [Fri, 2 Jan 2009 15:27:11 +0000 (16:27 +0100)]
tevent: change pytevent to tevent_*
metze
Stefan Metzmacher [Fri, 2 Jan 2009 15:25:29 +0000 (16:25 +0100)]
tevent: use TEVENT_FD_* instead of EVENT_FD_*
metze
Stefan Metzmacher [Fri, 2 Jan 2009 12:39:56 +0000 (13:39 +0100)]
tevent: rename ev_debug_ops => tevent_debug_ops
And related changes, but we keep compat macros
metze
Stefan Metzmacher [Fri, 2 Jan 2009 13:20:37 +0000 (14:20 +0100)]
tevent: rename events => tevent in tevent.pc
metze
Stefan Metzmacher [Fri, 2 Jan 2009 12:26:32 +0000 (13:26 +0100)]
tevent: pass down handler_name and location to the backend layer
metze
Stefan Metzmacher [Fri, 2 Jan 2009 10:44:17 +0000 (11:44 +0100)]
tevent: make tevent_add_*() macros arround _tevent_add_*()
This passes some additional debug information into
the events system to make it easier to find bugs.
metze
Stefan Metzmacher [Fri, 2 Jan 2009 12:39:26 +0000 (13:39 +0100)]
tevent: use HAVE_EPOLL instead of HAVE_EVENTS_EPOLL
metze
Stefan Metzmacher [Fri, 2 Jan 2009 12:35:32 +0000 (13:35 +0100)]
tevent: rename event_register_backend() => tevent_register_backend()
And fix the callers and there init functions.
metze
Stefan Metzmacher [Fri, 2 Jan 2009 10:30:00 +0000 (11:30 +0100)]
tevent: rename event_context_init* => tevent_context_init*()
metze
Stefan Metzmacher [Fri, 2 Jan 2009 10:36:52 +0000 (11:36 +0100)]
tevent: rename event_[s|g]et_fd_flags => tevent_fd_[s|g]et_flags
metze
Stefan Metzmacher [Fri, 2 Jan 2009 10:32:29 +0000 (11:32 +0100)]
tevent: rename event_loop_* => tevent_loop_*
metze
Stefan Metzmacher [Fri, 2 Jan 2009 10:17:00 +0000 (11:17 +0100)]
tevent: rename event_set_default_backend() => tevent_set_default_backend()
metze
Stefan Metzmacher [Fri, 2 Jan 2009 11:53:05 +0000 (12:53 +0100)]
tevent: use libreplace headers instead of system headers
metze
Stefan Metzmacher [Fri, 2 Jan 2009 14:33:23 +0000 (15:33 +0100)]
s4:lib/events: deprecate event_context_find()
metze
Stefan Metzmacher [Fri, 2 Jan 2009 11:06:39 +0000 (12:06 +0100)]
s4:tevent: move event_context_find() to tevent_s4.c
metze
Stefan Metzmacher [Fri, 2 Jan 2009 15:06:31 +0000 (16:06 +0100)]
s4:pyregistry: use tevent_context_init()
metze
Stefan Metzmacher [Fri, 2 Jan 2009 17:10:26 +0000 (18:10 +0100)]
Revert "s4 winbind: Copy SID to avoid "discard const" warning"
This reverts commit
102028ec722d942d7f91eb92e8da4f1480d140d1.
state->ctx is the composite_context, which is a temporary context!
metze
Stefan Metzmacher [Fri, 2 Jan 2009 16:52:14 +0000 (17:52 +0100)]
Revert "s4 winbind: Avoid a "discards const" compiler warning."
This reverts commit
dd8d4b6fd178df6847052dac207a4aafc0697d71.
s3call->response.extra_data.data is a pointer and no fstring!
metze
Stefan Metzmacher [Fri, 2 Jan 2009 15:26:00 +0000 (16:26 +0100)]
librpc/gen_ndr: rerun make idl_full after pidl changes
metze
Stefan Metzmacher [Fri, 2 Jan 2009 15:22:18 +0000 (16:22 +0100)]
pidl: add dummy element for empty unions
This hopefully fixes the build on Solaris and IRIX.
metze
Volker Lendecke [Fri, 2 Jan 2009 13:53:26 +0000 (14:53 +0100)]
Alternative fix for
45db33e73 and
0d443ae7931
Simo is right, we need to ask passdb first. At least this fixes a nasty to find
NT_STATUS_ACCESS_DENIED problem in the build farm for the test run I just did
on host "opi".
Michael, can you re-check if this also fixes the error you found, leading to
the two fixes?
Thanks,
Volker
Volker Lendecke [Fri, 2 Jan 2009 13:51:23 +0000 (14:51 +0100)]
Revert "s:Fix uid_to_sid mapping when the idmap cache is empty."
This reverts commit
9a9b64dbdfce4414ada22d4f882c8c757b5813e1.
Volker Lendecke [Fri, 2 Jan 2009 13:51:06 +0000 (14:51 +0100)]
Revert "s3:idmap: Remove passd check from idmap_backends_unixid_to_sid()."
This reverts commit
45db33e73262d8e195a46fb96405dfb3dc43d6bc.
Michael Adam [Wed, 17 Dec 2008 21:27:39 +0000 (22:27 +0100)]
packaging(RHEL): fix typo in [u]mount.cifs installation
Michael
(cherry picked from commit
835108bcf84a5f47f46d237c7a93c572348125a1)
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Wed, 17 Dec 2008 17:56:34 +0000 (18:56 +0100)]
packaging(RHEL): fix build of [u]mount.cifs
mount.cifs is now built by make everything.
And it needs extra objects anyways (mtab.o),
which is why the build of mount.cifs failed.
Michael
(cherry picked from commit
96c811cf222be5463a6705feae73d6215685c5f1)
Signed-off-by: Michael Adam <obnox@samba.org>
Stefan Metzmacher [Fri, 2 Jan 2009 08:44:53 +0000 (09:44 +0100)]
Happy New Year!
metze
Volker Lendecke [Thu, 1 Jan 2009 21:05:03 +0000 (22:05 +0100)]
Fix bug 5913.
Never seen this to be a problem, but it doesn't hurt either :-)
Volker Lendecke [Thu, 1 Jan 2009 18:55:20 +0000 (19:55 +0100)]
Remove a global variable
Volker Lendecke [Thu, 1 Jan 2009 18:47:40 +0000 (19:47 +0100)]
fix some nonempty blank lines
Volker Lendecke [Thu, 1 Jan 2009 17:16:42 +0000 (18:16 +0100)]
Remove two pointless globals
Volker Lendecke [Thu, 1 Jan 2009 12:28:38 +0000 (13:28 +0100)]
The Tru64 shell doesn't like (*) in a case statement
Tim Prouty [Thu, 1 Jan 2009 05:24:25 +0000 (21:24 -0800)]
s3: Fix caller of print_fsp_open
Jeremy Allison [Thu, 1 Jan 2009 02:34:52 +0000 (18:34 -0800)]
Fix typo found by Volker. Thanks for the review.
Jeremy.
Jeremy Allison [Thu, 1 Jan 2009 02:06:57 +0000 (18:06 -0800)]
Fix all warnings in source3 with gcc4.3.
Jeremy.
Jeremy Allison [Thu, 1 Jan 2009 00:30:11 +0000 (16:30 -0800)]
Fix more asprintf and "ignoring return code" warnings from gcc 4.3.
Jeremy.
Volker Lendecke [Thu, 25 Dec 2008 13:37:33 +0000 (14:37 +0100)]
Replace a static variable and alarm() calls by using sys_select()
Günther, please check!
Volker Lendecke [Thu, 25 Dec 2008 13:29:39 +0000 (14:29 +0100)]
Fix some nonempty blank lines