summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2007-11-13Make [f]get_nt_acl return NTSTATUSVolker Lendecke4-31/+33
(This used to be commit dcbe1bf942d017a3cd5084c6ef605a13912f795b)
2007-11-12More pstring removal from smbd/*.cJeremy Allison1-11/+17
Jeremy. (This used to be commit 01663c2312467ceebeb2e2fb1aa432ad96c626e5)
2007-11-12Remove pstrings from lanman.cJeremy Allison1-54/+148
Jeremy. (This used to be commit 7bfd25c75602e25da73710261a54da8e0feea133)
2007-11-12Remove all pstrings from smbd/chgpasswd.c.Jeremy Allison1-67/+90
Jeremy. (This used to be commit eaf14c701b08e9eff5b94bf57af68cb29142d7fc)
2007-11-12Fix bug #5073. Allow "delete readonly = yes" to correctlyJeremy Allison1-1/+2
override deletion of a file. Fix from David Shaw <dshaw@jabberwocky.com> Jeremy. (This used to be commit 5d1d650d192d4782421b5c3c2be1b632d4318279)
2007-11-11Three more pstring removals.Jeremy Allison3-8/+17
Jeremy. (This used to be commit c15819b75751a1e15cfed2ef94dae10ee72d769c)
2007-11-11Cosmetic fixVolker Lendecke1-3/+5
Do directory vs file open before entering open_file_stat (This used to be commit cd62122916defbfb57468c3b82a60b766fc4652e)
2007-11-10Always define PATH_MAX. Makes code simpler (removesJeremy Allison3-37/+41
a bunch of #defines). Remove pstring from msdfs.c. Jeremy. (This used to be commit e203ba22275320808bc11b17361ad1f2d5b0b897)
2007-11-10Remove last pstring from sesssetup.cJeremy Allison1-19/+21
Jeremy. (This used to be commit 9ed12bfc48fe7f9b1863a9dd88e881974083053c)
2007-11-10Fix the build when realpath doesn't take nullJeremy Allison1-1/+1
as a last arg. Jeremy. (This used to be commit 63125225383f512f43002b9a92569d4b8f1b63bd)
2007-11-10Remove pstring from service.c.Jeremy Allison1-71/+109
Jeremy. (This used to be commit cdd9e5cc8366cf0be4dc31f793fc0e5be6f63c3e)
2007-11-09Remove more static fstring/pstrings. Fix socket optionJeremy Allison1-4/+2
set on wrong fd (-1). Jeremy. (This used to be commit 52fe04df8e8c08126afe61d509fc1d3cb676e327)
2007-11-09ndr: change NTSTAUS into enum ndr_err_code (samba3 callers)Stefan Metzmacher1-13/+19
lib/messages_local.c rpc_client/ndr.c smbd/notify_internal.c utils/net_rpc_registry.c metze (This used to be commit c2645d2164c05976a98bafed980b6029baf89977)
2007-11-09prepare changes in ndr codeStefan Metzmacher1-3/+2
metze (This used to be commit 9ba00e7c167fb871a3d9acbd9fc5ce4e935d92c2)
2007-11-09Fix some warningsVolker Lendecke1-1/+1
(This used to be commit 0a1f524e8cce9bbe4fd10467c1f64f7a8862d298)
2007-11-09Remove the silly "user_socket_options" global variableVolker Lendecke1-6/+8
This is better done with a 'lp_do_parameter(-1, "socket options", ..); (This used to be commit 814bed029efa391e664ac432d0d68dfeab26381f)
2007-11-07Constrain "min receivefile size" to max of BUFFER_SIZEJeremy Allison1-2/+20
(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-07Try to fix the build on irix.Michael Adam1-2/+2
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-06Move some access check functions that are not posix-acl specificMichael Adam2-212/+239
to a new source file of their own. Michael (This used to be commit 9dd18bb534bca6b5de6cad9580b48681b36c0832)
2007-11-06Don't repeat fast-pathing...Michael Adam1-1/+1
Michael (This used to be commit c61b4222d30288add216fac4da3cfaa537f5cd01)
2007-11-06This is a proposed patch for Bug #5023.Michael Adam1-300/+70
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-06Add a const.Michael Adam1-1/+1
Michael (This used to be commit 7b582af2107bed3b864bb408b5c9bcce4b8e4c72)
2007-11-05Add two const's.Michael Adam1-2/+2
Michael (This used to be commit bf23c4ddff617dd3cd1e2d5cedb1b5c023356dc3)
2007-11-05Remove the horror that was the global smb_rw_error.Jeremy Allison3-24/+42
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-05Fix a debug messageVolker Lendecke1-1/+1
(This used to be commit a86849e4f9512b680f26010c297cec14251dafdd)
2007-11-05Make load_registry_service return the share numberVolker Lendecke1-1/+0
(This used to be commit 934964c90f39d588d2399f10e3738ab1b4e01290)
2007-11-04Forgot arg type.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 46f3b04ddea4c63c6b37c7038d4bbd2ee1c9ca0c)
2007-11-04Don't believe len returned from read_smb_length_return_keepalive(),Jeremy Allison1-1/+1
it may be a UNIX large writeX (which wraps len in that case). Stevef this should fix your 128k write bug. Jeremy. (This used to be commit de2ebffa3c99ed28a3868fd956ef45629ca855b6)
2007-11-03Remove most of the remaining globals out of lib/util_sock.c.Jeremy Allison6-11/+17
I have a plan for dealing with the remaining..... Watch this space. Jeremy. (This used to be commit 963fc7685212689f02b3adcc05b4273ee5c382d4)
2007-11-03I can't get away without a 'length' arg. :-).Jeremy Allison6-9/+15
Jeremy. (This used to be commit 95d01279a5def709d0a5d5ae7224d6286006d120)
2007-11-03Stop get_peer_addr() and client_addr() from using globalJeremy Allison6-8/+19
statics. Part of my library cleanups. Jeremy. (This used to be commit e848506c858bd16706c1d7f6b4b032005512b8ac)
2007-11-03Remove the smb_read_error global variable and replaceJeremy Allison5-38/+21
it with accessor functions. "One global or pstring a day...." :-). Jeremy. (This used to be commit d50d14c300abc83b7015718ec48acc8b3227a273)
2007-11-02Change the client library to write directly out ofJeremy Allison1-5/+10
the incoming buffer in the non-signed case. Speeds up writes by over 10% or so. Complete the server recvfile implementation. Jeremy. (This used to be commit 81ca5853b2475f123faab3b550f0a7b24ae3c208)
2007-11-02Argggh. smblen doesn't include the +4, so my smb_doff calculationsJeremy Allison1-4/+4
shouldn't either :-). Jeremy. (This used to be commit c3de44b6b063e126095b30536fdcb643c70e395e)
2007-11-01Ensure we can't accidently do a pipe write withJeremy Allison1-0/+5
unread bytes in the socket buffer. Jeremy (This used to be commit 84d22f7747126608b9460f9591bb5967d871b82d)
2007-11-01Be careful and take care of the correct lengths in largeJeremy Allison1-9/+7
writeX calls. Jeremy. (This used to be commit 2d3ff9c502105f92720131355b41e48be8d656c2)
2007-11-01Ensure we detect a large writeX when using recvfile.Jeremy Allison1-1/+2
More changes needed to make the UNIX_LARGE_WRITEX_CAP writes work (I'll add these tomorrow). Jeremy. (This used to be commit 1c71546b6152d2930b98f766311bbd161ee0ee4e)
2007-11-01Add brackets so as not to break the POSIX caps return.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 47dbddcb5361caa30ee60cf4e15bb50d557d1191)
2007-10-31Note when we're setting change time, not write time, and sendJeremy Allison3-16/+32
message accordingly. Apart from not supporting create time we now pass the S4 RAW-NOTIFY torture. Jeremy. (This used to be commit 8a77f520fa03afa60eac2aaeab4babe7dd8db4f0)
2007-10-31Fix some cases where file_set_dosmode was being passedJeremy Allison6-12/+28
False instead of NULL. Fix more of the notifications to be correct for Samba4 RAW-NOTIFY torture (we had missed one when calling set_ea_dos_attribute(). Jeremy. (This used to be commit 39d265375cf55eedddef2c4faa65398df73d5ed2)
2007-10-31Fix vfstest link - move socket calls into smbd/process.cJeremy Allison2-288/+288
not smbd/server.c Jeremy (This used to be commit 8fbefe18a2dc23adb0ebe488cfb37ab4a382207d)
2007-10-31Make explicit draining the socket on RECVFILE. AddJeremy Allison3-12/+17
capability for large UNIX write if not signing and recvfile set. Cope with large UNIX write length on incoming processing. Stevef - we can now test 1-16Mb writes from CIFFS. Jeremy. (This used to be commit 8cf78776b0a44bd026cef3d74eb11cfb415f8303)
2007-10-30Handle the disk full error case correctly.Jeremy Allison1-1/+1
Jeremy. (This used to be commit b7088bb9c2a00d4717b9a7efa4bddc0c005f4efb)
2007-10-30Ensure we don't prematurely clean out the bytes read.Jeremy Allison1-4/+10
Jeremy. (This used to be commit 247675695dfbff503b5792de62f8bb1567ea2327)
2007-10-30Add new parameter, "min receivefile size" (by default setJeremy Allison7-53/+482
to zero). If non-zero, writeX calls greater than this value will be left in the socket buffer for later handling with recvfile (or userspace equivalent). Definition of recvfile for your system is left as an exercise for the reader (I'm working on getting splice working :-). Jeremy. (This used to be commit 11c03b75ddbcb6e36b231bb40a1773d1c550621c)
2007-10-30start smbd, nmbd and winbindd with the same startup messageStefan Metzmacher1-2/+2
at debug level 0. metze (This used to be commit 95f76ae7a52c6b22db22d03fed6b0848d2a61bee)
2007-10-28Enable vfs objects = /full/path/to/object.soVolker Lendecke1-10/+36
Right now I'm testing a vfs object. I can't right now in make test, because "vfs objects" assumes the .so files to be in $libdir/vfs. This patch parses the module name out of the object name in case it starts with "/". The module name is assumed to be the last path component's basename. (This used to be commit 95cc019af775a6ab28ea602ad767fa54d7c86197)
2007-10-27Two patchesVolker Lendecke1-1/+1
Hi! Can you check and push them? Thanks, Volker From b488af5905e2dee12a1a72a3b40801ae5c26f24f Mon Sep 17 00:00:00 2001 From: Volker Lendecke <vl@sernet.de> Date: Sat, 27 Oct 2007 14:20:09 +0200 Subject: [PATCH] Fix some warnings and errors (This used to be commit e17d3e10e860c96b6d5208e5fe51e43b8e58c174)
2007-10-25Ensure we don't terminate if we fail to bind to a socket,Jeremy Allison1-1/+6
only fail if we can't bind to any socket. Jeremy. (This used to be commit 2ec6224b552ef86fa1739c9e396c39c7ec6c76c6)
2007-10-24Don't terminate on an invalid address family.Jeremy Allison1-1/+1
Jeremy. (This used to be commit d04a8a6cdcc505e0244882a9abb7174eadbf81a7)