obnox/samba-ctdb.git
13 years agov3-6-ctdb: VERSION bump vendor patch level to 4 3.6.0pre1-ctdb-4
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 4

13 years agov3-6-ctdb: VERSION bump vendor patch level to 3
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 3

13 years agov3-6-ctdb: VERSION bump vendor patch level to 2
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 2

13 years agov3-6-ctdb: packaging/RHEL-CTDB: replace Prereq by Requires.
Michael Adam [Thu, 10 Feb 2011 06:33:56 +0000 (07:33 +0100)]
v3-6-ctdb: packaging/RHEL-CTDB: replace Prereq by Requires.

In RHEL6, Prereq is deprecated.

13 years agov3-6-ctdb: s3: Add the "net groupfilter" command
Volker Lendecke [Sun, 14 Dec 2008 23:16:56 +0000 (00:16 +0100)]
v3-6-ctdb: s3: Add the "net groupfilter" command

This is the start of a bad hack for even worse systems: Many Unix systems still
have the NGROUPS problem: A user can not be member of more than a very limited
number of groups. Solaris for example limits this to 16 by default. Many
Windows environments have a *LOT* more groups per user, some even go to
hundreds. Whether that is efficient is debatable, but it's there.

This patch implements the

"net groupfilter"

command with the "addsid", "delsid" and "list" subcommands. If any SIDs are
present according to "net groupfilter list" (they are stored in secrets.tdb),
then only the SIDs in that list are converted to GIDs for a user at login time.

This gives the Administrator the possibility to define a set of groups that are
used on the Unix box, making sure that no user is in more than NGROUPS of those
at a time.

This patch is incomplete in the sense that winbind is not aware of this, only
smbd. So it is kind of an emergency hack for smbd-only machines.

Volker

Signed-off-by: Michael Adam <obnox@samba.org>
13 years agov3-6-ctdb: packaging/RHEL-CTDB: improve fix for debuginfo builds
Michael Adam [Fri, 3 Dec 2010 09:13:46 +0000 (02:13 -0700)]
v3-6-ctdb: packaging/RHEL-CTDB: improve fix for debuginfo builds

13 years agov3-6-ctdb: packaging/RHEL-CTDB: Fix debuginfo builds
Volker Lendecke [Fri, 3 Dec 2010 09:13:46 +0000 (02:13 -0700)]
v3-6-ctdb: packaging/RHEL-CTDB: Fix debuginfo builds

13 years agoRevert "v3-6-ctdb: s3:vfs: Add a gpfs_prefetch module."
Michael Adam [Fri, 21 Jan 2011 14:44:53 +0000 (15:44 +0100)]
Revert "v3-6-ctdb: s3:vfs: Add a gpfs_prefetch module."

This reverts commit 36713652a1f0ccee3e84c3c58d46f03141e43513.

The gpfs_prefetch module needs to be properly merged:
The vfs API has changed.

13 years agoRevert "v3-6-ctdb: packaging/RHEL-CTDB: Fix the RPM build: list the gpfs_prefetch...
Michael Adam [Fri, 21 Jan 2011 14:44:18 +0000 (15:44 +0100)]
Revert "v3-6-ctdb: packaging/RHEL-CTDB: Fix the RPM build: list the gpfs_prefetch vfs module"

This reverts commit 18296ef666202ae15cba6b7a6f25c3692f13f7e4.

The gpfs prefetch mdule needs to be properly merged:
The vfs api has changed.

13 years agov3-6-ctdb: packaging/RHEL-CTDB: Fix the RPM build: list the gpfs_prefetch vfs module
Volker Lendecke [Fri, 5 Mar 2010 15:10:49 +0000 (16:10 +0100)]
v3-6-ctdb: packaging/RHEL-CTDB: Fix the RPM build: list the gpfs_prefetch vfs module

13 years agov3-6-ctdb: s3:vfs: Add a gpfs_prefetch module.
Volker Lendecke [Fri, 21 Jan 2011 13:07:15 +0000 (14:07 +0100)]
v3-6-ctdb: s3:vfs: Add a gpfs_prefetch module.

This can not go upstream yet because it uses the gpfs_fcntl call
from the non-GPL libgpfs.

