summaryrefslogtreecommitdiffstats
path: root/source3/include/smb.h
Commit message (Collapse)AuthorAgeFilesLines
* s3-netlogon: remove global include of netlogon.h.Günther Deschner2010-08-061-1/+0
| | | | | | | This reduces precompiled headers by another 4 MB and also slightly speeds up the build. Guenther
* s3: remove global include of samr.hGünther Deschner2010-08-061-1/+0
| | | | Guenther
* s3-build: remove global include of krb5pac.h.Günther Deschner2010-08-061-1/+2
| | | | | | Put in samr and netlogon, as they were pulled in via krb5pac.h. Guenther
* s3-popt: Only include popt-common.h when needed.Andreas Schneider2010-08-051-2/+0
|
* s3-build: avoid to globally include printing and spoolss headers.Günther Deschner2010-07-311-1/+0
| | | | | | This shrinks precompiled headers by 3MB and will slightly speed up any build. Guenther
* s3-printing: Handled case when smbd spools a file on behalf of spoolss.Simo Sorce2010-07-271-2/+17
|
* s3-smbd: Added code to print via spoolss.Simo Sorce2010-07-271-0/+5
|
* s3: Keep the connections.tdb data format fixedVolker Lendecke2010-07-051-0/+6
| | | | | At Simo's request, we can not change internal databases anymore. Sorry for not respecting this policy.
* s3: Remove unused msg_flags from connections.tdbVolker Lendecke2010-07-041-1/+0
| | | | This breaks rolling code upgrade!
* s3-libads: move keytab macros out of ads.h.Günther Deschner2010-07-011-0/+12
| | | | Guenther
* Move UCS2 macros to common codeJelmer Vernooij2010-06-251-21/+0
|
* s3: Add "smbd_server_connection" to smb_requestVolker Lendecke2010-06-121-0/+1
|
* Change smbd_aio_complete_mid() -> smbd_aio_complete_aio_ex(). SimplifiesJeremy Allison2010-06-041-0/+3
| | | | | | the code and eliminates find_aio_ex(). Jeremy.
* s3-build: only include generated spoolss headers (not ndr headers).Günther Deschner2010-06-031-0/+1
| | | | Guenther
* s3-security: use shared "Standard access rights.".Günther Deschner2010-06-031-1/+1
| | | | Guenther
* s3:idmap Use idmap.idl defined structures and constantsAndrew Bartlett2010-06-011-24/+1
| | | | | | | | | | | | This allows these structures to be shared across all of Samba The additional name type ID_TYPE_BOTH is unused in source3 code at this time. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
* s3-rpc_server: Created a per connection spoolss pipe.Simo Sorce2010-05-261-0/+3
| | | | | | | | This way all code can reuse the same connection to spoolss and not have to deal with the creation of a new pipe all over the code every time we need to ask a service off spoolss. Signed-off-by: Günther Deschner <gd@samba.org>
* Make DFS work over SMB2.Jeremy Allison2010-05-211-0/+6
| | | | Jeremy.
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-34/+27
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* Fix bug #7410 - samba sends "raw" inode number as uniqueid with unix ↵Jeremy Allison2010-05-201-0/+3
| | | | | | | | | | | | | | | extensions. Move to a consistent get_FileIndex() function for all inode returns, that checks if st_dev on the file is identical to the top directory dev_t of the exported share, and if so uses the raw 64-bit inode number. If it isn't (we've traversed a mount point) - return what we used to do for Windows which is the concatination of the bottom 32-bits of the inode with the 32-bit device number. We can get more creative with this over time (hashing?) if we want as now all inode returns go through this single function. Jeremy.
* Make pcap headers privateSimo Sorce2010-05-141-1/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3: only include gen_ndr headers where needed.Günther Deschner2010-05-061-23/+0
| | | | | | | | | | | | | | | | | This shrinks include/includes.h.gch by the size of 7 MB and reduces build time as follows: ccache build w/o patch real 4m21.529s ccache build with patch real 3m6.402s pch build w/o patch real 4m26.318s pch build with patch real 3m6.932s Guenther
* s3-smbd: group print relate data in own structureSimo Sorce2010-04-231-2/+8
|
* Move to using 64-bit mid values in our internal open file database.Jeremy Allison2010-04-121-19/+36
| | | | | | | This will allow us to share logic much easier between SMB1 and SMB2 servers. Jeremy
* Plumb SMB2 stubs into all the places we defer SMB1 operations.Jeremy Allison2010-04-091-0/+3
| | | | | | | | Rename functions to be internally consistent. Next step is to cope queueing single (non-compounded) SMB2 requests to put some code inside the stubs. Jeremy.
* Stop smb2 from calling into smb1 blocking lock request code.Jeremy Allison2010-04-081-0/+6
| | | | | | | | | | | Allocate a uint16_t internal SMB1 mid for an SMB2 request. Add a back pointer from the faked up smb_request struct to the smb2 request. Getting ready to add restart code for blocking locks, share mode violations and oplocks in SMB2. Jeremy.
* Fix bug #7240 - Net usershare is not case sensitive.Jeremy Allison2010-03-261-1/+3
| | | | | | | | Updates usershare files in a backwards compatible way. I don't intend to back port this fix to 3.5.x as it depends on a version upgrade in the share_info.tdb share security database. Jeremy.
* Remove the bool admin_user from conn struct. We no longer look at this to ↵Jeremy Allison2010-03-151-2/+0
| | | | | | make access decisions. Jeremy.
* Revert "Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail ↵Karolin Seeger2010-03-081-2/+1
| | | | | | | | | to respond to a read or write." This reverts commit a6ae7a552f851a399991262377cc0e062e40ac20. This fixes bug #7222 (All users have full rigths on all shares) (CVE-2010-0728). (cherry picked from commit 1c9494c76cc9686c61e0966f38528d3318f3176f)
* Fix for bug #7189 - Open txt files with notepad on samba shares creates problem.Jeremy Allison2010-03-051-5/+10
| | | | | | | | | | Ensure we don't use any of the create_options for Samba private use. Add a new parameter to the VFS_CREATE call (private_flags) which is only used internally. Renumber NTCREATEX_OPTIONS_PRIVATE_DENY_DOS and NTCREATEX_OPTIONS_PRIVATE_DENY_FCB to match the S4 code). Rev. the VFS interface to version 28. Jeremy.
* s3-smb: Remove the obsolete signal type cast.Andreas Schneider2010-02-231-4/+0
| | | | | AC_SIGNAL_TYPE is already obsolete in autoconf. C89 requires signal handlers to return void, only K&R returned int.
* Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail to ↵Jeremy Allison2010-01-261-1/+2
| | | | | | | | | respond to a read or write. Only works on Linux kernels 2.6.26 and above. Grants CAP_KILL capability to allow Linux threads under different euids to send signals to each other. Jeremy.
* Fix bug #6876 - Delete of an object whose parent folder does not have delete ↵Jeremy Allison2010-01-121-0/+1
| | | | | | | | | | rights fails even if the delete right is set on the object. Final fix for the vfs_acl_xattr and vfs_acl_tdb code. Ensure we can delete a file even if the underlying POSIX permissions don't allow it, if the Windows permissions do. Jeremy.
* s3: Happy New Year 2010Stefan Metzmacher2010-01-041-1/+1
| | | | metze
* Ensure we don't see the xattr used to store NT security (visible when xattr_tdbJeremy Allison2009-12-011-2/+0
| | | | | is used). Allows make test to pass with acl_xattr.so prepended to the vfs modules. Jeremy.
* Proper fix for #6898 - Samba duplicates file content on appending. Pointed ↵Jeremy Allison2009-11-231-0/+1
| | | | out by Volker.Restores the pathname handling for FILE_FLAG_POSIX_SEMANTICS but still prevents the O_APPEND problems. Jeremy.
* Revert "s3: Move the global variable Protocol to struct smbd_server_connection"Volker Lendecke2009-11-231-1/+0
| | | | This reverts commit c85a4c9ba4a7de65a7850f6f9708df66bd24deea.
* s3: Move the global variable Protocol to struct smbd_server_connectionVolker Lendecke2009-11-211-0/+1
|
* s3: Cache brlock.tdb entries for the fast read&write strict locking code pathVolker Lendecke2009-11-211-0/+8
| | | | | For a netbench run this gains around 2% user-space CPU, fetching a 100MB file takes around 4% less.
* Start fixing the RAW-STREAMS test - ensure that the xattrJeremy Allison2009-10-291-0/+2
| | | | | | used to store the stream info in streams_depot.so is not seen in when enumerating EAs. Jeremy.
* Fix for CVE-2009-2906.Jeremy Allison2009-10-011-0/+1
| | | | | | | | Summary: Specially crafted SMB requests on authenticated SMB connections can send smbd into a 100% CPU loop, causing a DoS on the Samba server.
* Fix bug 6494 - Incorrect FileStatus returned in NT_CREATE_ANDX.Jeremy Allison2009-09-141-0/+9
| | | | | Lookup the EA and Stream status on CreateX. Jeremy.
* s3-ntlmssp: use NTLMSSP headers from IDL and remove duplicate constants.Günther Deschner2009-08-281-0/+1
| | | | Guenther
* Second attempt at fix for bug 6529 - Offline files conflict with Vista and ↵Jeremy Allison2009-08-241-3/+4
| | | | | | | | Office 2003. Confirmation from reporter that this fixes the issue in master on ext3/ext4. Back-ports to follow. Jeremy.
* Fix bug 6529 - Offline files conflict with Vista and Office 2003Jeremy Allison2009-08-211-0/+3
| | | | | | | | On filesystems that can't store less than one second timestamps, round the incoming timestamp set requests so the client can't discover that a time set request has been truncated by the filesystem. Needs backporting to 3.4, 3.3, 3.2 and (even) 3.0. Jeremy
* Add missing CreateFile flags to smb.hSteve French2009-08-211-1/+12
|
* s3:smbd: store a dirptr on the files_struct for SMB2 Query DirectoryStefan Metzmacher2009-08-191-0/+2
| | | | metze
* Add "store create time" parameter (docs to follow)Jeremy Allison2009-08-121-0/+2
| | | | | that stores the create time in the user.DosTimestamps EA. Jeremy.
* s3: refomat definitions of some generic access rights for better readabilityMichael Adam2009-08-121-8/+19
| | | | Michael
* s3:smbd: remove dirptr and dirpath from connection_structStefan Metzmacher2009-08-071-2/+0
| | | | | | | They're both only used in the context of a function, so we can make them stack variables. metze