summaryrefslogtreecommitdiffstats
path: root/source3/smbd/trans2.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Change estimate_ea_size() to correctly estimate the EA size over SMB2.Jeremy Allison2013-04-021-0/+20
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@suse.de>
* Modify fill_ea_chained_buffer() to be able to do size calculation only, no ↵Jeremy Allison2013-04-021-12/+15
| | | | | | | marshalling. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@suse.de>
* Ensure we can never return an uninitialized EA list.Jeremy Allison2013-04-021-1/+2
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@suse.de>
* Fix bug 9519 - Samba returns unexpected error on SMB posix open.Jeremy Allison2013-02-121-2/+9
| | | | | | | | | | | Explicitly ignore bare O_EXCL flags instead of returning INVALID_PARAMETER. That's what the Linux kernel does. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Jeff Layton <jlayton@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Feb 12 22:59:21 CET 2013 on sn-devel-104
* s3: Make SMB2_GETINFO multi-volume aware.Ira Cooper2013-02-081-9/+18
| | | | | | | | | | | | Not all shares are a single volume. Some actually expose multiple volumes under a single share. In these cases showing the amount of space free as the space free at the base of the directory heirarchy is wrong. Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Feb 8 21:44:37 CET 2013 on sn-devel-104
* Fix bug #9571 - Unlink after open causes smbd to panic.Pavel Shilovsky2013-01-281-3/+3
| | | | | | | | | s3:smbd: fix wrong lock order in posix unlink Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Fix bug #9460 - Samba 3.6.x and Master respond incorrectly to ↵Richard Sharpe2012-12-061-1/+22
| | | | | | | | | | | FILE_STREAM_INFO requests. Ensure we check the buffer size correctly. Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Dec 6 01:31:08 CET 2012 on sn-devel-104
* smbd: Add mem_ctx to sys_acl_init() and all callersAndrew Bartlett2012-10-111-4/+8
| | | | | | | | | | This changes from allocation on NULL to allocation on the supplied memory context. Currently that supplied context is talloc_tos() at the the final consumer of the ACL. Andrew Bartlett
* Remove all uses of ↵Jeremy Allison2012-10-041-12/+2
| | | | | | lp_security_mask/lp_force_security_mode/lp_dir_security_mask/lp_force_dir_security_mode and replace with the normal masks. Now these parameters can be removed.
* Add bool use_privs parameter to smbd_check_access_rights()Jeremy Allison2012-09-141-0/+1
| | | | | If this is set we should use it in preference to blindly assuming root can do anything. Currently set to 'false' in (most) callers.
* s3-smbd: ensure we give appropriate errors for EA requests on streamsAndrew Bartlett2012-08-201-35/+77
|
* s3-smbd: Do not look for EA information on a streamAndrew Bartlett2012-08-201-6/+8
| | | | | | | | | The estimated EA size needs to be of the main file. However, the fsp may point to the stream, so we need to ignore it if this is the case. This may mean we estimate wrong if there has been a rename. Andrew Bartlett
* s3-smbd: Push smb_fname into estimate_ea_sizeAndrew Bartlett2012-08-201-12/+20
| | | | | | | | | This ensures that we return the ea size of the stream, not the overall file. This is important as if there is an EA on the main file, the raw.streams test was failing. Andrew Bartlett
* s3:smbd: don't disconnect the client when a share has "smb encrypt = required"Stefan Metzmacher2012-08-171-4/+2
| | | | | | | | It's not the client fault, if he doesn't know that encryption is required. We should just return ACCESS_DENIED and let the client work on other shares and open files on the current SMB connection. metze
* s3:smbd: lp_smb_encrypt() returns SMB_SIGNING_* valuesStefan Metzmacher2012-08-171-5/+5
| | | | metze
* s3:smbd: make use of ENCRYPTION_REQUIRED()Stefan Metzmacher2012-08-171-2/+2
| | | | metze
* s3-sysacls: Remove sys_acl_free_qualifier() as it is a no-opAndrew Bartlett2012-08-151-2/+0
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 15 05:23:18 CEST 2012 on sn-devel-104
* s3-sysacls: Remove sys_acl_free_acl() and replace with TALLOC_FREE()Andrew Bartlett2012-08-151-8/+8
|
* s3-smbd: Call sys_acl_free_acl() directly rather than via the VFSAndrew Bartlett2012-08-151-8/+8
| | | | | | | This will allow us to remove the struct smb_acl_t manipuations from the VFS layer, which will be reduced to handling the get/set functions. Andrew Bartlett
* s3-smbd: Call sys_acl_free_qualifier() directly rather than via the VFSAndrew Bartlett2012-08-151-2/+2
| | | | | | | This will allow us to remove the struct smb_acl_t manipuations from the VFS layer, which will be reduced to handling the get/set functions. Andrew Bartlett
* s3-smbd: Call sys_acl_get_entry() directly rather than via the VFSAndrew Bartlett2012-08-151-2/+2
| | | | | | | This will allow us to remove the struct smb_acl_t manipuations from the VFS layer, which will be reduced to handling the get/set functions. Andrew Bartlett
* s3-smbd: Call sys_acl_get_qualifier() directly rather than via the VFSAndrew Bartlett2012-08-151-2/+2
| | | | | | | This will allow us to remove the struct smb_acl_t manipuations from the VFS layer, which will be reduced to handling the get/set functions. Andrew Bartlett
* s3-smbd: Call sys_acl_get_tagtype() directly rather than via the VFSAndrew Bartlett2012-08-151-1/+1
| | | | | | | This will allow us to remove the struct smb_acl_t manipuations from the VFS layer, which will be reduced to handling the get/set functions. Andrew Bartlett
* s3-smbd: Call sys_acl_get_permset() directly rather than via the VFSAndrew Bartlett2012-08-151-1/+1
| | | | | | | This will allow us to remove the struct smb_acl_t manipuations from the VFS layer, which will be reduced to handling the get/set functions. Andrew Bartlett
* s3-smbd: Call sys_acl_get_perm() directly rather than via the VFSAndrew Bartlett2012-08-151-3/+3
| | | | | | | This will allow us to remove the struct smb_acl_t manipuations from the VFS layer, which will be reduced to handling the get/set functions. Andrew Bartlett
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-181-19/+21
| | | | | | | | | | They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* Remove unused code now we set the correct command codes.Jeremy Allison2012-06-191-6/+0
|
* Same fix as bug 8989 - Samba 3.5.x (and probably all other versions of ↵Jeremy Allison2012-06-161-0/+9
| | | | | | | | | Samba) does not send correct responses to NT Transact Secondary when no data and no params for the Trans2 calls. See MS-CIFS 2.2.4.47.2 for details. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Jun 16 07:59:19 CEST 2012 on sn-devel-104
* s3:smbd: change trans2.c to use fsp_fnum_dbg() for fsp->fnum logging.Michael Adam2012-06-151-17/+17
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: use FNUM_FIELD_INVALID instead of literal -1Michael Adam2012-06-151-5/+9
| | | | | | This is in preparation of changing fnum to uint64_t Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: use print_spool_rap_jobid() in call_trans2ioctl()Stefan Metzmacher2012-06-061-5/+3
| | | | metze
* s3: Check for serverid_exists in smb_posix_unlinkVolker Lendecke2012-05-251-0/+3
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd/msdfs: pass allow_broken_path to resolve_dfspath_wcard()Stefan Metzmacher2012-05-241-0/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu May 24 16:14:01 CEST 2012 on sn-devel-104
* s3: Revert the serverid changes, they need more workVolker Lendecke2012-05-181-3/+0
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri May 18 13:12:14 CEST 2012 on sn-devel-104
* s3: Check for serverid_exists in smb_posix_unlinkVolker Lendecke2012-05-171-0/+3
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Make SMB_QUERY_FILE_UNIX_BASIC's devno work for filesVolker Lendecke2012-05-141-2/+9
| | | | | According to susv3, st_rdev is valid exactly for char and block devices. Normal files have st_dev set.
* s3-smbd: Use security_session_user_level() rather than nt_token_check_sid()Andrew Bartlett2012-05-021-13/+1
| | | | | | | | | | This allows the unix.whoami test to pass when configured as part of the AD DC. The struct auth_session_info is slightly different in the AD DC configuration when using auth_samba4. In particular, there is a distinction between Guest and Anonymous logins. Andrew Bartlett
* Ensure we have 12 bytes of data for a SMB_SET_CIFS_UNIX_INFO call. Add debug.Jeremy Allison2012-04-181-1/+4
|
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-061-6/+6
| | | | | | | | | 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
* build: #ifdef LARGE_SMB_OFF_T as off_t is now always 64 bitsAndrew Bartlett2012-04-051-29/+0
|
* Second part of bugfix for bug #8837 - smbd crashes when deleting directory ↵Jeremy Allison2012-04-041-0/+1
| | | | | | | 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.
* Add open_dir_with_privilege() to ensure we're opening the correct directory ↵Jeremy Allison2012-03-011-0/+1
| | | | | | | when doing backup requests. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 1 03:50:40 CET 2012 on sn-devel-104
* Implement FLAG_TRANS2_FIND_BACKUP_INTENT for trans2 with privileges.Jeremy Allison2012-02-291-4/+46
|
* Make dptr_path() and dptr_wcard() const.Jeremy Allison2012-02-241-3/+1
|
* s3: get_share_mode_lock->get_existing_share_mode_lockVolker Lendecke2012-02-191-1/+1
|
* Fix a bunch of "unused variable" warnings.Jeremy Allison2012-02-181-2/+0
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
* Another fix for bug #8556 - ACL permissions ignored when SMBsetatr is requested.Jeremy Allison2012-01-241-5/+0
| | | | | | | | | Remove erroneous check on FILE_WRITE_ATTRIBUTES when changing POSIX permissions - this isn't an attribute set call (unless you're storing attributes in POSIX permissions, which is not recommended). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Jan 24 00:44:24 CET 2012 on sn-devel-104
* s3: Put an indirection layer into share_mode_lockVolker Lendecke2012-01-121-2/+2
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Introduce get_share_mode_lock_fresh()Volker Lendecke2012-01-121-2/+1
| | | | | | | | This slightly simplifies the code path for all callers which assume that a share mode exists already. Only the callers in open_file_ntcreate and open_directory will ever create new share modes. Signed-off-by: Jeremy Allison <jra@samba.org>
* Restrict UCF_UNIX_NAME_LOOKUP (symlink allowed) to restricted set of calls.Jeremy Allison2011-12-161-1/+4
|