13 years agov3-6-ctdb: apply patch from v3-0-ctdb to special case root in libnss_winbind
Andrew Tridgell [Mon, 21 Apr 2008 16:41:32 +0000 (18:41 +0200)]
v3-6-ctdb: apply patch from v3-0-ctdb to special case root in libnss_winbind

This is needed to ensure the administrator can login to a node even
when ctdbd and winbindd are stuck

13 years agov3-6-ctdb: add README.v3-6-ctdb
Michael Adam [Tue, 18 Jan 2011 12:19:55 +0000 (13:19 +0100)]
v3-6-ctdb: add README.v3-6-ctdb

13 years agov3-6-ctdb: VERSION: add vendor-suffix "ctdb" and vendor-patch level "1"
Michael Adam [Tue, 23 Jun 2009 14:41:38 +0000 (16:41 +0200)]
v3-6-ctdb: VERSION: add vendor-suffix "ctdb" and vendor-patch level "1"

Michael

following the versioning scheme of the v3-2-ctdb branch

Michael

13 years agov3-6-ctdb: VERSION: set version to non-snapshot..
Michael Adam [Wed, 8 Apr 2009 17:28:52 +0000 (19:28 +0200)]
v3-6-ctdb: VERSION: set version to non-snapshot..

13 years agos3-docs: manpage for "net idmap delete"
Gregor Beck [Mon, 7 Mar 2011 08:57:10 +0000 (09:57 +0100)]
s3-docs: manpage for "net idmap delete"

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Mar  7 14:26:42 CET 2011 on sn-devel-104

13 years agos3-docs: manpage for "smbcontrol xx idmap"
Gregor Beck [Mon, 7 Mar 2011 08:56:48 +0000 (09:56 +0100)]
s3-docs: manpage for "smbcontrol xx idmap"

13 years agos3:registry: fix invalid write in iconvert_talloc()
Michael Adam [Fri, 4 Mar 2011 22:53:44 +0000 (23:53 +0100)]
s3:registry: fix invalid write in iconvert_talloc()

For a non-preallocated dest-string and sourcestring of len < 2,
(one or both of the) final two two zero-bytes would be written
after the end of the allocated dest-string. The sourcelen did
not include the source string terminator. For longer strings,
this was not a problem because the dest-string would have been
reallocated in the convert-loop. This is fixed now by allocating
two extra bytes for the terminating 0-bytes that are needed anyways
in the initial allocation.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

13 years agoFix the examples/VFS build.
Jeremy Allison [Mon, 7 Mar 2011 12:46:20 +0000 (04:46 -0800)]
Fix the examples/VFS build.
(cherry picked from commit 79c6f0d440b30d2c36a50a8ea5735a5a1818b551)

13 years agoFix examples/VFS to use correct prototypes for is_offline() and set_offline().
Jeremy Allison [Mon, 7 Mar 2011 11:53:11 +0000 (03:53 -0800)]
Fix examples/VFS to use correct prototypes for is_offline() and set_offline().
(cherry picked from commit 0faffd4556438f7add6312e58acca345abfbe7fb)

13 years agolib/socket_wrapper: try to fix the build on solaris
Stefan Metzmacher [Fri, 4 Mar 2011 20:14:27 +0000 (21:14 +0100)]
lib/socket_wrapper: try to fix the build on solaris

struct msg does not contain msg_control, msg_controllen and msg_flags
on solaris.

metze
(cherry picked from commit 2c7c3d03d5c6b99370f9007aa6fe874d36512be2)

13 years agos3: add two missing vfs disconnect calls
David Disseldorp [Fri, 4 Mar 2011 13:53:39 +0000 (14:53 +0100)]
s3: add two missing vfs disconnect calls

The fix for bug 7976 added a vfs connect call to create_conn_struct.
This change adds two further disconnect calls that were missed by the
original change.

13 years agos3-printing: fix cups pcap reload with no printers
David Disseldorp [Thu, 30 Dec 2010 14:58:48 +0000 (15:58 +0100)]
s3-printing: fix cups pcap reload with no printers

cups_async_callback() is called to receive new printcap data from a
child process which requests the information from cupsd.
Newly received printcap information is stored in a temporary printcap
cache (tmp_pcap_cache). Once the child process closes the printcap IPC
file descriptor, the system printcap cache is replaced with the newly
populated tmp_pcap_cache, however this only occurs if tmp_pcap_cache is
non null (has at least one printer).

