1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

20597 Commits

Author SHA1 Message Date
metze
52c422f4d7 add NDR_ERR_UNREAD_BYTES and don't use NTSTATUS directly
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25777 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:10:30 +01:00
metze
8ed241532a create ndr_pull_union_blob_all() and match the logic of the struct fns
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25774 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:10:29 +01:00
Jeremy Allison
c14db81be5 Fix tdbtorture build.
Jeremy.
2007-11-06 23:13:11 -08:00
Jeremy Allison
ecc2555197 Fix const warning.
Jeremy.
2007-11-06 23:09:31 -08:00
Jeremy Allison
ab11c00557 Keep the tdb code in sync with Samba4.
Mainly this is the svn changes :

------------------------------------------------------------------------
r23238 | tridge | 2007-05-30 01:15:49 -0700 (Wed, 30 May 2007) | 6 lines

merged transaction lock changes from ctdb

this ensures that having the global lock also implies the transaction
lock

------------------------------------------------------------------------
r22832 | tridge | 2007-05-13 18:00:06 -0700 (Sun, 13 May 2007) | 3 lines

merged the latest tdb changes from ctdb to Samba4

Jeremy.
2007-11-06 22:57:35 -08:00
Jeremy Allison
ef8da16983 Fix bug where tdb lock call interrupted with
an alarm sig would not terminate and could lead
to runaway smbd processes.
Thanks to Dave Daugherty @ Centrify for pointing
this out to us.
Jeremy.
2007-11-06 21:47:57 -08:00
Jeremy Allison
47640fb20e Ensure we don't use massive writes in pipe mode.
Jeremy.
2007-11-06 14:12:38 -08:00
Michael Adam
9dd18bb534 Move some access check functions that are not posix-acl specific
to a new source file of their own.

Michael
2007-11-06 19:32:10 +01:00
Michael Adam
c61b4222d3 Don't repeat fast-pathing...
Michael
2007-11-06 19:30:36 +01:00
Michael Adam
6f961a23de This is a proposed patch for Bug #5023.
The three can_* access check functions in smbd/posix_acls.c that are used in
smbd/open.c and smbd/nttrans.c explicitly called check_posix_acl_group_access()

This lead to errors with nfsv4 acls (ZFS and GPFS).

This changes the can_* functions to get the nt_acl via VFS layer and call
se_access_check on that. It also removes check_posix_acl_group_access()
which has no more callers.

NOTE: The can_* functions should really not be in smbd/posix_acls.c but
in a separate file (I propose smbd/access.c).

Michael
2007-11-06 19:26:53 +01:00
Michael Adam
7b582af210 Add a const.
Michael
2007-11-06 18:16:23 +01:00
metze
760f24f10c libreplace: we should only have one location where we check for required functions
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25864 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
metze
20ec1f4725 libreplace: we need include <unistd.h> before nss_wrapper.h
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25863 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
jelmer
4d02b1344b Fix export dynamic for HPUX.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25861 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
jelmer
57bea8cd02 Remove flag that causes problems on some hosts.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25860 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
jelmer
0ec1672929 Wrap native HPUX functions in dl implementation.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25859 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
9f862e9faf Check for HPUX dl functions.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25855 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
322cf8002b Move SHLIBEXT determination into a test as well.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25852 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
63b7690335 Move system-specific ldflags checks to libreplace so they can be used by ldb.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25851 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
48c70f6040 Add macro for picflag.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25850 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
4904af51cd Add configure test for -Wl,--export-dynamic.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25846 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:57 +01:00
metze
809fee4bef libreplace: include nss_wrapper.h if NSS_WRAPPER is defined
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25838 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:57 +01:00
Jeremy Allison
e1fcd851ab Ensure we null out the address correctly.
Jeremy.
2007-11-05 23:17:19 -08:00
Michael Adam
e2ffc6053d Fix another segfault and make smbfilter run again.
This fix is not complete yet (loop after "client closed connection")
but at least it starts again...

Micheal
2007-11-06 01:10:05 +01:00
Michael Adam
98225a0752 Fix a segfault.
Michael
2007-11-06 01:10:04 +01:00
Michael Adam
1f0fcc3e4e Try to fix the build. There was one forgotten caller
of receive_smb. Jeremy: please check!

