1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

23644 Commits

Author SHA1 Message Date
Stefan Metzmacher
248e900374 we should not ignore convert_string_talloc() failures.
In all other places in ndr_string.c we already use False...

metze
(This used to be commit 9a201fd4c81509eb8a93087a38bb0fda69dfd7e4)
2007-11-08 13:52:56 +01:00
Stefan Metzmacher
9ba9af75d2 libreplace: we need to link to make sure the functions are available
metze
(This used to be commit 130de20d646fe14f494b021a98d6855c7b5b2a1a)
2007-11-08 12:20:16 +01:00
Michael Adam
1675802d4d Try to fix the build on systems without struct sockaddr_storage type
(like hape - HPUX 11.00).

Michael
(This used to be commit f3d762737540476bab7da1bf6db047b66f53d9ae)
2007-11-08 11:46:18 +01:00
Jeremy Allison
ae74aa9993 Constrain "min receivefile size" to max of BUFFER_SIZE
(128k). Add debug error messages so we can see why
writeX large is denied. Ensure we don't allow recvfile
writes on IPC$.
Jeremy.
(This used to be commit 6bf053a6a17749a3bc73c8cc5fd490aa5f93b763)
2007-11-07 21:47:00 -08:00
Michael Adam
30a48a5c6c Try to fix the build on irix.
There were two callers of set_smb_read_error() in irix_oplocks.c
not converted to the new prototype.

Michael
(This used to be commit e398a8d7b60127001d309c2fd0b1f13337f9b46d)
2007-11-07 22:28:26 +01:00
metze
e0c24fa248 - check return value of ndr_push_set_switch_value()
- fix memory leaks in error pathes

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25798 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit a0d0a06a9e39ea4fd07e9381f4b3397f403ab79d)
2007-11-07 12:13:09 +01:00
metze
aef317ea57 use error and out logic
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25797 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 55d01b3f5b55cab3228270c0f6c164f11b0803f5)
2007-11-07 12:13:09 +01:00
metze
a01f9e3fc0 use NT_STATUS_HAVE_NO_MEMORY()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25796 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit be1f2f1abf15b34f8ab08d9e63637962fa762853)
2007-11-07 12:11:34 +01:00
metze
a0f59767f4 use NDR_CHECK()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25794 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 91ccaa8e70f1665bd759a80363cda9605399464e)
2007-11-07 12:11:33 +01:00
metze
f966752da7 check the return value of ndr_push_set_switch_value()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25793 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit aa155b2c2936c0e9996eda0a21f137773270343a)
2007-11-07 12:11:33 +01:00
metze
ff595ad9c8 use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25792 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit f3dde8c7b73b619a54814bc6a862fa917455b624)
2007-11-07 12:11:32 +01:00
metze
0f904f7d2a the return value of ndr_pull_set_switch_value() should be checked
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25779 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 1563a08cb07738c11ea7b68ba9e814885060b0b7)
2007-11-07 12:10:31 +01:00
metze
ac8cf500d4 use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK() macros
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25778 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit b542eaf825aa42b53f08c73e2b86ee9fafb33256)
2007-11-07 12:10:30 +01:00
metze
e04b21f7d4 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
(This used to be commit 52c422f4d7f8549a11d637de1abceabc1ae86497)
2007-11-07 12:10:30 +01:00
metze
fbb8cff0b8 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
(This used to be commit 8ed241532a069c4207945d5f1ceb1ec817ba7976)
2007-11-07 12:10:29 +01:00
Jeremy Allison
1ee8607d4a Fix tdbtorture build.
Jeremy.
(This used to be commit c14db81be5212dfa6fbcf8bfdcf725d7db3376ca)
2007-11-06 23:13:11 -08:00
Jeremy Allison
99fd77f4ae Fix const warning.
Jeremy.
(This used to be commit ecc2555197860ae56726724ec824fc149d2d831c)
2007-11-06 23:09:31 -08:00
Jeremy Allison
3809490dd0 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.
(This used to be commit ab11c0055761e97ba32a8c3ec4fa6f8763a262cd)
2007-11-06 22:57:35 -08:00
Jeremy Allison
d8f3c9d078 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.
(This used to be commit ef8da1698371c95495add53df81a978df709c88d)
2007-11-06 21:47:57 -08:00
Jeremy Allison
7498e1b8c0 Ensure we don't use massive writes in pipe mode.
Jeremy.
(This used to be commit 47640fb20e42f226e7ea104076fd52547bfe1abb)
2007-11-06 14:12:38 -08:00
Michael Adam
7d899b5e7b Move some access check functions that are not posix-acl specific
to a new source file of their own.