If the printcap cache is empty, which is the case when cups is not
exporting any printers, the printcap cache is not replaced resulting in
stale data.

https://bugzilla.samba.org/show_bug.cgi?id=7915

13 years agos3-printing: remove unneeded local_pcap_copy global
David Disseldorp [Thu, 30 Dec 2010 13:32:29 +0000 (14:32 +0100)]
s3-printing: remove unneeded local_pcap_copy global

The cups local_pcap_copy global served as a temporary buffer during
asynchronous cups printcap cache updates, as well as indicating when
the printcap cache had not yet been filled and printcap cache update
should block.

As smbd printcap reads are now triggered by the parent smbd following
printcap cache update, the variable and blocking mechanism are no longer
needed.

13 years agos3-printing: follow force user/group for driver IO
David Disseldorp [Wed, 2 Mar 2011 13:34:28 +0000 (14:34 +0100)]
s3-printing: follow force user/group for driver IO

Configuring force user/group settings for the print$ share currently has
unexpected results, this is explained by how the driver upload/add
process takes place. Consider the following example:

[print$]
        path = /print-drv
        write list = $DRIVER_UPLOAD_USER
        force group = ntadmin

- the client connects to the [print$] share and uploads all driver
  files to the /print-drv/W32X86 directory.

- This is permitted, as /print-drv/W32X86 is owned by group ntadmin, and
  the "force group = ntadmin" takes effect for the [print$] session.

- Once all files are uploaded, the client connects to the [ipc$]
  share and issues an AddPrinterDriverEx spoolss request.

- In handling this request move_driver_to_download_area() is called,
  which attempts to create the directory /print-drv/W32X86/3

- The create directory fails, as it is done as the user connected to
  the [ipc$] share which does not have permission to write to the driver
  directory. The [print$] "force group = ntadmin" has no effect.

This is a regression from previous behaviour prior to the commit:
783ab04 Convert move_driver_to_download_area to use create_conn_struct.

https://bugzilla.samba.org/show_bug.cgi?id=7921

13 years agos3: Move EXOP definitions to smbldap.h
Volker Lendecke [Sun, 6 Mar 2011 08:31:40 +0000 (09:31 +0100)]
s3: Move EXOP definitions to smbldap.h

This attempts to fix the build on Solaris

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Mar  6 10:45:16 CET 2011 on sn-devel-104
(cherry picked from commit f6f8ec8d8bccee5eec05c7f546e306bced897bbb)

13 years agos3: Fix uninitialized variables
Volker Lendecke [Sat, 5 Mar 2011 16:37:53 +0000 (17:37 +0100)]
s3: Fix uninitialized variables

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Mar  5 17:25:43 CET 2011 on sn-devel-104
(cherry picked from commit a40bb91213a321ea08897d7152d9d64defa1a8b1)

13 years agos3: Fix a memory leak in check_sam_security_info3
Volker Lendecke [Sat, 5 Mar 2011 11:57:59 +0000 (12:57 +0100)]
s3: Fix a memory leak in check_sam_security_info3

Abartlet, this commit makes check_sam_security_info3 use talloc_tos() and also
cleans up the temporary talloc stackframe.

The old code created a temporary talloc context off "mem_ctx" but failed to
clean up the tmp_ctx in all but one return paths.

talloc_stackframe()/talloc_tos() is designed as a defense against exactly this
error: Even if we failed to free the frame when returning from the routine, it
would be cleaned up very soon, in our main event loop.

Please check this patch!

Thanks,

Volker

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Mar  5 14:08:37 CET 2011 on sn-devel-104
(cherry picked from commit dcbfb6fc0b9050168e2010673caccb7ec8807bd1)

13 years agosocket_wrapper: use swrap_sendmsg_before()/after() in swrap_writev()
Stefan Metzmacher [Sat, 30 Oct 2010 14:23:49 +0000 (16:23 +0200)]
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_writev()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar  3 23:43:39 CET 2011 on sn-devel-104
(cherry picked from commit a5d54579ea949f4cd7c975c3f5d0006a90777735)

13 years agosocket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendmsg()
Stefan Metzmacher [Sat, 30 Oct 2010 14:23:49 +0000 (16:23 +0200)]
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendmsg()

