summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* s3:vfs: add durable VFS operationsMichael Adam2012-09-081-0/+34
| | | | | | This allows a VFS module to implement durable handles in different ways. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smbd: add disconnected checks to the open code.Stefan Metzmacher2012-09-081-0/+31
| | | | | | (delay_for_batch_oplocks, open_mode_check, and delay_for_exclusive_oplocks) Pair-Programmed-With: Michael Adam <obnox@samba.org>
* s3:smbd: also close durable file handles in a tdisMichael Adam2012-09-081-2/+9
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smbXsrv_open: add smb2srv_open_recreate() to support durable handlesStefan Metzmacher2012-09-082-1/+210
| | | | metze
* s3: Fix a panic when shutting downVolker Lendecke2012-09-081-10/+32
| | | | | | | | | | | | | | | When a client disconnects while we have aio open, there is no close request that cleans up. We can't send out the replies anymore, so just drop the aio requests that are pending. Found using the new python lib writing multiple files simultaneously TODO: check tdis and logoff Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Sep 8 01:27:34 CEST 2012 on sn-devel-104
* s3-smbd: Remove OSF1 support from old (pre-sysquotas) codeBjörn Jacke2012-09-071-65/+0
| | | | "recent" Tru64 releases had QUOTACTL_4B support
* s3:quota: don't force the block size to 512Björn Jacke2012-09-061-3/+0
| | | | | there is no point in forcing the block size to 512 when curblocks is 1. This will only lead to false quota reporting. See bug #3272
* s3-smbd: Remove remaining references to removed OS support in old-style ↵Andrew Bartlett2012-09-061-6/+6
| | | | | | | | | quota code Signed-off-by: Björn Jacke <bj@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Sep 6 10:47:18 CEST 2012 on sn-devel-104
* s3-smbd: Remove IRIX support from old (pre-sysquotas) codeAndrew Bartlett2012-09-061-129/+0
| | | | | | | | This should be essentially dead code, as while it is possible to disable sysquotas, the sysquotas has since 2003 supported the 4A varient used on IRIX. Andrew Bartlett Signed-off-by: Björn Jacke <bj@sernet.de>
* s3-smbd: Remove HPUX support from old (pre-sysquotas) codeAndrew Bartlett2012-09-061-19/+0
| | | | | | | | This should be essentially dead code, as while it is possible to disable sysquotas, the sysquotas has since 2003 supported the 4A varient used on HPUX. Andrew Bartlett Signed-off-by: Björn Jacke <bj@sernet.de>
* s3-smbd: Remove BSD support from old (pre-sysquotas) codeAndrew Bartlett2012-09-061-226/+3
| | | | | | | | | | | | This is essentially dead code, as while it is possible to disable sysquotas, the default for BSD is now to use sysquotas with the addition of 4B support via the recent Darwin patch by James Peach. NFS support has been in sysquotas for quite some time now. Andrew Bartlett Signed-off-by: Björn Jacke <bj@sernet.de>
* s3-smbd: Remove Linux support from old (pre-sysquotas) codeAndrew Bartlett2012-09-061-438/+1
| | | | | | | | | This is essentially dead code, as while it is possible to disable sysquotas, the default for Linux has been to use sysquotas for quite some time now. Andrew Bartlett Signed-off-by: Björn Jacke <bj@sernet.de>
* build: Remove Unicos support (quota in particular)Andrew Bartlett2012-09-061-89/+0
| | | | | | | | | Unicos machines are long gone now (Cray now make Linux compute nodes), so remove the quota support. Andrew Bartlett Signed-off-by: Björn Jacke <bj@sernet.de>
* Remove an unncessary FTRUNCATE call in the open path. We can rely on O_TRUC.Jeremy Allison2012-09-051-29/+1
| | | | Suggested by Volker.
* s3:smb2_create: check for SMB2_CREATE_TAG_DHNC firstStefan Metzmacher2012-09-051-43/+14
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Sep 5 12:27:25 CEST 2012 on sn-devel-104
* s3: Slightly simplify fd_open_atomicVolker Lendecke2012-09-051-8/+7
| | | | | | | | | Replace an if-statement by a direct assignment Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Sep 5 01:56:46 CEST 2012 on sn-devel-104
* s3: Put a comment into the right placeVolker Lendecke2012-09-041-4/+5
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Factor out disposition_to_open_flagsVolker Lendecke2012-09-041-24/+57
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Factor out calculation of clear_adsVolker Lendecke2012-09-041-5/+17
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Slightly simplify open_file_ntcreateVolker Lendecke2012-09-041-5/+5
| | | | | | We have not set flags2 before, so do direct assignment and not |= Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Make "open_match_attributes" staticVolker Lendecke2012-09-042-12/+6
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smbd: in sys_disk_free(), improve a debug messageMichael Adam2012-09-041-1/+1
|
* s3:smbd: in sys_disk_free(), improve a debug messageMichael Adam2012-09-041-1/+1
|
* s3:smbd: in sys_disk_free(), fix line length and indentation of debug statementMichael Adam2012-09-041-2/+3
|
* s3:smbd: in sys_disk_free(), fix a debug messageMichael Adam2012-09-041-1/+1
|
* s3: remove some duplicate quota codeBjörn Jacke2012-09-021-27/+12
|
* s3: Make an if statement a bit easier to readVolker Lendecke2012-09-011-2/+3
| | | | | | | | | Fix indentation a bit Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Sep 1 07:07:12 CEST 2012 on sn-devel-104
* Change the S3 fileserver over to se_file_access_check().Jeremy Allison2012-08-311-6/+9
| | | | | Don't set the priv_open_requested yet until the open-for-backup request is correctly passed in.
* Windows does canonicalization of inheritance bits. Do the same.Jeremy Allison2012-08-301-0/+35
| | | | | | | | | | | | | We need to filter out the SEC_DESC_DACL_AUTO_INHERITED|SEC_DESC_DACL_AUTO_INHERIT_REQ bits. If both are set we store SEC_DESC_DACL_AUTO_INHERITED as this alters whether SEC_ACE_FLAG_INHERITED_ACE is set when an ACE is inherited. Otherwise we zero these bits out. See: http://social.msdn.microsoft.com/Forums/eu/os_fileservices/thread/11f77b68-731e-407d-b1b3-064750716531 for details.
* Change the other two places where we set a security descriptor given by the ↵Jeremy Allison2012-08-301-5/+1
| | | | | | client to got through set_sd(), the canonicalize sd function.
* Re-add set_sd(), called from set_sd_blob(). Allows us to centralize all ACL ↵Jeremy Allison2012-08-302-14/+28
| | | | canonicalization.
* Rename set_sd() to set_sd_blob() - this describes what it does.Jeremy Allison2012-08-303-6/+6
|
* s3-smbd: Fix flooding the logs with records we don't find in pcap.Andreas Schneider2012-08-281-1/+1
| | | | | Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Aug 28 16:38:55 CEST 2012 on sn-devel-104
* s3-vfs: Indicate the symlink destination when failing check_reduced_nameAndrew Bartlett2012-08-281-2/+2
|
* s3-smbd: Add security_info_wanted argument to get_nt_acl_no_snumAndrew Bartlett2012-08-233-6/+6
| | | | | | | I need to get at the owner, group, DACL and SACL when testing correct ACL storage. Andrew Bartlett
* s3-pysmbd: Fix return type of smbd.get_nt_aclAndrew Bartlett2012-08-231-1/+1
| | | | | | The security_ prefix is stripped off in the python bindings. Andrew Bartlett
* s3-smbd: Add talloc_stackframe() to get_nt_acl_no_snum()Andrew Bartlett2012-08-231-3/+8
| | | | | | This is required because the functions it calls use talloc_tos(). Andrew Bartlett
* param: Add startup checks for valid server role/binary combinationsAndrew Bartlett2012-08-231-0/+7
| | | | | | | This should eliminate confusion from our users about what they can expect to successfully run. Andrew Bartlett
* s3-pysmbd: Fix error messageAndrew Bartlett2012-08-231-2/+2
|
* s3-pysmbd: Allow a mode to be specified for the simple ACLAndrew Bartlett2012-08-231-27/+32
| | | | | | The additional group for the ACL is now optional. Andrew Bartlett
* s3:smb2_break: encrypt OPLOCK BREAK notificationsStefan Metzmacher2012-08-233-18/+107
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Aug 23 10:01:14 CEST 2012 on sn-devel-104
* s3:smb2_server: use smbXsrv_session->nonce_*Stefan Metzmacher2012-08-232-25/+27
| | | | metze
* s3:smb2_server: remove dump_data() from smbd_smb2_request_pending_timer()Stefan Metzmacher2012-08-231-1/+0
| | | | | | This was just for debugging... metze
* s3-pysmbd: Correct the python type for smb_acl_tAndrew Bartlett2012-08-221-2/+2
| | | | | | | The t is weird, but the python bindings trim the traditional IDL name prefix of each element, as it is usually rudundent. Andrew Bartlett
* s3-pysmbd: Add get/set functions for the posix ACL layerAndrew Bartlett2012-08-211-0/+89
| | | | | | | These will be used to verify that an ACL set as an NT ACL creates the correct posix ACL. Andrew Bartlett
* s3-pysmbd: Correct comments in python VFS bindingsAndrew Bartlett2012-08-211-2/+2
|
* s3-pysmbd: Add hook for a VFS chown()Andrew Bartlett2012-08-211-0/+53
|
* 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