summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Move the counting of outstanding_aio_calls into the lifecycle of the ↵Jeremy Allison2012-04-121-6/+2
| | | | | | | | | aio_extra struct. This way we can't end up with a mismatch between outstanding events and the counter. We may still have problems with canceling and not correctly freeing the aio struct, but at least the counter won't get out of sync anymore.
* s3: Fix a segfault with debug level 3 on SolarisVolker Lendecke2012-04-121-1/+2
| | | | printf can not deal with NULL strings
* s3:smbd only care about missing level2 support if kernel oplocks are enabledChristian Ambach2012-04-111-4/+10
| | | | | | | | | if kernel oplocks are not enabled for that share, we can grant level2 oplocks Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 11 22:45:21 CEST 2012 on sn-devel-104
* s3:smbd only initialize kernel oplocks if they are enabled for a shareChristian Ambach2012-04-111-0/+4
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smbd add seperate function to initialize kernel oplocksChristian Ambach2012-04-112-3/+8
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:param convert kernel oplocks to share parameterChristian Ambach2012-04-111-1/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Use talloc_get_size instead of strlenVolker Lendecke2012-04-101-1/+1
| | | | | | | | We've just talloc_asprintf'ed the fullpath, so talloc_get_size knows the strlen. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Apr 10 13:20:22 CEST 2012 on sn-devel-104
* s3: Move the aio signal init to the vfs moduleVolker Lendecke2012-04-092-21/+8
| | | | | | On platforms that don't have an RT signal space, signal initialization fails. aio_fork and aio_pthread don't need the signal, so this would block them from running as well.
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-0610-90/+90
| | | | | | | | | Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
* s3-vfs: Remove unused lremovexattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-051-7/+0
| | | | | | | If this is ever needed again, it would be more appropriate as an options argument to removexattr. Andrew Bartlett
* s3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-051-9/+0
| | | | | | | If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
* s3-vfs: Remove unused llistxattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-051-7/+0
| | | | | | | If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
* s3-vfs: Remove unused lgetxattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-051-8/+0
|
* build: Remove SMB_F* locking definesAndrew Bartlett2012-04-051-2/+2
|
* build: Remove SMB_STRUCT_DIR defineAndrew Bartlett2012-04-053-12/+12
|
* build: Remove SMB_STRUCT_DIRENT defineAndrew Bartlett2012-04-051-2/+2
|
* build: Remove sys_fopen wrapperAndrew Bartlett2012-04-051-1/+1
|
* build: Remove sys_open wrapperAndrew Bartlett2012-04-052-3/+3
|
* build: #ifdef LARGE_SMB_OFF_T as off_t is now always 64 bitsAndrew Bartlett2012-04-052-82/+0
|
* Third part of fix for bug #8837 - smbd crashes when deleting directory and ↵Jeremy Allison2012-04-051-1/+1
| | | | | | | | | | veto files are enabled. Use correct check to see if veto files has been enabled. Even if not set lp_veto_files() returns a valid string address (to a '\0' character). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 5 01:36:04 CEST 2012 on sn-devel-104
* Second part of bugfix for bug #8837 - smbd crashes when deleting directory ↵Jeremy Allison2012-04-043-10/+22
| | | | | | | and veto files are enabled. Store the 'struct security_token' as well as the 'struct security_unix_token' inside the locking db when setting a delete on close.
* First part of fix for bug 8837 - smbd crashes when deleting directory and ↵Jeremy Allison2012-04-042-2/+2
| | | | | | veto files are enabled. Add some const to the sec_ctx code.
* s3-vfs: Use new smb_load_module for better diagnosticsAndrew Bartlett2012-04-031-1/+1
|
* s3-smbd: Inline init_modules() into only callerAndrew Bartlett2012-04-031-1/+3
|
* Start to add truncate checks on all uses of strlcpy(). Reading lwnJeremy Allison2012-03-291-1/+3
| | | | | | | has it's uses :-). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 29 20:48:15 CEST 2012 on sn-devel-104
* Based on code from Richard Sharpe <realrichardsharpe@gmail.com>,Jeremy Allison2012-03-291-1/+4
| | | | ensure we don't crash on a NULL DACL.
* Add DEBUG statements to show when access has been denied and why.Richard Sharpe2012-03-281-0/+2
| | | | | Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Wed Mar 28 07:07:26 CEST 2012 on sn-devel-104
* s3: Pass filters explicitly through vfs notify watchVolker Lendecke2012-03-264-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
* s3: Fix a typoVolker Lendecke2012-03-261-1/+1
|
* s3: Rename a variable in inotify_watch for clarityVolker Lendecke2012-03-261-5/+5
|
* s3: Pass "filter" instead of "notify_entry" to inotify_mapVolker Lendecke2012-03-261-4/+4
| | | | This makes the potential modification a bit more obvious
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-248-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
* lib/util: Remove dummy wrappers for setpwent/getpwent/endpwent.Jelmer Vernooij2012-03-241-3/+3
|
* s3: Remove the sys_notify dependency from notify_internalVolker Lendecke2012-03-235-63/+37
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 23 12:12:51 CET 2012 on sn-devel-104
* s3:vfs_gpfs: Export disk_norm functionChristof Schmitt2012-03-222-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.
* s3: Fix smbd -iVolker Lendecke2012-03-221-9/+11
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 22 18:40:02 CET 2012 on sn-devel-104
* s3: Remove an unused structure fieldVolker Lendecke2012-03-221-2/+0
|
* Fix bug 8823 - source3/smbd/process.c:smb_dump seems to have a memory leak.Jeremy Allison2012-03-221-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
* s3: Move the notify_ctx to the smbd_server_connectionVolker Lendecke2012-03-214-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
* s3: Remove "conn" param from notify_init()Volker Lendecke2012-03-213-11/+5
|
* s3: Remove "conn" param from sys_notify_context_createVolker Lendecke2012-03-213-5/+3
|
* s3: Remove "conn" from sys_notify_contextVolker Lendecke2012-03-211-1/+0
|
* s3: Pass "conn" to sys_notify_watch()Volker Lendecke2012-03-213-2/+5
|
* s3: Pass "conn" to notify_add()Volker Lendecke2012-03-213-3/+6
|
* s3: Pass "path" through vfs_notify_watchVolker Lendecke2012-03-215-6/+11
|
* s3-notify: Lift "/." handling up one levelVolker Lendecke2012-03-162-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
* s3-notify: Simplify if-expressionsVolker Lendecke2012-03-161-16/+13
|
* s3:smbd: call file_close_user() before removing tree connects in ↵Stefan Metzmacher2012-03-152-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
* s3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent ↵Michael Adam2012-03-151-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>
* s3: Use talloc_tos() in notify_send()Volker Lendecke2012-03-151-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