This also adds the same logic for broadcast as in swrap_sendto()
for SOCK_DGRAM.

metze
(cherry picked from commit e831376f914d729b9ff3f39c5841846359c712aa)

13 years agosocket_wrapper: use swrap_sendmsg_before()/after() in swrap_send()
Stefan Metzmacher [Sat, 30 Oct 2010 14:23:49 +0000 (16:23 +0200)]
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_send()

metze
(cherry picked from commit 4a736f0fbe58fabf6c0a0650cbc38882cb0446ab)

13 years agosocket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendto()
Stefan Metzmacher [Sat, 30 Oct 2010 14:23:49 +0000 (16:23 +0200)]
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendto()

metze
(cherry picked from commit a2db6b4dba2650c582aa4572276d96dac521a3d8)

13 years agosocket_wrapper: add swrap_sendmsg_before/after helper functions
Stefan Metzmacher [Sat, 30 Oct 2010 14:08:49 +0000 (16:08 +0200)]
socket_wrapper: add swrap_sendmsg_before/after helper functions

Currently have almost the same logic in swrap_send(), swrap_sendto(),
swrap_writev() and swrap_sendmsg(), this helper functions
let combine all the logic in 2 places.

metze
(cherry picked from commit 8c6d7d7b2797c051885e12e3cdf3da158cf4fe25)

13 years agosocket_wrapper: replace recvmsg() correctly
Stefan Metzmacher [Thu, 3 Mar 2011 14:37:17 +0000 (15:37 +0100)]
socket_wrapper: replace recvmsg() correctly

metze
(cherry picked from commit c9ae8102099ed66c776c79e88f1a582f3e213fbc)

13 years agosocket_wrapper: readv() should only work on connected sockets
Stefan Metzmacher [Sat, 30 Oct 2010 14:28:23 +0000 (16:28 +0200)]
socket_wrapper: readv() should only work on connected sockets

metze
(cherry picked from commit ec028b555bbca84e1f949c6632099f8407c0d695)

13 years agosocket_wrapper: move swrap_ioctl() above the send*/recv* functions
Stefan Metzmacher [Sat, 30 Oct 2010 14:19:33 +0000 (16:19 +0200)]
socket_wrapper: move swrap_ioctl() above the send*/recv* functions

metze
(cherry picked from commit 7bdc3db9ea5380eeee8d975b3579dcf673a0eafa)

13 years agosocket_wrapper: fix compiler warnings
Stefan Metzmacher [Wed, 2 Mar 2011 19:46:45 +0000 (20:46 +0100)]
socket_wrapper: fix compiler warnings

metze
(cherry picked from commit 0ad8d459c6f47a0d70c8af2b19e6585a38f34cb4)

13 years agosocket_wrapper: don't allow connect() to the broadcast address
Stefan Metzmacher [Sat, 30 Oct 2010 14:07:31 +0000 (16:07 +0200)]
socket_wrapper: don't allow connect() to the broadcast address

This will simplify other code later.

metze
(cherry picked from commit e3c0d6611087184b37399df2bf04053c60c9f043)

13 years agoFix some nonempty blank lines
Volker Lendecke [Sat, 12 Feb 2011 11:18:16 +0000 (12:18 +0100)]
Fix some nonempty blank lines
(cherry picked from commit 78525270733a79a6e2def662d7340382cb648414)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3: Use dom_sid_string_buf in sid_to_fstring
Volker Lendecke [Thu, 3 Mar 2011 16:02:40 +0000 (17:02 +0100)]
s3: Use dom_sid_string_buf in sid_to_fstring

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar  3 22:56:57 CET 2011 on sn-devel-104

13 years agoAdd dom_sid_string_buf
Volker Lendecke [Thu, 3 Mar 2011 15:59:39 +0000 (16:59 +0100)]
Add dom_sid_string_buf

This prints into a fixed buffer with the same overflow semantics as snprintf
has: Return required string length, regardless of whether it fit or not.

13 years agos3: Use dom_sid_string in _lsa_lookup_sids_internal
Volker Lendecke [Thu, 3 Mar 2011 15:20:56 +0000 (16:20 +0100)]
s3: Use dom_sid_string in _lsa_lookup_sids_internal

