summaryrefslogtreecommitdiffstats
path: root/source3/smbd/trans2.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:smbd/trans2: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef'sStefan Metzmacher2011-04-241-28/+2
| | | | | | We rely on uint64_t for a long time now... metze
* s3: only include smb profiling where needed.Günther Deschner2011-04-141-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Apr 14 01:31:39 CEST 2011 on sn-devel-104
* Fix bug #7080 - Quota only shown when logged as root.Jeremy Allison2011-04-051-3/+2
| | | | | | | | | | | | | | | Remove the final incorrect uses of conn->session_info->utok.uid. When we're in the "admin users" list, then this value is not set to zero. Inspired by the comment on this bug by Dmitry Butskoy <dmitry@butskoy.name>. I'll create a different fix for 3.5.x. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Apr 5 21:53:59 CEST 2011 on sn-devel-104
* s3-auth: smbd needs auth.hGünther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-trans2: only include trans2.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* Revert "Fix bug 8021 - Incorrect string termination in volume/volume_name ↵Jeremy Allison2011-03-261-1/+1
| | | | | | | | | | | | | | for TRANS2-QUERY_FS_INFO/Info Volume." This reverts commit 042aafb87df6c05877b8fc7ef0d44877689d860a. I need to test against OS/2 to see if this is something Win28K breaks for older clients before allowing this. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 26 01:19:55 CET 2011 on sn-devel-104
* Fix bug 8021 - Incorrect string termination in volume/volume_name for ↵Volodymyr Khomenko2011-03-241-1/+1
| | | | | | | TRANS2-QUERY_FS_INFO/Info Volume. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 24 23:07:09 CET 2011 on sn-devel-104
* s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_infoAndrew Bartlett2011-02-221-20/+20
| | | | | | | | | | | | | | | | | | | | | These variables, of type struct auth_serversupplied_info were poorly named when added into 2001, and in good consistant practice, this has extended all over the codebase in the years since. The structure is also not ideal for it's current purpose. Originally intended to convey the results of the authentication modules, it really describes all the essential attributes of a session. This rename will reduce the volume of a future patch to replaced these with a struct auth_session_info, with auth_serversupplied_info confined to the lower levels of the auth subsystem, and then eliminated. (The new structure will be the output of create_local_token(), and the change in struct definition will ensure that this is always run, populating local groups and privileges). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth Rename cryptic 'ptok' to security_tokenAndrew Bartlett2011-02-101-9/+9
| | | | | | | | | This will allow the auth_serversupplied_info struct to be migrated to auth_session_info easier. Adnrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Allow SMB2_FIND to actually use the open fd handle if we support fdopendir. ↵Jeremy Allison2011-02-091-0/+1
| | | | Fallback to pathname opendir if not.
* If possible (O_DIRECTORY exists) open an fd for a directory open.Jeremy Allison2011-02-081-12/+4
| | | | | | | | | | | Start of the move towards handle-based code for directory access. Currently makes fstat/fchown code work for directories rather than falling back to pathnames. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Feb 8 06:34:41 CET 2011 on sn-devel-104
* Fix bug #7863 - Unlink may unlink wrong file when hardlinks are involved.Jeremy Allison2011-01-251-4/+22
| | | | | | Do this by keeping a linked list of delete on close tokens, one for each filename that identifies a path to the dev/inode. Use the jenkins hash of the pathname to identify the correct token.
* Add uint32_t name_hash argument (currently unused) to get_file_infos().Jeremy Allison2011-01-251-4/+4
| | | | Will be used when we store more than one delete on close token.
* Ensure we don't use "./" in findfirst pathnames. Use a directory open of "." ↵Jeremy Allison2011-01-201-4/+8
| | | | instead.
* Add in fsp->access_mask checks. Not required (underlying system does this)Jeremy Allison2010-11-241-0/+38
| | | | | | | | | but makes logic cleaner. Pointed out by Metze. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 24 01:47:13 CET 2010 on sn-devel-104
* s3: Rename GIT_COMMIT_{TIME,DATE} to COMMIT_{TIME,DATE}.Jelmer Vernooij2010-11-121-2/+2
| | | This avoids some special casing in the waf code.
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* Fix crash in SMB2 rename found by gentest. We must always have an lcompJeremy Allison2010-10-061-1/+1
| | | | | | in the destination struct for a rename, so set the flag appropriately. Jeremy.
* Fix crash in SMB2 rename found by gentest. We must always have an lcompJeremy Allison2010-10-061-1/+1
| | | | | | | | | in the destination struct for a rename, so set the flag appropriately. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 6 00:29:51 UTC 2010 on sn-devel-104
* s3: Lift smbd_server_conn from file_find_di_firstVolker Lendecke2010-09-281-2/+2
|
* s3-auth Rename NT_USER_TOKEN user_sids -> sidsAndrew Bartlett2010-08-311-3/+3
| | | | This is closer to the struct security_token from security.idl
* Fix bug #7651 - mknod and mkfifo fails with "No such file or directory"Jeremy Allison2010-08-261-2/+2
| | | | | | | | Ensure we check the correct stat struct once we've created the special fix. Thanks to izh1979@gmail.com for pointing out the bug. Jeremy.
* s3: Make srv_send_smb take an sconn instead of a sock fdVolker Lendecke2010-08-241-2/+2
|
* s3: Remove smbd_server_fd from send_trans2_repliesVolker Lendecke2010-08-161-2/+2
|
* s3: use dump_data in query FILE_BASIC_UNIX_INFOVolker Lendecke2010-07-251-8/+3
| | | | | Jeremy, please check! To me this is a lot more readable than the decimal listing of the bytes.
* s3: Remove smbd_messaging_context() from smb_set_posix_lock()Volker Lendecke2010-07-051-2/+2
|
* s3: Explicitly pass sconn to blocking_lock_was_deferred_smb1Volker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from reply_findcloseVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from call_trans2setfsinfoVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from smbd_do_qfsinfoVolker Lendecke2010-06-121-2/+2
|
* s3: Remove smbd_server_conn from call_trans2findnextVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from call_trans2findfirstVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from send_trans2_repliesVolker Lendecke2010-06-121-1/+1
|
* SMB2: Fix rename on Windows 7.Ira Cooper2010-06-011-8/+0
| | | | | | | This removes some code Jeremy (jra) suspected was bad. It turns out that the command window rename command will not work with the offending code in place. With it removed the bug is gone, and rename works.
* s3-build: only use ndr_security.h where needed.Günther Deschner2010-05-311-0/+1
| | | | Guenther
* s3:smbd Use the right num_sidsSimo Sorce2010-05-291-1/+1
| | | | | We use s_i->ptok->num_sids everywhere else in this call and then suddenly we reference s_i->num_sids
* Fix bug #7410 - samba sends "raw" inode number as uniqueid with unix ↵Jeremy Allison2010-05-201-7/+26
| | | | | | | | | | | | | | | 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.
* Fix bug 7442 - Samba returns incorrect SMB2 QFS device info.Jeremy Allison2010-05-191-2/+9
| | | | | | Add the correct devicetype and characteristics for this info level. Jeremy.
* Implement missing info level SMB_FILE_LINK_INFORMATION.Jeremy Allison2010-05-181-5/+99
| | | | | | | Fix bug #7435 - SMB2 hardlink fails (invalid level). Found at the Microsoft plugsharing plugfest. Jeremy.
* s3: Remove use of iconv_convenience.Jelmer Vernooij2010-05-181-2/+0
|
* Fix bug 7399 - SMB2: QUERY_DIRECTORY is returning invalid values.Jeremy Allison2010-05-131-0/+10
| | | | | | | | | The end_data argument to smbd_dirptr_lanman2_entry() must include the safety margin, as internally it's actually used to allow detection of string name pushes that were truncated. Ensure space_remaining can never go negative due to padding. Jeremy.
* Fix more SMB2-OPLOCK bugs. Only 3 more issues to address then we're good to ↵Jeremy Allison2010-05-111-1/+9
| | | | | | go on this test. Jeremy.
* This patch looks bigger than it is. It does 2 things. 1). Renames smbpid -> ↵Jeremy Allison2010-05-071-14/+14
| | | | | | smblctx in our locking code. 2). Widens smblctx to 64-bits internally. Preparing to use the SMB2 handle as the locking context. Jeremy.
* s3: only include gen_ndr headers where needed.Günther Deschner2010-05-061-0/+1
| | | | | | | | | | | | | | | | | 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
* Carefully label SMB1-specific locking calls.Jeremy Allison2010-04-291-1/+1
| | | | Jeremy.
* Attempt to fix bug #7399 - SMB2: QUERY_DIRECTORY is returning invalid values.Jeremy Allison2010-04-291-6/+17
| | | | | | Based on an initial patch from Ira Cooper <samba@ira.wakeful.net>. Jeremy.
* s3-smbd: group print relate data in own structureSimo Sorce2010-04-231-1/+6
|
* Simplify call_trans2qfilepathinfo() and smbd_do_qfilepathinfo()Jeremy Allison2010-04-081-17/+4
| | | | | | | | | | | | Remove the bool ms_dfs_link parameter from smbd_do_qfilepathinfo. It is not possible for this to be a DFS link. Remove the check_msdfs_link() call from call_trans2qfilepathinfo() - the call to filename_convert() above with a ucf_flags of zero *MUST* catch a DFS link and return NT_STATUS_PATH_NOT_COVERED in this case, so the code below checking for msdfs links is redundent. Don't add this to 3.5.x, as it's an optimization but not needed to fix bug #7339 - MSDFS is non-functional in 3.5.x. Jeremy.