Michael
(This used to be commit 9dd18bb534bca6b5de6cad9580b48681b36c0832)
2007-11-06 19:32:10 +01:00
Michael Adam
754159ed9b Don't repeat fast-pathing...
Michael
(This used to be commit c61b4222d30288add216fac4da3cfaa537f5cd01)
2007-11-06 19:30:36 +01:00
Michael Adam
dbfee4efbf 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
(This used to be commit 6f961a23de745aba5dcd4585b731e651b8cbeef4)
2007-11-06 19:26:53 +01:00
Michael Adam
1fd78e226b Add a const.
Michael
(This used to be commit 7b582af2107bed3b864bb408b5c9bcce4b8e4c72)
2007-11-06 18:16:23 +01:00
metze
4930bab6b8 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
(This used to be commit 760f24f10cbea7ce22acd0772fb5b125f718d129)
2007-11-06 09:38:59 +01:00
metze
cfb20163a5 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
(This used to be commit 20ec1f472566bbc570fa138cce5dbd0407aef530)
2007-11-06 09:38:59 +01:00
jelmer
caa6e6f544 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
(This used to be commit 4d02b1344b76c6147944188161f73ad3917b8abc)
2007-11-06 09:38:59 +01:00
jelmer
29725af3be 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
(This used to be commit 57bea8cd02cb7964bbb64ba26b83c372f0e12b94)
2007-11-06 09:38:59 +01:00
jelmer
e759ca8492 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
(This used to be commit 0ec16729299887b4a80a7e24fbd1750632276691)
2007-11-06 09:38:58 +01:00
jelmer
29303bd12e 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
(This used to be commit 9f862e9faf0fa9cddfcc2f87d9f247082718b3e0)
2007-11-06 09:38:58 +01:00
jelmer
a2cf98daf0 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
(This used to be commit 322cf8002bab1e449616d9fcea0bd4c9535cfe6a)
2007-11-06 09:38:58 +01:00
jelmer
b8fdd9e383 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
(This used to be commit 63b7690335360a073dc1ae111f740a7934f1a92f)
2007-11-06 09:38:58 +01:00
jelmer
1622ab608d 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
(This used to be commit 48c70f604071fcf7c0887fe0136bdc2dda4c8ff4)
2007-11-06 09:38:58 +01:00
jelmer
0627ebc620 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
(This used to be commit 4904af51cdccd4e52d2805bd62f39276447c4646)
2007-11-06 09:38:57 +01:00
metze
f16544ad3b 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
(This used to be commit 809fee4bef66eb8b8687f88257c0d6f77d3b4063)
2007-11-06 09:38:57 +01:00
Jeremy Allison
85b48d792f Ensure we null out the address correctly.
Jeremy.
(This used to be commit e1fcd851ab38165eb0e959cdc02ff067614f8b28)
2007-11-05 23:17:19 -08:00
Michael Adam
002060855f 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
(This used to be commit e2ffc6053dc9453fc49545db47374ed42e8efecd)
2007-11-06 01:10:05 +01:00
Michael Adam
251d755e90 Fix a segfault.
Michael
(This used to be commit 98225a075226e78f7ce64787dd29122fda3d6924)
2007-11-06 01:10:04 +01:00
Michael Adam
ea7bfdde72 Try to fix the build. There was one forgotten caller
of receive_smb. Jeremy: please check!

Michael
(This used to be commit 1f0fcc3e4ef7526cbf0a5a5fc96708238d0efdeb)
2007-11-06 01:10:04 +01:00
Günther Deschner
99d9993fdb When deleting a key from the registry make sure the non-default
security descriptor gets deleted as well.

Guenther
(This used to be commit d140d68537225b6a6a99be3d9b09354e3f6ad8c9)
2007-11-06 00:50:47 +01:00
Michael Adam
3fd2d4ed85 Add two const's.
Michael
(This used to be commit bf23c4ddff617dd3cd1e2d5cedb1b5c023356dc3)
2007-11-05 23:23:35 +01:00
Jeremy Allison
36441da424 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.
(This used to be commit 255c2adf7b6ef30932b5bb9f142ccef4a5d3d0db)
2007-11-05 11:12:56 -08:00
Michael Adam
8f13ba4568 Fix a typo.
Michael
(This used to be commit 5721a511d8dd327717bcd9c2053c4bd08f01185c)
2007-11-05 15:16:11 +01:00
Günther Deschner
515722c259 Ignore testing tdb.
Guenther
(This used to be commit 5bf02c6cdf6fc4596827755f7d659709adb0a7d6)
2007-11-05 13:35:05 +01:00
Jeremy Allison
536a9e7922 Don't alloc struct iface_struct nics[MAX_INTERFACES]; (128 entries)
on the stack - use talloc.
Jeremy
(This used to be commit b5e37af251a26648b0e4f59ca548c5374399175e)
2007-11-04 22:20:04 -08:00
Jeremy Allison
6a2a27076f This should really be a cond_set_smb_read_error().
Jeremy.
(This used to be commit 5ab76b58c00dde89b56060482f5cdc5d0c6c56cb)
2007-11-04 22:14:19 -08:00
Jeremy Allison
85ff0b2d75 Don't use 0 when we mean SMB_READ_OK.
Jeremy.
(This used to be commit 08ee4314a9e25700288f4ea1af22ee1732dfea61)
2007-11-04 22:12:31 -08:00
Günther Deschner
a7be4d50d4 Merge commit 'origin/v3-2-test' into branches/upstream
(This used to be commit d0bf0ad2ae9a2bff4cec8c7e801a22c624b874ae)
2007-11-05 03:39:18 +01:00
Volker Lendecke
2d73e86cce Remove unnecessary code
SAFE_FREE checks for NULL anyway, and SMB_STRDUP panics on failure
(This used to be commit 4cdebda39b9b1790fc5c7df3dc81bfb46b047ad7)
2007-11-05 03:40:31 +01:00
Volker Lendecke
082da3d287 Fix a debug message
(This used to be commit a86849e4f9512b680f26010c297cec14251dafdd)
2007-11-05 03:40:18 +01:00