13 years agos3: Remove an obsolete comment
Volker Lendecke [Thu, 3 Mar 2011 14:26:12 +0000 (15:26 +0100)]
s3: Remove an obsolete comment

13 years agos3: Fix some nonempty blank lines
Volker Lendecke [Thu, 3 Mar 2011 11:51:57 +0000 (12:51 +0100)]
s3: Fix some nonempty blank lines

13 years agos3: Pass the aio_force operation through vfs_gpfs
Volker Lendecke [Fri, 25 Feb 2011 13:55:28 +0000 (06:55 -0700)]
s3: Pass the aio_force operation through vfs_gpfs

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar  2 19:24:27 CET 2011 on sn-devel-104

13 years agos3: Ask GPFS for the IS_OFFLINE operation
Volker Lendecke [Fri, 25 Feb 2011 13:50:19 +0000 (06:50 -0700)]
s3: Ask GPFS for the IS_OFFLINE operation

13 years agos3: Announce HSM in the gpfs module
Volker Lendecke [Fri, 25 Feb 2011 14:18:46 +0000 (07:18 -0700)]
s3: Announce HSM in the gpfs module

13 years agos3: Pass smb_filename through the set_offline vfs op
Volker Lendecke [Fri, 25 Feb 2011 13:43:52 +0000 (06:43 -0700)]
s3: Pass smb_filename through the set_offline vfs op

13 years agos3: Pass smb_filename through the is_offline vfs op
Volker Lendecke [Fri, 25 Feb 2011 13:37:34 +0000 (06:37 -0700)]
s3: Pass smb_filename through the is_offline vfs op

13 years agos3: Fix operation names in vfs_full_audit.c
Volker Lendecke [Fri, 25 Feb 2011 13:28:30 +0000 (06:28 -0700)]
s3: Fix operation names in vfs_full_audit.c

13 years agos3: Print all flags in "smbclient allinfo"
Volker Lendecke [Wed, 2 Mar 2011 16:55:31 +0000 (09:55 -0700)]
s3: Print all flags in "smbclient allinfo"

13 years agos3:idmap_cache: remove an leftover wip comment
Michael Adam [Wed, 2 Mar 2011 12:58:37 +0000 (13:58 +0100)]
s3:idmap_cache: remove an leftover wip comment

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Mar  2 14:55:20 CET 2011 on sn-devel-104
(cherry picked from commit d9945e93694859c9606e17078fabc2e23b5421fe)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3: adjust loglevel for idmap_cache
Gregor Beck [Tue, 1 Mar 2011 16:18:31 +0000 (17:18 +0100)]
s3: adjust loglevel for idmap_cache

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 8aa69c1f814b215c1b2e48393373878ba87dad0d)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agolibrpc/idl: remove unused string defines from idl_types.h
Stefan Metzmacher [Tue, 1 Mar 2011 15:44:22 +0000 (16:44 +0100)]
librpc/idl: remove unused string defines from idl_types.h

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar  2 14:09:44 CET 2011 on sn-devel-104
(cherry picked from commit 7101f5a8f21875519942d0263efa3221fc23bb22)

13 years agolibrpc/rpc: let ndr_pull_spoolss_EnumPrinterDataEx() use a subcontext
Stefan Metzmacher [Tue, 1 Mar 2011 16:41:27 +0000 (17:41 +0100)]
librpc/rpc: let ndr_pull_spoolss_EnumPrinterDataEx() use a subcontext

This is not strictly needed, but it's good to have the logic
in common with the other Enum* calls.

This also allows us to play with the NDR_RELATIVE_REVERSE flag.

metze
(cherry picked from commit 56df34a6aa336c1f7e6b40a4cc585ae12d9052a6)

13 years agos3: Attempt to fix the build on IRIX
Volker Lendecke [Wed, 2 Mar 2011 09:44:14 +0000 (10:44 +0100)]
s3: Attempt to fix the build on IRIX

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar  2 11:33:05 CET 2011 on sn-devel-104
(cherry picked from commit 8635a3834a50b911aab549ddb5a41952a84dccc3)

13 years agos3: GPFS can't deal with mangled names
Volker Lendecke [Thu, 24 Feb 2011 09:50:46 +0000 (02:50 -0700)]
s3: GPFS can't deal with mangled names

