summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* Ensure files starting with multiple dots are hiddenJeremy Allison2009-03-301-4/+8
| | | | | | if "hide dot files" is set. Thanks to Barry Kelly <bkelly.ie@gmail.com> for pointing this one out. Jeremy.
* s3: ifdef sendfile code that's only used in other ifdef'ed sendfile codeBjörn Jacke2009-03-271-0/+2
| | | | This fixes a "defined but not used" compile warning.
* Ensure we never enter VFS_CREATE without having initializedJeremy Allison2009-03-253-0/+12
| | | | | | | sbuf as invalid (if not already read via stat()). Still trying to find the build farm RAW-STREAM errors and it's happening in a openX call.... Jeremy.
* Use avahi to register _smb._tcp in smbdVolker Lendecke2009-03-232-0/+181
|
* s3:smbd: use new simplified snb_signing code in the serverStefan Metzmacher2009-03-2317-105/+239
| | | | | | | | | We keep the seqnum/mid mapping in the smb_request structure. This also moves one global variable into the smbd_server_connection struct. metze
* s3:smbd: if we allow trans2 on the IPC$ share, then we have to allow transs2 ↵Stefan Metzmacher2009-03-231-1/+1
| | | | | | | | too. Otherwise we'll confuse the client signing engine, when we reply an error to each transs2. metze
* Fix bug #6196 - Unable to serve files with colons to Linux CIFS/VFS clientJeremy Allison2009-03-181-2/+7
| | | | | | Looks like the pathname parsing for POSIX paths got broken when the code for doing Windows streams parsing got added. Jeremy.
* s3:smbd: use tevent_loop_once() in the parent event loopStefan Metzmacher2009-03-181-34/+5
| | | | metze
* s3:smbd: don't exit the parent when we have no connectionsStefan Metzmacher2009-03-181-7/+0
| | | | | | | | This code path can't really happen anymore, because launchd support was removed with commit e5a951325a6cac8567af3a66de6d2df577508ae4. But it's confusing to have that code there... metze
* Convert np_read to tevent_reqVolker Lendecke2009-03-172-18/+15
|
* Convert np_write to tevent_reqVolker Lendecke2009-03-172-26/+27
|
* s3: Add strict lock/unlock calls to the vfs layer to replace is_lockedDave Richards2009-03-131-63/+116
|
* Fix bug #6186 - map readonly does not workJeremy Allison2009-03-121-3/+25
| | | | Jeremy.
* s3:signing: the seqnum should only be decremented by 1 for ntcancel requestsStefan Metzmacher2009-03-062-5/+5
| | | | | | | | | [MS-SMB] 3.3.5.1 Receiving Any Message says that the seqnum is incremented by only for ntcancel requests for any other request it's by incremented by 2, even if it doesn't expect a response. metze
* Fix bug #6160 - Office 2007 fails saving files to a Samba mapped drive.Jeremy Allison2009-03-051-0/+22
| | | | | Confirmed by reporters. Jeremy.
* s3: Change open_streams_for_delete to call through the vfs layerTim Prouty2009-03-041-5/+7
| | | | This eliminates the last direct caller of create_file_unixpath
* Second part of fix for #6154, ensure we return max accessJeremy Allison2009-03-041-0/+9
| | | | | if admin user. Jeremy.
* Fix bug #6154 - zfs does not honor admin users.Jeremy Allison2009-03-041-0/+5
| | | | Jeremy
* Fix bug #6155 - "force group" is no longer working as expected.Jeremy Allison2009-03-033-3/+17
| | | | | | | We need to store the "force group" uid separately from the conn->server_info token as we need to apply it separately also. Volker PLEASE CHECK ! Jeremy.
* Only copy sharename up from rap_to_pjobidVolker Lendecke2009-03-011-2/+1
| | | | | | | | | | | | | | Why?? :-) Another one of the little micro-optimizations that I just came across: If you allocate a variable in a sub-block like the "fstring sharename" in write_file(), gcc even with -O3 will allocate this variable unconditionally on the stack at the beginning of the routine. So with eliminating this fstring we cut 256 bytes of stack in a very hot code path writing to a file. It might make us a bit more cache-friendly. This would probably not be worth a second look if it involved larger code changes, but this one was just too simple to let it pass :-)
* Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename orJeremy Allison2009-02-281-0/+19
| | | | | delete file (directory fix). Jeremy.
* s3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.Günther Deschner2009-02-271-1/+1
| | | | Guenther
* Make us pass the RAW-RENAME torture test I just added.Jeremy Allison2009-02-262-0/+53
| | | | | | | Inside a directory, keep a file open and then renaming the directory should fail with ACCESS_DENIED. Jeremy.
* Fix more POSIX path lstat calls. Fix bug where close can returnJeremy Allison2009-02-251-5/+17
| | | | | | | | | failure if we have a pending modtime and the containing directory of the file has been renamed (there is no POSIX "update time by fd" call). This can't happen on Windows as the rename will fail if there are open files beneath it. Will add a torture test for this. Jeremy.
* Make test for open modes more robust against other bits.Jeremy Allison2009-02-251-1/+1
| | | | Jeremy.
* Fix bug in processing of open modes in POSIX open.Jeremy Allison2009-02-251-0/+2
| | | | | | | Was missing case of "If file exists open. If file doesn't exist error." Damn damn damn. CIFSFS client will have to have fallback cases for this error for a long time. Jeremy.
* Fix some NetBSD warnings.Jeremy Allison2009-02-251-1/+1
| | | | Jeremy.
* Allow set attributes on a stream fnum to be redirected to the base filename.Jeremy Allison2009-02-241-2/+10
| | | | | Fixes the new RAW-STREAMS torture test. Jeremy.
* s3 OneFS: Fix a double free in an error pathTim Prouty2009-02-231-3/+2
|
* More warning fixes for Solaris.Jeremy Allison2009-02-234-30/+30
| | | | Jeremy.
* s3: If sendfile returns 0 bytes read, fall back to the normal read pathTim Prouty2009-02-211-0/+24
| | | | | | This allows sendfile implementations that are atomic to avoid having to send zeros or kill the client connection on a short read (usually the file was truncated).
* Remove the static "chal" from ntlmssp.c:get_challenge()Volker Lendecke2009-02-212-6/+6
|
* Do not close an fd we know is -1Volker Lendecke2009-02-211-1/+0
|
* S3: Detect max_open_files from systemtodd stecher2009-02-201-0/+12
| | | | | - Attempt to use syscalls to determine max-open-files value. - Add in periodic logging when max file limit reached
* s3: Refactor of madvise() usage in c441f58dSteven Danneman2009-02-201-7/+0
| | | | | * move to reinit_after_fork() to protect all Samba daemons * only protect parent processes
* s3: Make change notify immediately return a catch-all packet on underlying errorSteven Danneman2009-02-201-1/+14
| | | | | | | * This allows a problem in the underlying CN backend to be bubbled up to the general CN layer so a catch-all reply can be returned * We now also return a catch-all response immediately if the server-side event queue becomes too big
* s3: Modifications to generic notify structures to allow implementation of ↵Steven Danneman2009-02-201-0/+2
| | | | | | | | | | | | | | OneFS notify. The OneFS kernel based change notify system takes an fd of the directory to watch in it's initialization syscall. Since we already have this directory open, this commit plumbs that fd down to the VFS layer via the notify_entry struct. We also need to know if the watch is taken out on a snapshot directory. The full file_id struct is also passed down to make this determination. The file_id marshalling wrappers are hand written here, but should eventually be auto-generated by moving the struct file_id into the idl.
* s3: Change the vfs_GetWd cache to use the file_id structTim Prouty2009-02-191-12/+3
|
* s3: Add extid to the dev/inode pairTim Prouty2009-02-194-17/+20
| | | | | | | | | | | This extends the file_id struct to add an additional generic uint64_t field: extid. For backwards compatibility with dev/inodes stored in xattr_tdbs and acl_tdbs, the ext id is ignored for these databases. This patch should cause no functional change on systems that don't use SMB_VFS_FILE_ID_CREATE to set the extid. Existing code that uses the smb_share_mode library will need to be updated to be compatibile with the new extid.
* s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty2009-02-191-0/+18
| | | | | Since file_id_create_dev is incompatible with the concept of file_ids, it is now static and in the one file that needs it.
* S3: Dumb down debug spew in perfcount module codetodd stecher2009-02-191-4/+4
|
* S3: Make changes to perfcount API set for when a single request leads to ↵todd stecher2009-02-191-2/+15
| | | | | | multiple replies (e.g. reply_echo). Change test and onefs modules to match new api set (thanks Volker!).
* s3: Fix bug opening streams with truncating dispositionTim Prouty2009-02-181-1/+1
| | | | | | | Do not attempt to delete streams on a truncating open, if the name we're opening is itself a stream. Port 176e8857203944bc332844b700749120ce90c891 to standard open path
* S3: Stop creating SMBD cores when failing to create a pipe.todd stecher2009-02-181-0/+4
| | | | | | This was uncovered when the MAX FD limit was hit, causing an instant core and invoking error reporting. This fix causes SMBD to exit, but without building a core.
* S3: Allow SMBD processes to survive in low memory condidtionstodd stecher2009-02-181-0/+7
| | | | | | This commit adds a configure argument which allows for setting MADV_PROTECT in the madvise() API. With this enabled the kernel won't kill SMBD when it's running low on memory.
* make receive_smb_raw_talloc more readableTim Prouty2009-02-161-4/+4
|
* Rename lp_smb_perfcount_module() to lp_perfcount_module() to match the ↵Volker Lendecke2009-02-141-1/+1
| | | | parameter name
* Make smb_load_perfcount_module staticVolker Lendecke2009-02-141-1/+1
|
* Attempt to fix the build on Solaris 8Volker Lendecke2009-02-141-1/+1
|
* Fix a valgrind errorVolker Lendecke2009-02-141-1/+5
|