summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* build: use only standard _FILE_OFFSET_BITS=64 macro for large filesAndrew Bartlett2012-04-051-145/+7
| | | | | | | | | (We also already use any other macro as set by getconf LFS_CFLAGS, and the standard AC_SYS_LARGEFILE macro in libreplace). This is instead of using the transitional *64 posix largefile API Andrew Bartlett
* 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-046-20/+74
| | | | | | | 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.
* build: Remove checks for krb5_decode_ap_req, free_AP_REQ and ↵Andrew Bartlett2012-04-032-65/+1
| | | | | | | | | KRB5_TICKET_HAS_KEYINFO Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Apr 3 19:19:33 CEST 2012 on sn-devel-104
* build: Remove unused check for HAVE_KRB5_TKT_ENC_PART2Andrew Bartlett2012-04-032-13/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-krb5 Remove unused get_kvno_from_ap_req()Andrew Bartlett2012-04-031-13/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-krb5 Remove unused get_enctype_from_ap_reqAndrew Bartlett2012-04-031-10/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-krb5: Remove unused smb_krb5_get_keyinfo_from_ap_req()Andrew Bartlett2012-04-032-30/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-krb5: Remove unused get_key_from_keytabAndrew Bartlett2012-04-031-59/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-krb5: remove unused unwrap_pac()Andrew Bartlett2012-04-032-49/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-krb5: remove unused get_auth_data_from_tktAndrew Bartlett2012-04-032-67/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-krb5: Remove unused get_authtime_from_tktAndrew Bartlett2012-04-032-10/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-krb5: Remove unused krb5_rd_req_return_keyblock_from_keytabAndrew Bartlett2012-04-032-63/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-krb5: Remove unused get_principal_from_tktAndrew Bartlett2012-04-032-10/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libads: Remove ads_verify_ticket() as it is now unusedAndrew Bartlett2012-04-034-790/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libads: Rework kerberos_return_pac() to use GENSEC for the server-sideAndrew Bartlett2012-04-031-22/+167
| | | | | | | | | This removes the last user of ads_verify_ticket(), and means that we only have one code path to verify an incoming krb5 (GSSAPI) ticket. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: Remove unused spnego_parse_krb5_wrap()Andrew Bartlett2012-04-032-45/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* build: Reduce deps of ntlm_authAndrew Bartlett2012-04-032-4/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlm_auth: use manage_gensec_request for squid-2.5-ntlmsspAndrew Bartlett2012-04-031-178/+9
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth: Order GENSEC mechs by priority, krb5 before NTLMSSPAndrew Bartlett2012-04-033-6/+10
| | | | | | | | | Otherwise, really simple clients (such as the current ntlm_auth gss-spnego client) will not select krb5. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlm_auth: add ntlm_auth_generate_session_info_pac()Andrew Bartlett2012-04-031-0/+144
| | | | | | Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlm_auth Use GENSEC for gss-spnego serverAndrew Bartlett2012-04-031-404/+390
| | | | | | | | | | This imports the gensec handling code from the source4 ntlm_auth, which will eventually be used for all the NTLMSSP and SPNEGO clients and servers but which is only used for gss-spnego for now. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Enhance the dbwrap needed x attempts msgVolker Lendecke2012-04-031-1/+5
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Apr 3 15:17:11 CEST 2012 on sn-devel-104
* s3-vfs: initial work on posix:eadb moduleAndrew Bartlett2012-04-033-1/+442
| | | | | | | | This is a module that, like vfs_xattr_tdb, stores extended attributes in a DB on disk. This uses the format needed to support the posix:eadb smb.conf option. Andrew Bartlett
* 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-032-10/+3
|
* s3: Notifies should never time outVolker Lendecke2012-04-021-0/+8
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Apr 2 12:31:17 CEST 2012 on sn-devel-104
* s3-aio-fork: Fix a segfault in vfs_aio_forkVolker Lendecke2012-03-311-7/+9
| | | | | | | | | | | | | | | | | | | | | | aio_suspend does not signal the main process with a signal, it just waits. The aio_fork module does not use the signal at all, it directly calls back into the main smbd by calling smbd_aio_complete_aio_ex. This is an abstraction violation, but the alternative would have been to use signals where they are not needed. However, in wait_for_aio_completion this bites us: With aio_fork we call handle_aio_completed twice on the same aio_ex struct: Once from the call to handle_aio_completion within the aio_fork module and once from the code in wait_for_aio_completion. This patch fixes it in a pretty bad way by introducing flag variables and more state. But the mid-term plan is to replace the posix aio calls from the vfs and do pread_send/recv and pwrite_send/recv at the vfs layer, so this will significantly change anyway. Thanks to Kirill Malkin <kirill.malkin@starboardstorage.com> for reporting this crash! Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 31 15:25:55 CEST 2012 on sn-devel-104
* s3-aio-fork: Fix aio_suspend event hierarchyVolker Lendecke2012-03-311-10/+8
| | | | | We end up here multiple times. There's no real point putting the events into the child struct, at the end of this routine we need to free them anyway.
* s3-aio-fork: Fix an alignment warning on OS/XVolker Lendecke2012-03-311-2/+2
|
* Make sure we claim that a DACL or SACL is present if the SD says soRichard Sharpe2012-03-311-2/+2
| | | | | Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Sat Mar 31 09:34:36 CEST 2012 on sn-devel-104
* Who would have guessed - checking returns from strlcat found a memory ↵Jeremy Allison2012-03-301-1/+1
| | | | overwrite bug :-).
* More strlcat/strlcpy truncate checks.Jeremy Allison2012-03-308-26/+94
|
* s3: Avoid a crash with debug level 10Volker Lendecke2012-03-301-1/+2
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 30 16:52:16 CEST 2012 on sn-devel-104
* 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.
* s3: Fix a valgrind errorVolker Lendecke2012-03-291-1/+8
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 29 15:50:13 CEST 2012 on sn-devel-104
* 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-2610-29/+41
| | | | | | | | | 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
* s3-make: Fix build with new smb2_session file.Jelmer Vernooij2012-03-261-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Mar 26 00:56:13 CEST 2012 on sn-devel-104
* smb2: Move smb2cli session setup code to cli_smb_common.Jelmer Vernooij2012-03-251-207/+0
|
* use usleep rather than sys_usleep in various places, in anticipation of ↵Jelmer Vernooij2012-03-246-39/+4
| | | | usleep moving to libreplace.
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-2445-93/+93
| | | | | | | | | 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
* adt_tree: Fix return types.Jelmer Vernooij2012-03-241-3/+3
|
* s3-waf: Use samba3-util library instead of lots of tiny libs.Jelmer Vernooij2012-03-241-52/+18
| | | | | | | | The smaller libraries are currently all trivial in size and don't have any dependencies other than samba-util. Having lots of small private libraries is a pain for packaging, and there isn't much advantage in this.
* adt_tree: Avoid WERROR.Jelmer Vernooij2012-03-243-5/+8
|