In getrealfilename, avoid calling the GPFS function
(cherry picked from commit 358f031ccf7e5df11416b977965dfbb184e2bd25)

13 years agos3-printing: vfs_connect prior to driver/dfs IO
David Disseldorp [Tue, 1 Mar 2011 18:17:49 +0000 (19:17 +0100)]
s3-printing: vfs_connect prior to driver/dfs IO

samba3.posix_s3.rpc.spoolss.driver fails with the xattr_tdb vfs module
loaded as a part of make test. The (now checked) create_directory() call
in move_driver_to_download_area() fails, uncovering another bug in the
printer driver upload code path.

move_driver_to_download_area() creates a new conn_struct for
manipulating files in [print$]. The VFS layer is plumbed through with
the call to create_conn_struct(), however SMB_VFS_CONNECT() is never
called. Many vfs modules expect state stored at connect time with
SMB_VFS_HANDLE_SET_DATA() to be available on any IO operation and fail
if this is not the case.

This fix adds a call to SMB_VFS_CONNECT() in create_conn_struct() prior
to IO.

https://bugzilla.samba.org/show_bug.cgi?id=7976

13 years agos3-printing: clean up get_correct_cversion error paths
David Disseldorp [Tue, 1 Mar 2011 18:17:48 +0000 (19:17 +0100)]
s3-printing: clean up get_correct_cversion error paths

Remove an unneeded variable and simplify error paths.

13 years agos3-printing: fix move_driver_to_download_area() error paths
David Disseldorp [Tue, 1 Mar 2011 18:17:47 +0000 (19:17 +0100)]
s3-printing: fix move_driver_to_download_area() error paths

WERR_ACCESS_DENIED errors are mapped to WERR_UNKNOWN_PRINTER_DRIVER,
resulting in incorrect error messages on Windows clients.

move_driver_to_download_area() returns the same error status values
to the caller via the *perr argument as well as the return value.

The create_directory() call is not checked for error.

13 years agolibrpc/ndr: handle NOALIGN flag for relative pointers and alignment DATA_BLOBs
Stefan Metzmacher [Tue, 1 Mar 2011 13:20:32 +0000 (14:20 +0100)]
librpc/ndr: handle NOALIGN flag for relative pointers and alignment DATA_BLOBs

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Mar  1 17:11:03 CET 2011 on sn-devel-104
(cherry picked from commit ef224aa004d5f1726d8dca020e0ef96d8c58565e)

13 years agospoolss.idl: align spoolss_DriverFileInfo relative pointer to 4 byte
Stefan Metzmacher [Tue, 22 Feb 2011 14:56:30 +0000 (15:56 +0100)]
spoolss.idl: align spoolss_DriverFileInfo relative pointer to 4 byte

metze
(cherry picked from commit b6ece01c7922adeb3c9e718bc8cc610cae7c543c)

13 years agospoolss.idl: align spoolss_PrinterEnumValues 'data' based on the type
Stefan Metzmacher [Tue, 22 Feb 2011 18:23:33 +0000 (19:23 +0100)]
spoolss.idl: align spoolss_PrinterEnumValues 'data' based on the type

metze
(cherry picked from commit 341330600aebcec92fba64ea343888c15a0c3d44)

13 years agoTODO test/review librpc/ndr: remove align2 hack for relative pointers
Stefan Metzmacher [Tue, 22 Feb 2011 14:58:45 +0000 (15:58 +0100)]
TODO test/review librpc/ndr: remove align2 hack for relative pointers

metze
(cherry picked from commit 23f6f449792d889538e0d0028bb8fbd5c807b0da)

13 years agoTODO test/review librpc: align nstring and nstring_array to 2 byte
Stefan Metzmacher [Tue, 22 Feb 2011 14:57:21 +0000 (15:57 +0100)]
TODO test/review librpc: align nstring and nstring_array to 2 byte

metze
(cherry picked from commit 712ef2590d0ee59a4a659926cdf8aac6e968dfa8)

13 years agolibrpc/ndr: ndr align relative pointers based on the given flags
Stefan Metzmacher [Tue, 22 Feb 2011 14:45:44 +0000 (15:45 +0100)]
librpc/ndr: ndr align relative pointers based on the given flags

We used to do this only for the reverse relative pointers
and now we always do it.

