summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2009-07-20s3: Separate out a new file: filename_utils.cTim Prouty4-228/+249
This is to ease the linking pain of everything that links LOCKING_OBJ
2009-07-20s3: Move is_ntfs_stream*() to filename.cTim Prouty2-24/+24
2009-07-20s3: Change fsp->fsp_name to be an smb_filename struct!Tim Prouty27-559/+539
2009-07-20s3 onefs oplocks: Replace static fstring with talloc'd dbg_ctx()Tim Prouty1-16/+16
2009-07-20s3: Change file_structs to be allocated with talloc instead of mallocTim Prouty1-10/+15
2009-07-17Fix Coverity CID 928. Removed check as this can never be null.Jeremy Allison1-1/+1
Jeremy.
2009-07-17Fix Coverity CID 929. Potential NULL deref after code refactoring.Jeremy Allison1-0/+5
Jeremy.
2009-07-17Fix coverity CID 930. Pointer check can never be null here.Jeremy Allison1-1/+1
Jeremy
2009-07-17Fix coverity CID 931. This check is redundent as smb_fname canJeremy Allison1-1/+1
never be null in this function. Jeremy.
2009-07-17Move the initialization of smbd_server_conn from smbd/process,Jeremy Allison2-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.
2009-07-17Fix bug #6564 - SetPrinter fails (panics) as non root.Jeremy Allison1-0/+1
Missing become_root()/unbecome_root() around reload_services. Jeremy.
2009-07-15Fix bug #6551 - win98 clients cannot connect after server upgrade to ↵Jeremy Allison2-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.
2009-07-15s3:smbd: try to fix a compiler warning on i386 : left shift count >= width ↵Stefan Metzmacher1-1/+1
of type metze
2009-07-15s3:smbd: add support for SMB2 SetInfo File*InformationStefan Metzmacher1-1/+128
metze
2009-07-15s3:smbd: implement SMB2 GetInfo with Fs*InformationStefan Metzmacher1-0/+47
metze
2009-07-15s3:smbd: return NT_STATUS_INVALID_INFO_CLASS in SMB2 GetInfoStefan Metzmacher1-3/+7
metze
2009-07-15s3:smbd: check quota access against sec_initial_uid() instead of 0Stefan Metzmacher1-6/+6
And return an NTSTATUS mapped from errno. Instead of hardcoded values. metze
2009-07-15Make gencache more stableVolker Lendecke1-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.
2009-07-14Create a talloc_stackframe for each file in wildcard unlinkVolker Lendecke1-0/+10
There might be *many* files to delete
2009-07-14TALLOC_FREE(sd) in check_open_rights upon an errorVolker Lendecke1-0/+1
2009-07-14Revert this commit :Jeremy Allison5-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.
2009-07-15s3: Make smbd aware of permission change of usershare. Since usershare are ↵Bo Yang5-27/+212
relatively volatile and non-previledge users must disconnect from smbd and reconnect to it to make share permission in effect.
2009-07-14s3: make d9c0d58236 better readble and reduce indentationBjörn Jacke1-13/+13
2009-07-14s3: don't make same innetgr check twiceBjörn Jacke1-8/+11
2009-07-14s3-account_policy: add pdb_policy_type enum.Günther Deschner1-3/+3
Guenther
2009-07-13Fix set_posix_lock check which had been reversed in the recentJeremy Allison1-1/+1
changes. Jeremy.
2009-07-13s3:smbd: close_file() handles named pipes just fine, no reason to return ↵Stefan Metzmacher1-5/+0
NOT_SUPPORTED metze
2009-07-13s3:smbd: make smbd_do_qfsinfo() non static for use in SMB2 GetInfoStefan Metzmacher2-8/+17
metze
2009-07-13s3:smbd: split out smbd_do_qfsinfo() from call_trans2qfsinfo()Stefan Metzmacher1-79/+93
metze
2009-07-13s3:smbd: make smbd_do_setfilepathinfo() non static for use in SMB2 SetInfoStefan Metzmacher2-8/+17
metze
2009-07-13s3:smbd: split out smbd_do_setfilepathinfo() from call_trans2setfilepathinfo()Stefan Metzmacher1-188/+216
metze
2009-07-12s3:smbd: start SMB2 GetInfo support for File*Information levelsStefan Metzmacher1-1/+139
TODO: the EA levels are not fully supported. metze
2009-07-12s3:smbd: add support for marshalling SMB2 FileFullEaInformationStefan Metzmacher1-0/+92
metze
2009-07-12s3:smbd: add support for marshalling SMB2 FileAllInformationStefan Metzmacher1-0/+36
metze
2009-07-12s3:smbd: filter out SMB2 specific private query info levels for SMB1Stefan Metzmacher1-0/+9
metze
2009-07-12s3:smbd: make smbd_do_qfilepathinfo() non static for use in SMB2Stefan Metzmacher2-15/+31
metze
2009-07-12s3:smbd: split calculation and mashalling of file index and access_maskStefan Metzmacher1-13/+19
metze
2009-07-12s3:smbd: split out smbd_do_qfilepathinfo() from call_trans2qfilepathinfo()Stefan Metzmacher1-459/+504
This prepares SMB2 GetInfo. metze
2009-07-12s3:smbd: add missing return after reply_nterror()Stefan Metzmacher1-0/+1
metze
2009-07-10Remove reply_unixerror() - no longer needed. Should make Metze's refactoring ↵Jeremy Allison5-84/+79
a lot easier. Jeremy.
2009-07-10s3 smb2: Remove unused variableTim Prouty1-1/+0
2009-07-10s3:smbd: add support for SMB2 LockStefan Metzmacher1-1/+151
metze
2009-07-10s3:smbd: make smbd_do_locking() non staticStefan Metzmacher2-16/+26
metze
2009-07-10s3:smbd: abstract the main locking logic from the LockingAndX parsingStefan Metzmacher1-178/+254
This prepares SMB2 Lock support. metze
2009-07-10s3:smbd: pass down the client pid to smbd_smb2_lock_send()Stefan Metzmacher1-0/+6
metze
2009-07-10s3:smbd: fix parsing of SMB2 Lock requests with lock_count > 1Stefan Metzmacher1-10/+13
We should not reuse the variable 'i'. metze
2009-07-10s3:smbd: fix parsing of invalid SMB2 requests.Stefan Metzmacher1-2/+2
Because of 0 - 2 => 0xFFFFFFFE, we got EMSGSIZE from the tstream layer. And terminate the transport connection. Instead we should let the caller deal with the invalid parameter, when checking the body size. So the caller always gets at least a 2 byte body. metze
2009-07-09s3: Fix two arguments that broke when plumbing smb_filneame through dos_mode()Tim Prouty1-2/+2
2009-07-08s3: Repace a char * with an smb_filename struct in reply_rmdirTim Prouty1-3/+8
2009-07-08s3: Prepare open.c to switch fsp_name to an smb_filename structTim Prouty1-11/+15