Michael
2007-11-06 01:10:04 +01:00
Günther Deschner
d140d68537 When deleting a key from the registry make sure the non-default
security descriptor gets deleted as well.

Guenther
2007-11-06 00:50:47 +01:00
Michael Adam
bf23c4ddff Add two const's.
Michael
2007-11-05 23:23:35 +01:00
Jeremy Allison
255c2adf7b Remove the horror that was the global smb_rw_error.
Each cli struct has it's own local copy of this variable,
so use that in client code. In the smbd server, add one
static to smbd/proccess.c and use that inside smbd. Fix
a bunch of places where smb_rw_error could be set by
calling read_data() in places where we weren't reading
from the SMB client socket (ie. winbindd).
Jeremy.
2007-11-05 11:12:56 -08:00
Michael Adam
5721a511d8 Fix a typo.
Michael
2007-11-05 15:16:11 +01:00
Jeremy Allison
b5e37af251 Don't alloc struct iface_struct nics[MAX_INTERFACES]; (128 entries)
on the stack - use talloc.
Jeremy
2007-11-04 22:20:04 -08:00
Jeremy Allison
5ab76b58c0 This should really be a cond_set_smb_read_error().
Jeremy.
2007-11-04 22:14:19 -08:00
Jeremy Allison
08ee4314a9 Don't use 0 when we mean SMB_READ_OK.
Jeremy.
2007-11-04 22:12:31 -08:00
Günther Deschner
d0bf0ad2ae Merge commit 'origin/v3-2-test' into branches/upstream 2007-11-05 03:39:18 +01:00
Volker Lendecke
4cdebda39b Remove unnecessary code
SAFE_FREE checks for NULL anyway, and SMB_STRDUP panics on failure
2007-11-05 03:40:31 +01:00
Volker Lendecke
a86849e4f9 Fix a debug message 2007-11-05 03:40:18 +01:00
Günther Deschner
52bf835c5e Display sec ace flags.
Guenther
2007-11-05 03:27:13 +01:00
Günther Deschner
62d4cce456 Make sure we can read SACLs from the registry.
Guenther
2007-11-05 03:26:01 +01:00
Volker Lendecke
5b8ca7ebde Fix the smbmount build 2007-11-05 03:18:52 +01:00
Volker Lendecke
5490e2d772 static pstring removal 2007-11-05 03:16:58 +01:00
Volker Lendecke
f5468d2c9a pstring removal 2007-11-05 03:16:48 +01:00
Volker Lendecke
934964c90f Make load_registry_service return the share number 2007-11-05 02:45:14 +01:00
Jeremy Allison
46f3b04dde Forgot arg type.
Jeremy.
2007-11-04 17:15:35 -08:00
Jeremy Allison
de2ebffa3c Don't believe len returned from read_smb_length_return_keepalive(),
it may be a UNIX large writeX (which wraps len in that case).
Stevef this should fix your 128k write bug.
Jeremy.
2007-11-04 15:38:43 -08:00
Jeremy Allison
963fc76852 Remove most of the remaining globals out of lib/util_sock.c.
I have a plan for dealing with the remaining..... Watch
this space.
Jeremy.
2007-11-03 23:20:10 -07:00
Jeremy Allison
35aaa36f82 Remove more static data from lib/util_sock.c and
callers.
Jeremy.
2007-11-03 22:34:46 -07:00
Jeremy Allison
62b5ca3334 Missed one case where I need to pass down addrlen.
Jeremy
2007-11-03 20:27:59 -07:00
Jeremy Allison
95d01279a5 I can't get away without a 'length' arg. :-).
Jeremy.
2007-11-03 18:41:26 -07:00
Jeremy Allison
e848506c85 Stop get_peer_addr() and client_addr() from using global
statics. Part of my library cleanups.
Jeremy.
2007-11-03 18:15:45 -07:00
Jeremy Allison
d50d14c300 Remove the smb_read_error global variable and replace
it with accessor functions. "One global or pstring a day...." :-).
Jeremy.
2007-11-03 15:12:42 -07:00