metze
(cherry picked from commit 84b884eb4bec38b721d6c38704f12d1d2c601bcb)

13 years agoTODO test/review librpc/ndr: let ndr_push/pull_DATA_BLOB() look at LIBNDR_FLAG_REMAIN...
Stefan Metzmacher [Tue, 22 Feb 2011 17:19:13 +0000 (18:19 +0100)]
TODO test/review librpc/ndr: let ndr_push/pull_DATA_BLOB() look at LIBNDR_FLAG_REMAINING before LIBNDR_ALIGN_FLAGS

metze
(cherry picked from commit 6c3a49ced333988b21d86e47b2b1dd1a5957e15c)

13 years agoRevert "Fix alignment issues in SPOOLSS "BUFFER" marshalling."
Stefan Metzmacher [Tue, 22 Feb 2011 10:00:07 +0000 (11:00 +0100)]
Revert "Fix alignment issues in SPOOLSS "BUFFER" marshalling."

This reverts commit 187f695469071d0550613e037b36170facb85460.

This is the wrong fix.

metze
(cherry picked from commit bd2b0076b4ea0be6e2f6730566736be7e338aafc)

13 years agoFix compiler warning on casting -1 to uint32.
Jeremy Allison [Mon, 28 Feb 2011 22:56:03 +0000 (14:56 -0800)]
Fix compiler warning on casting -1 to uint32.
(cherry picked from commit 87c4ceaf7c9ac98a35b5ed3de31191887d609d79)

13 years agoFix "cast from pointer to integer of different size" warnings on a 64-bit machine.
Jeremy Allison [Mon, 28 Feb 2011 20:25:40 +0000 (12:25 -0800)]
Fix "cast from pointer to integer of different size" warnings on a 64-bit machine.
(cherry picked from commit 30deb3fce96a3c1a5659e3f0011d90de32dc43b3)

13 years agoFinish the range checking on all FD_SET calls for select().
Jeremy Allison [Mon, 28 Feb 2011 19:23:53 +0000 (11:23 -0800)]
Finish the range checking on all FD_SET calls for select().
(cherry picked from commit 874b2b726af07d95694e4bcc8ad201a2c145a588)

13 years agonsswitch: Eliminate select from wb_common
Volker Lendecke [Fri, 18 Feb 2011 12:57:35 +0000 (13:57 +0100)]
nsswitch: Eliminate select from wb_common

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 28 17:26:18 CET 2011 on sn-devel-104

13 years agoRemove sys_select[_intr]
Volker Lendecke [Fri, 18 Feb 2011 11:34:08 +0000 (12:34 +0100)]
Remove sys_select[_intr]

13 years agotevent: Add a poll backend
Volker Lendecke [Wed, 9 Feb 2011 14:28:10 +0000 (15:28 +0100)]
tevent: Add a poll backend

13 years agolibcli: Eliminate select from smb_readline_replacement
Volker Lendecke [Mon, 14 Feb 2011 11:14:12 +0000 (12:14 +0100)]
libcli: Eliminate select from smb_readline_replacement

13 years agos3: Eliminate select from libaddns
Volker Lendecke [Thu, 10 Feb 2011 10:01:54 +0000 (11:01 +0100)]
s3: Eliminate select from libaddns

13 years agos3: Eliminate sys_select from do_smb_resolve() -- untested
Volker Lendecke [Mon, 7 Feb 2011 16:19:03 +0000 (17:19 +0100)]
s3: Eliminate sys_select from do_smb_resolve() -- untested

13 years agos3: Eliminate sys_select from do_smb_browse() -- untested
Volker Lendecke [Mon, 7 Feb 2011 16:17:26 +0000 (17:17 +0100)]
s3: Eliminate sys_select from do_smb_browse() -- untested

13 years agos3: Eliminate sys_select_intr from smbfilter
Volker Lendecke [Wed, 9 Feb 2011 12:38:06 +0000 (13:38 +0100)]
s3: Eliminate sys_select_intr from smbfilter

13 years agos3: Remove unused receive_packet
Stefan Metzmacher [Fri, 18 Feb 2011 11:32:12 +0000 (12:32 +0100)]
s3: Remove unused receive_packet

