summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Allow filename_convert() to pass through unix_convert_flags and let the ↵Tim Prouty2009-07-246-42/+82
| | | | | | caller know if the path has a wildcard This also eliminates the need for resolve_dfspath().
* add my copyright after the VFS rewriteVolker Lendecke2009-07-241-0/+1
|
* Make the smbd VFS typesafeVolker Lendecke2009-07-241-32/+838
|
* In chain_reply, copy the subrequests' error to the main requestVolker Lendecke2009-07-241-0/+15
|
* Fix a few uninitialized variable warningsVolker Lendecke2009-07-2410-20/+20
| | | | I know those warnings are bogus, but both Coverity and gcc don't get it.
* Fix some nonempty blank linesVolker Lendecke2009-07-241-4/+4
|
* s3: Change unix_convert to use an smb_filename struct internallyTim Prouty2009-07-222-138/+168
| | | | | | | | | | | | This allows SMB_VFS_[L]STAT to be called directly. Additionally, I changed NTSTATUS result to be named status for consistency. I also removed the stat_cache_add() from build_stream_path() because stat_cache_lookup() is never actually called on a file with a stream. There is no reason why the stat cache couldn't be consulted for streams in the future. Jeremy/Volker, please take a look at this one when you get a chance.
* s3: Convert some callers of vfs_lstat_smb_fname to SMB_VFS_LSTAT()Tim Prouty2009-07-222-9/+30
|
* s3: Convert some callers of vfs_stat_smb_fname to SMB_VFS_STAT()Tim Prouty2009-07-224-26/+37
|
* s3: plumb smb_filename through some of the trans2 posix_* functionsTim Prouty2009-07-211-60/+38
|
* s3: Remove unnecessary callers of get_full_smb_filenameTim Prouty2009-07-214-119/+63
| | | | | | | This often times means explicitly denying certain operations on a stream as they are not supported or don't make sense at a particular level. At some point in the future these can be enabled, but for now it's better to remove ambiguity
* s3: Remove the now unused fname parameter from filename_convert()Tim Prouty2009-07-215-50/+23
|
* s3: Fix RENAME_FLAG_RENAME path to stop calling unix_convert twiceTim Prouty2009-07-211-50/+75
|
* s3: Remove unnecessary fname argument from callers of filename_convertTim Prouty2009-07-211-9/+14
|
* s3: Plumb smb_filename through map_open_params_to_ntcreateTim Prouty2009-07-213-19/+20
|
* do not log chdir with level 0 if reason is access deniedChristian Ambach2009-07-211-2/+2
| | | | | | | | | | | | | this changes the level of logs caused by users trying to access shares or subdirectories for which they do not have access to in the ACL this can fill up the samba log even with log level 0 and is more an expected kind of logs that IMHO should not be logged with such a high level. All other errors while chdir() will still be logged with level 0 Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
* s3: Add some asserts to the filename util functionsTim Prouty2009-07-201-0/+12
| | | | | | In the smb_filename struct stream_name must equal NULL if there is no stream name. These asserts should catch any future offenders of this invariant early.
* s3: Plumb smb_filename through open_fake_fileTim Prouty2009-07-202-18/+24
|
* s3: Separate out a new file: filename_utils.cTim Prouty2009-07-204-228/+249
| | | | This is to ease the linking pain of everything that links LOCKING_OBJ
* s3: Move is_ntfs_stream*() to filename.cTim Prouty2009-07-202-24/+24
|
* s3: Change fsp->fsp_name to be an smb_filename struct!Tim Prouty2009-07-2027-559/+539
|
* s3 onefs oplocks: Replace static fstring with talloc'd dbg_ctx()Tim Prouty2009-07-201-16/+16
|
* s3: Change file_structs to be allocated with talloc instead of mallocTim Prouty2009-07-201-10/+15
|
* Fix Coverity CID 928. Removed check as this can never be null.Jeremy Allison2009-07-171-1/+1
| | | | Jeremy.
* Fix Coverity CID 929. Potential NULL deref after code refactoring.Jeremy Allison2009-07-171-0/+5
| | | | Jeremy.
* Fix coverity CID 930. Pointer check can never be null here.Jeremy Allison2009-07-171-1/+1
| | | | Jeremy
* Fix coverity CID 931. This check is redundent as smb_fname canJeremy Allison2009-07-171-1/+1
| | | | | never be null in this function. Jeremy.
* Move the initialization of smbd_server_conn from smbd/process,Jeremy Allison2009-07-172-5/+5
| | | | | | | | | | | | | | | | | | | | | after the accept and fork, to smbd_init_globals(), so it's done immediately on server startup. This is needed as some messages are sent to all active smbd processes (including the master listening daemon). If it gets a message that forces it to scan it's current connections (ie. conn_find()) then it discovers that sconn->smb1.tcons.Connections dereferences null (as sconn == NULL in the parent) and crashes. Yes, I could fix all cases where sconn is used and explicitly check for NULL but this fix is easier. It means that the smbd_event_context() is initialized in the master daemon and then re-initialized after fork, but that should be being done correctly in every fork call anyway. Without this change the previous fix 6a9e0039100b57f9626e87defec6720c476b9789 still panics in the reproducible test case for bug 6564, as this is one case where such a message (MSG_SMB_CONF_UPDATED) is sent to the parent. Metze please check. This change passes valgrind. Jeremy.
* Fix bug #6564 - SetPrinter fails (panics) as non root.Jeremy Allison2009-07-171-0/+1
| | | | | Missing become_root()/unbecome_root() around reload_services. Jeremy.
* Fix bug #6551 - win98 clients cannot connect after server upgrade to ↵Jeremy Allison2009-07-152-0/+3
| | | | | | | | samba-3.4.0. The values of vuid and tid were not being correctly updated in the struct smb_request when passed to chain_reply inside sessionsetupX and tconX. Jeremy.
* s3:smbd: try to fix a compiler warning on i386 : left shift count >= width ↵Stefan Metzmacher2009-07-151-1/+1
| | | | | | of type metze
* s3:smbd: add support for SMB2 SetInfo File*InformationStefan Metzmacher2009-07-151-1/+128
| | | | metze
* s3:smbd: implement SMB2 GetInfo with Fs*InformationStefan Metzmacher2009-07-151-0/+47
| | | | metze
* s3:smbd: return NT_STATUS_INVALID_INFO_CLASS in SMB2 GetInfoStefan Metzmacher2009-07-151-3/+7
| | | | metze
* s3:smbd: check quota access against sec_initial_uid() instead of 0Stefan Metzmacher2009-07-151-6/+6
| | | | | | And return an NTSTATUS mapped from errno. Instead of hardcoded values. metze
* Make gencache more stableVolker Lendecke2009-07-151-0/+1
| | | | | | | | | | This provides a compromise between stability and performance: gencache is a persistent database these days that for performance reasons can not use tdb transactions for all writes. This patch splits up gencache into gencache.tdb and gencache_notrans.tdb. gencache_notrans is used with CLEAR_IF_FIRST, writes to it don't use transactions. By default every 5 minutes and when a program exits, all entries from _notrans.tdb are transferred to gencache.tdb in one transaction.
* Create a talloc_stackframe for each file in wildcard unlinkVolker Lendecke2009-07-141-0/+10
| | | | There might be *many* files to delete
* TALLOC_FREE(sd) in check_open_rights upon an errorVolker Lendecke2009-07-141-0/+1
|
* Revert this commit :Jeremy Allison2009-07-145-212/+27
| | | | | | | | | | | s3: Make smbd aware of permission change of usershare. Since usershare are relatively volatile and non-previledge users must disconnect from smbd and reconnect to it to make share permission in effect. For now. This is a feature request and I think we need to design it a little differently so as not to touch core change_to_user() code. Jeremy.
* s3: Make smbd aware of permission change of usershare. Since usershare are ↵Bo Yang2009-07-155-27/+212
| | | | relatively volatile and non-previledge users must disconnect from smbd and reconnect to it to make share permission in effect.
* s3: make d9c0d58236 better readble and reduce indentationBjörn Jacke2009-07-141-13/+13
|
* s3: don't make same innetgr check twiceBjörn Jacke2009-07-141-8/+11
|
* s3-account_policy: add pdb_policy_type enum.Günther Deschner2009-07-141-3/+3
| | | | Guenther
* Fix set_posix_lock check which had been reversed in the recentJeremy Allison2009-07-131-1/+1
| | | | | changes. Jeremy.
* s3:smbd: close_file() handles named pipes just fine, no reason to return ↵Stefan Metzmacher2009-07-131-5/+0
| | | | | | NOT_SUPPORTED metze
* s3:smbd: make smbd_do_qfsinfo() non static for use in SMB2 GetInfoStefan Metzmacher2009-07-132-8/+17
| | | | metze
* s3:smbd: split out smbd_do_qfsinfo() from call_trans2qfsinfo()Stefan Metzmacher2009-07-131-79/+93
| | | | metze
* s3:smbd: make smbd_do_setfilepathinfo() non static for use in SMB2 SetInfoStefan Metzmacher2009-07-132-8/+17
| | | | metze
* s3:smbd: split out smbd_do_setfilepathinfo() from call_trans2setfilepathinfo()Stefan Metzmacher2009-07-131-188/+216
| | | | metze
* s3:smbd: start SMB2 GetInfo support for File*Information levelsStefan Metzmacher2009-07-121-1/+139
| | | | | | TODO: the EA levels are not fully supported. metze