summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* Factor out the code checking if a parent should override DELETE_ACCESS into ↵Jeremy Allison2011-10-261-9/+31
| | | | | | | a function. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 26 23:15:05 CEST 2011 on sn-devel-104
* Remove another level of indentation - deal with !NT_STATUS_OK individually.Jeremy Allison2011-10-261-65/+63
|
* Add early return on stat open without O_CREAT if file doesn't exist.Jeremy Allison2011-10-261-71/+74
| | | | Reduces one level of indentation.
* libcli/smb: move smb_signing.[ch] to the toplevelStefan Metzmacher2011-10-251-1/+1
| | | | metze
* Third part of fix for bug #8541 - readlink() on Linux clients fails if the ↵Jeremy Allison2011-10-221-2/+1
| | | | | | | | | symlink target is outside of the share. Missed passing ucf_flags instead of hard coded flags in findfirst call. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 22 06:30:16 CEST 2011 on sn-devel-104
* Second part of fix for bug #8541 - readlink() on Linux clients fails if the ↵Jeremy Allison2011-10-223-2/+12
| | | | | | | symlink target is outside of the share. The statcache has to do lstat instead of stat when returning cached posix pathnames.
* Fix bug #8541 - readlink() on Linux clients fails if the symlink target is ↵Jeremy Allison2011-10-223-11/+42
| | | | | | | | | | outside of the share. The key is to only allow the lookup to succeed if it's a UNIX level lookup or readlink, but disallow all other operations. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 22 01:37:41 CEST 2011 on sn-devel-104
* libcli/smb: move smb_seal.c to the toplevelStefan Metzmacher2011-10-211-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Oct 21 10:22:39 CEST 2011 on sn-devel-104
* s3-seal Remove struct smb_srv_trans_enc_ctxAndrew Bartlett2011-10-213-104/+54
| | | | | | | | | | | | | This structure added no value, particularly after the move to gensec. It was added at a time when auth_ntlmssp_state was not available in the client. This changed a while back (the wrapper was extended with client calls), and the move to gensec again reinforced that we do not need the extra complexity. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlmssp Remove references to auth_ntlmssp_context from the smb sealing codeAndrew Bartlett2011-10-211-15/+24
| | | | | | Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlmssp Remove auth_ntlmssp_want_feature()Andrew Bartlett2011-10-213-7/+7
| | | | | | | | We now just call the gensec_want_feature() directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlmssp Remove auth_ntlmssp_negotiated_sign() and ↵Andrew Bartlett2011-10-211-2/+2
| | | | | | | | | | auth_ntlmssp_negotiated_seal() We now just call the gensec_have_feature() directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlmssp Remove auth_ntlmssp_update wrapperAndrew Bartlett2011-10-214-27/+29
| | | | | | | | We now just call gensec_update directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth remove auth_ntlmssp_session_info()Andrew Bartlett2011-10-212-8/+9
| | | | | | | | Instead, call gensec_session_info() directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd/seal: pass talloc_tos() auth_ntlmssp_update(), because we free a few ↵Stefan Metzmacher2011-10-211-1/+1
| | | | | | lines later metze
* Refactor to create check_parent_access() which can be called for file ↵Jeremy Allison2011-10-201-23/+64
| | | | | | | creation too. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Oct 20 20:29:22 CEST 2011 on sn-devel-104
* Make mkdir_internal() check the parent ACL for SEC_DIR_ADD_SUBDIR rights.Jeremy Allison2011-10-201-2/+33
|
* Fix error return to be NT_STATUS_NOT_A_DIRECTORY.Jeremy Allison2011-10-201-2/+2
|
* Make use of the "dir_exists" we already have on directory open.Jeremy Allison2011-10-201-8/+28
|
* s3: Remove duplicate fsctl function definitionsDavid Disseldorp2011-10-191-1/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-smbd Give the nt error string when failing to set up encrypted transportAndrew Bartlett2011-10-181-3/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* ntlmssp: Move ntlmssp code to auth/ntlmsspAndrew Bartlett2011-10-183-3/+3
| | | | | | | | | This brings in the code from both libcli/auth and source4/auth/ntlmssp. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* First part of fix for bug #8419 - Make VFS op "streaminfo" stackable.Frank Lahm2011-10-177-13/+33
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 17 21:39:32 CEST 2011 on sn-devel-104
* s3: remove some dead prototypes.Günther Deschner2011-10-141-2/+0
| | | | Guenther
* Add support for VFS op streaminfo chaining in all relevant VFS modules.Frank Lahm2011-10-145-10/+10
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 14 03:26:06 CEST 2011 on sn-devel-104
* lib/util: Add back control of mmap and hash size in tdb for top level buildAndrew Bartlett2011-10-131-2/+11
| | | | | | | | This passes down a struct loadparm_context to allow these parameters to be checked. This may be s3 or s4 context, allowing the #if _SAMBA_BUILD_ macro to go away safely. Andrew Bartlett
* libcli/auth: Provide a struct loadparm_context to schannel callsAndrew Bartlett2011-10-131-1/+4
| | | | | | This will allow us to pass this down to the tdb_wrap layer. Andrew Bartlett
* s3:smb2_server: get/set info are limited by max_trans size (bug #8473)Stefan Metzmacher2011-10-132-0/+11
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Oct 13 03:32:02 CEST 2011 on sn-devel-104
* s3:smb2_server: reject writes larger then the negotiated max_write size (bug ↵Stefan Metzmacher2011-10-131-2/+0
| | | | | | #8473) metze
* s3:smb2_server: remember the max_{trans,read,write} sizes we negotiated (bug ↵Stefan Metzmacher2011-10-136-8/+12
| | | | | | | | | #8473) We should enforce the negotiated max sizes instead of the lp_smb2_max_*() sizes. metze
* s3:smbcontrol: let smbd pass the idmap msg to its children for convenienceGregor Beck2011-10-123-4/+36
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3: factor out messaging_send_to_children()Gregor Beck2011-10-122-8/+19
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3: fix id_cache_kill to delete the the id-mappig from cachesGregor Beck2011-10-121-0/+1
| | | | | | | | The intendet and documented behavior of smbcontrol smbd idmap kill is to delete the mapping from caches and additionally kill the smbd if an affected id is in use. Signed-off-by: Michael Adam <obnox@samba.org>
* s3:smbd: convert notify db to use dbwrap wrapper functionsMichael Adam2011-10-111-28/+30
| | | | Avoid direct use of the db_record and db_context structs.
* s3:smbd: convert session.c to use dbwrap wrapper functions onlyMichael Adam2011-10-111-6/+12
| | | | Avoid direct use of the db_record and db_context structs.
* s3:smbd: convert connections.c to use only dbrwap wrapper functionsMichael Adam2011-10-111-3/+3
| | | | Avoid direct use of the db_record and db_context structs.
* s3:sessionid: use dbwrap_travers_read() in sessionid_travers_read()Michael Adam2011-10-111-3/+3
| | | | | This also changes the return code of sessionid_traverse_read() to NTSTATUS. It also uses traverse_read instead of traverse.
* s3:smb2_create: fix allocation size return value when opening existing filesChristian Ambach2011-10-101-2/+2
| | | | | | | | | | | at least on GPFS, using the stat information gave wrong results example: FileInfo gave 12582912000, Create Response gave 25769803776000 This makes the create part use the same method as fileinfo, matching up the replies of both calls Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 10 21:49:53 CEST 2011 on sn-devel-104
* s3:msdfs: removed unused variablesStefan Metzmacher2011-10-081-209/+0
| | | | metze
* s3:msdfs: implement setup_dfs_referral() on top of SMB_VFS_GET_DFS_REFERRALS()Stefan Metzmacher2011-10-081-85/+31
| | | | metze
* s3:vfs: add SMB_VFS_GET_DFS_REFERRAL() hooksStefan Metzmacher2011-10-081-0/+7
| | | | metze
* s3: Use the uid_wrapperVolker Lendecke2011-10-061-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org>
* Fix bug #8507 - smbd doesn't correctly honor the "force create mode" bits ↵Jeremy Allison2011-10-051-6/+6
| | | | | | | | | from a cifsfs create. Don't manipulate the new_dos_attributes bits until we know it's not a POSIX open. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 5 01:19:17 CEST 2011 on sn-devel-104
* Move FSCTL handling into the VFS. Initial code changes. Passes smbtorture ↵Richard Sharpe2011-10-012-335/+49
| | | | NTTRANS-FSCTL. Test added to selftests.
* Fix bug #8493 - DFS breaks zip file extracting unless "follow symlinks = no" setJeremy Allison2011-10-011-11/+2
| | | | | | | | If a client sends a mangled name as part of a DFS path, use the post-mangled name for the pathname walk, not the mangled name. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 1 00:45:59 CEST 2011 on sn-devel-104
* s3-smb2_server: fix ioctl InputOffset checkingDavid Disseldorp2011-09-291-1/+10
| | | | | | | Currently the InputOffset is always check to point to the input data buffer, regardless of whether input data is present. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-smb2_server: SMB2_OP_IOCTL doesn't require at least 1 dyn byteDavid Disseldorp2011-09-291-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb2_server: SMB2_OP_CANCEL requests don't have to be signedStefan Metzmacher2011-09-291-0/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 29 02:58:41 CEST 2011 on sn-devel-104
* s3: Remove the smbd_server_conn ref from create_junctionVolker Lendecke2011-09-262-2/+4
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Sep 26 16:33:30 CEST 2011 on sn-devel-104
* s3: Remove the smbd_server_conn ref from setup_dfs_referralVolker Lendecke2011-09-261-1/+1
|