13 years agos3: Eliminate sys_select_intr from read_fd_with_timeout
Volker Lendecke [Tue, 8 Feb 2011 16:57:12 +0000 (17:57 +0100)]
s3: Eliminate sys_select_intr from read_fd_with_timeout

13 years agos3: Eliminiate sys_select_intr from client.c
Volker Lendecke [Tue, 8 Feb 2011 16:56:10 +0000 (17:56 +0100)]
s3: Eliminiate sys_select_intr from client.c

13 years agos3: Add poll_intr_one_fd
Volker Lendecke [Tue, 8 Feb 2011 16:33:59 +0000 (17:33 +0100)]
s3: Add poll_intr_one_fd

13 years agos3: Add sys_poll_intr
Volker Lendecke [Tue, 8 Feb 2011 16:28:27 +0000 (17:28 +0100)]
s3: Add sys_poll_intr

13 years agos3: Eliminate sys_select from g_lock_lock
Volker Lendecke [Tue, 8 Feb 2011 10:59:04 +0000 (11:59 +0100)]
s3: Eliminate sys_select from g_lock_lock

13 years agos3: Eliminate sys_select from fd_is_readable
Volker Lendecke [Mon, 7 Feb 2011 16:02:44 +0000 (17:02 +0100)]
s3: Eliminate sys_select from fd_is_readable

13 years agos3: Eliminate select from packet_fd_read_sync
Volker Lendecke [Mon, 7 Feb 2011 15:59:38 +0000 (16:59 +0100)]
s3: Eliminate select from packet_fd_read_sync

13 years agos3: Add poll_one_fd()
Volker Lendecke [Mon, 7 Feb 2011 15:55:16 +0000 (16:55 +0100)]
s3: Add poll_one_fd()

13 years agos3: Remove select-based s3 event backend
Volker Lendecke [Mon, 7 Feb 2011 14:24:07 +0000 (15:24 +0100)]
s3: Remove select-based s3 event backend

13 years agos3: Use poll in nmbd
Volker Lendecke [Mon, 7 Feb 2011 14:20:39 +0000 (15:20 +0100)]
s3: Use poll in nmbd

13 years agos3: Use poll in winbind
Volker Lendecke [Thu, 3 Feb 2011 21:05:30 +0000 (22:05 +0100)]
s3: Use poll in winbind

13 years agos3: Use poll in smbd
Volker Lendecke [Thu, 3 Feb 2011 20:55:02 +0000 (21:55 +0100)]
s3: Use poll in smbd

13 years agos3: Use poll for the event loop
Volker Lendecke [Thu, 3 Feb 2011 15:34:07 +0000 (16:34 +0100)]
s3: Use poll for the event loop

13 years agos3: Add sys_poll
Volker Lendecke [Mon, 7 Feb 2011 15:29:13 +0000 (16:29 +0100)]
s3: Add sys_poll

13 years agolibreplace: poll based on select
Volker Lendecke [Wed, 9 Feb 2011 18:22:25 +0000 (19:22 +0100)]
libreplace: poll based on select

13 years agos3: Add timeval_to_msec
Volker Lendecke [Tue, 8 Feb 2011 11:55:02 +0000 (12:55 +0100)]
s3: Add timeval_to_msec

13 years agos3:msg_idmap: The solaris cc compiler does not like unnamed unions as struct members...
Michael Adam [Mon, 28 Feb 2011 14:52:25 +0000 (15:52 +0100)]
s3:msg_idmap: The solaris cc compiler does not like unnamed unions as struct members - fix the build

13 years agos3: fix the waf build after adding smbd/msg_idmap.c
Michael Adam [Mon, 28 Feb 2011 14:36:11 +0000 (15:36 +0100)]
s3: fix the waf build after adding smbd/msg_idmap.c

13 years agos3: Survive an idle child that was killed
Christian Ambach [Wed, 23 Feb 2011 10:10:15 +0000 (11:10 +0100)]
s3: Survive an idle child that was killed

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 28 14:53:20 CET 2011 on sn-devel-104
(cherry picked from commit 3854413c246a3a69d100af6e827ce8f217bf408e)

13 years agos3: smbcontrol to notify smbd about idmap changes
Gregor Beck [Thu, 3 Feb 2011 15:30:29 +0000 (16:30 +0100)]
s3: smbcontrol to notify smbd about idmap changes