summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2012-03-26s3: Pass filters explicitly through vfs notify watchVolker Lendecke4-12/+16
This removes a dependency on "struct notify_entry" and makes the nature of the API more explicit. We depend upon the VFS module to mask out elements from e->filter and e->subdir_filter that it took over to handle. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 26 17:45:44 CEST 2012 on sn-devel-104
2012-03-26s3: Fix a typoVolker Lendecke1-1/+1
2012-03-26s3: Rename a variable in inotify_watch for clarityVolker Lendecke1-5/+5
2012-03-26s3: Pass "filter" instead of "notify_entry" to inotify_mapVolker Lendecke1-4/+4
This makes the potential modification a bit more obvious
2012-03-24lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij8-33/+33
The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
2012-03-24lib/util: Remove dummy wrappers for setpwent/getpwent/endpwent.Jelmer Vernooij1-3/+3
2012-03-23s3: Remove the sys_notify dependency from notify_internalVolker Lendecke5-63/+37
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 23 12:12:51 CET 2012 on sn-devel-104
2012-03-22s3:vfs_gpfs: Export disk_norm functionChristof Schmitt2-1/+2
vfs modules implementing the disk_free callback need access to the function disk_norm for normalizing the data if the parameter small query is true.
2012-03-22s3: Fix smbd -iVolker Lendecke1-9/+11
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 22 18:40:02 CET 2012 on sn-devel-104
2012-03-22s3: Remove an unused structure fieldVolker Lendecke1-2/+0
2012-03-22Fix bug 8823 - source3/smbd/process.c:smb_dump seems to have a memory leak.Jeremy Allison1-3/+8
Based on code from Richard Sharpe. Move to talloc from malloc. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 22 00:20:41 CET 2012 on sn-devel-104
2012-03-21s3: Move the notify_ctx to the smbd_server_connectionVolker Lendecke4-9/+14
We only need one notify_ctx per smbd. The notify_array can become quite large. It's based on absolute paths, so there's no point in having a copy of the complete array in memory multiple times. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Mar 21 14:26:07 CET 2012 on sn-devel-104
2012-03-21s3: Remove "conn" param from notify_init()Volker Lendecke3-11/+5
2012-03-21s3: Remove "conn" param from sys_notify_context_createVolker Lendecke3-5/+3
2012-03-21s3: Remove "conn" from sys_notify_contextVolker Lendecke1-1/+0
2012-03-21s3: Pass "conn" to sys_notify_watch()Volker Lendecke3-2/+5
2012-03-21s3: Pass "conn" to notify_add()Volker Lendecke3-3/+6
2012-03-21s3: Pass "path" through vfs_notify_watchVolker Lendecke5-6/+11
2012-03-16s3-notify: Lift "/." handling up one levelVolker Lendecke2-15/+9
This slightly simplifies the code Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 16 14:28:44 CET 2012 on sn-devel-104
2012-03-16s3-notify: Simplify if-expressionsVolker Lendecke1-16/+13
2012-03-15s3:smbd: call file_close_user() before removing tree connects in ↵Stefan Metzmacher2-0/+6
conn_close_all() This will help later if we have to handle a SMB2TreeDisconnect different compared to a SMB2SessionLogoff and a TCPDisconnect. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Mar 15 21:56:09 CET 2012 on sn-devel-104
2012-03-15s3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent ↵Michael Adam1-0/+13
process died. This applies to all child processes making use of reinit_after_fork(). It is implemented by establishing a pipe between parent and child. The child watches for EOF on the read end of the pipe, indidcating an exited parent. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-03-15s3: Use talloc_tos() in notify_send()Volker Lendecke1-6/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Mar 15 12:43:41 CET 2012 on sn-devel-104
2012-03-15s3: Fix lock ordering in notify_addVolker Lendecke1-13/+15
It's not necessary to keep the global notify record locked during the inotify and notify_onelevel.tdb operations. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-15s3: properly free the notify_onelevel recordVolker Lendecke1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-15s3: Replace some callers of cluster_id_equalVolker Lendecke1-4/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-15s3: Remove the separate server_id arg to notify_initVolker Lendecke3-4/+3
The server_id is tied to the messaging_context Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-15s3: Fix blank line endingsVolker Lendecke1-13/+13
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 15 10:59:46 CET 2012 on sn-devel-104
2012-03-14s3-printing: Check for browseable too.Andreas Schneider1-1/+6
2012-03-14s3:smb2_server: fix a compiler warningChristian Ambach1-2/+2
Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Wed Mar 14 16:06:48 CET 2012 on sn-devel-104
2012-03-14s3:smbd: also create ncalrpc/np directory before forking rpc daemonsStefan Metzmacher1-0/+13
After the fixes to directory_create_or_exist(), this should not be needed anymore, but lets try to make autobuild reliable first. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Mar 14 13:44:41 CET 2012 on sn-devel-104
2012-03-13Second part of fix for bug #7933 - samba fails to honor SEC_STD_WRITE_OWNER ↵Jeremy Allison1-4/+6
bit with the acl_xattr module. Error found by Andrew Bartlett <abartlet@samba.org> and Ricky Nance <ricky.nance@weaubleau.k12.mo.us>. Don't use a pointer when you really mean a bool flag. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Mar 13 21:56:15 CET 2012 on sn-devel-104
2012-03-11s3: Improve statvfs supportBrad Smith1-3/+8
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sun Mar 11 14:18:04 CET 2012 on sn-devel-104
2012-03-10tdb_wrap: Move to specific directory.Jelmer Vernooij1-1/+1
It's a bit confusing to mix low-level and high-level libraries. We had multiple libraries in one directory, and there were have circular dependencies with other libraries outside that directory (in this case, samba-hostconfig). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104
2012-03-10s3: Add smb_request_doneVolker Lendecke3-60/+98
This is used to enable async chained command sequences. A synchronous reply_xxx command does not need to take are anymore about and_x chaining. The async commands (pipe r/w at this moment) must do so however. When finished, they must inform the main chain engine that they are finished with a smb_request_done call. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 10 17:14:05 CET 2012 on sn-devel-104
2012-03-10s3: Remove unused smb_request->doneVolker Lendecke1-6/+0
2012-03-10s3: Remove unused smb_request->chain_outbufVolker Lendecke1-1/+0
2012-03-10s3: Remove "req_wct_ofs()"Volker Lendecke4-22/+2
This is fixed up in construct_reply_chain
2012-03-10s3: Fix the read&x offset within a chainVolker Lendecke1-0/+32
2012-03-10s3: Remove chain_replyVolker Lendecke6-289/+0
<insert your favourite tombstone ascii art here>
2012-03-10s3: Replace chain_replyVolker Lendecke2-3/+143
This is a new implementation of our andx handling code. The old code was quite involved in that it was called from within the reply_ handlers. This leads to pretty complex faking of smb_request structures to give them the same environment, independent of whether they are called directly or from within chain_reply. chain_reply needs to go because it blocks really async handling of chained requests.
2012-03-10s3: Add a new set of andx chain handling routinesVolker Lendecke2-0/+248
This is in preparation of getting rid of chain_reply.
2012-03-10s3: Make sure the andX chains are ended correctlyVolker Lendecke5-0/+33
Normally chain_reply took care of this. This will go away soon.
2012-03-10s3: Fix a 64-bit warningVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 10 15:27:09 CET 2012 on sn-devel-104
2012-03-10Ensure the right tsocket.h is included.Jeremy Allison1-1/+1
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 10 03:47:04 CET 2012 on sn-devel-104
2012-03-09Fix up Christian Ambach's multi-credit code - the CreditCharge field is a ↵Jeremy Allison1-2/+2
16-bit int read, not a 32-bit one.
2012-03-09s3:smb2_server validate message ids with largemtuChristian Ambach1-27/+56
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-09s3:smb2_server verify creditchargeChristian Ambach6-0/+37
for all requests that have max_???? checks, also do a check of the creditcharge the client has sent (when using largemtu) Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-09s3:smb2_server add function to verify creditchargeChristian Ambach2-0/+42
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-09s3:smb2_server: announce LargeMTU for SMB2.1Christian Ambach1-4/+27
Signed-off-by: Jeremy Allison <jra@samba.org>