summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Fix a typoVolker Lendecke2011-04-261-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Apr 26 13:31:08 CEST 2011 on sn-devel-104
* No longer need to call SMB_VFS_LSTAT - check name hasn't changed above is ↵Jeremy Allison2011-04-251-23/+0
| | | | | | | sufficient. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 25 23:35:37 CEST 2011 on sn-devel-104
* Correctly detect and deny symlinks anywhere in a path (not just the last ↵Jeremy Allison2011-04-251-27/+60
| | | | component) if "follow symlinks = no".
* 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:smbd/nttrans: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef'sStefan Metzmacher2011-04-231-44/+5
| | | | | | We rely on uint64_t for a long time now... metze
* s3: Fix Coverity ID 2335, CHECKED_RETURNVolker Lendecke2011-04-221-1/+3
|
* Cosmetic. Fix bad indentation.Jeremy Allison2011-04-221-18/+18
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 22 03:16:43 CEST 2011 on sn-devel-104
* Remove duplicate code - move to parent_dirname() as a common function.Jeremy Allison2011-04-211-25/+14
|
* s3-vfs: rename open function to open_fn.Günther Deschner2011-04-211-5/+2
| | | | | | | | | | | This should finally fix the AIX build and allow to remove AIX specific ifdefs. Guenther Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 21 02:01:20 CEST 2011 on sn-devel-104
* s3-smbd: fix the AIX 5.3 build.Günther Deschner2011-04-201-0/+3
| | | | | | (AIX defines open to be open64) Guenther
* Use handle based xattr set if available.Jeremy Allison2011-04-151-4/+5
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 15 22:11:12 CEST 2011 on sn-devel-104
* Ensure vfs_chown_fsp() is safe against races.Jeremy Allison2011-04-153-6/+74
|
* Ensure change_dir_owner_to_parent() can't be raced.Jeremy Allison2011-04-141-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 14 23:39:55 CEST 2011 on sn-devel-104
* Optimization for change_file_owner_to_parent() and change_dir_owner_to_parent()Jeremy Allison2011-04-141-0/+21
| | | | Don't do the chown if the owner is already correct.
* s3: Fix smbd with the async echo responderVolker Lendecke2011-04-141-10/+13
| | | | | | | | We need to read from the echo socket, pass the socket to read from down to the read routines Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Apr 14 15:34:36 CEST 2011 on sn-devel-104
* s3: Fix a typoVolker Lendecke2011-04-141-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Apr 14 11:55:56 CEST 2011 on sn-devel-104
* s3-lib Move strisnormal to it's only user in mangle_hash.cAndrew Bartlett2011-04-141-0/+13
|
* s3: only include smb profiling where needed.Günther Deschner2011-04-1413-0/+13
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Apr 14 01:31:39 CEST 2011 on sn-devel-104
* Don't print "success" message after error message in ↵Jeremy Allison2011-04-131-9/+8
| | | | change_file_owner_to_parent(). Remove "goto" in change_dir_owner_to_parent().
* s3-rpc_client: add and use rpc_client/rpc_client.h.Günther Deschner2011-04-132-0/+2
| | | | Guenther
* s3: Make send_nt_replies() staticVolker Lendecke2011-04-132-8/+4
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Apr 13 16:25:29 CEST 2011 on sn-devel-104
* s3-lib Move strdup_w to it's only user in mangle_hash.cAndrew Bartlett2011-04-131-0/+19
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib Move isvalid83_w to mangle_hash.cAndrew Bartlett2011-04-131-0/+34
| | | | | | | | | | | | This means that there is no need for the 'valid.dat' table to be loaded by anything other than smbd, so the unloader is also removed. The concept of a 'valid dos character' has been replaced by the hash2 mangle method. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-smbd: Added a become_user_by_session() function.Andreas Schneider2011-04-112-0/+19
| | | | | | | | This uses the provided session_info instead of searching the user via the vuid. This is useful to work with fake connnection you need to create if someone connects directly to a rpc service. Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-smbd: Added a change_to_user_by_session() function.Andreas Schneider2011-04-112-74/+98
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* Subtle change. Microsoft SMB2 tests return different access mask than for ↵Jeremy Allison2011-04-081-1/+12
| | | | SMB1 with raw.acls.
* Fix bug #7080 - Quota only shown when logged as root.Jeremy Allison2011-04-052-5/+4
| | | | | | | | | | | | | | | 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 Rename user_session_key -> session_key to match auth_session_infoAndrew Bartlett2011-04-052-3/+3
|
* s3-auth use create_local_token() to transform server_info -> session_infoAndrew Bartlett2011-04-053-59/+34
| | | | | | | | | | | | | | | | | | Before a auth_serversupplied_info struct can be used for authorization, the local groups and privileges must be calculated. create_local_token() now copies the server_info, and then sets the calulated token and unix groups. Soon, it will also transform the result into an expanded struct auth_session_info. Until then, the variable name (server_info vs session_info provides a clue to the developer about what information has been entered in the structure). By moving the calls to create_local_token within the codebase, we remove duplication, and ensure that the session key (where modified) is consistently copied into the new structure. Andrew Bartlett
* Move SET_STAT_INVALID call added by Volker as fix for bug 8042 - Newly ↵Jeremy Allison2011-04-041-3/+3
| | | | | | | | | | | create files are always failed with NT_STATUS_FILE_IS_A_DIRECTORY Ensure we do this for all cases where the stat fails. Jeremy Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 4 20:08:45 CEST 2011 on sn-devel-104
* Note that check_parent_exists() doesn't change the contents of smb_fname ↵Jeremy Allison2011-04-041-1/+1
| | | | (add const).
* s3-auth consolidate create_local_token() into make_server_info_krb5()Andrew Bartlett2011-04-042-37/+5
| | | | | | | This ensures that all callers don't need to each add builtin groups and privileges to the user's token Andrew Bartlett
* s3: Fix bug 8042: File creation on OS/XVolker Lendecke2011-04-031-0/+3
| | | | | | | | | | | | | | | With a case insensitive file system the stat cache lookup leaked the parent directorys stat information from unix_convert into the smb_filename. This led open_file_ntcreate to believe it just created a directory. In the case where we do the search we already invalidate the stat struct. Thanks to TAKAHASHI Motonobu for insisting! :-) Volker Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 3 14:54:27 CEST 2011 on sn-devel-104
* Fix bug #8047 - mdns registration doesn't work if "interfaces" is used in ↵Marc A. Dahlhaus2011-04-011-0/+7
| | | | | | | smb.conf Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 1 23:15:34 CEST 2011 on sn-devel-104
* Fix bug #7996 - sgid bit lost on folder rename.Jeremy Allison2011-03-303-1/+23
| | | | | Refuse to set dos attributes into unix mode bits on such a folder.
* Fix convert_string() to take a *converted_size arg. and return a bool.Jeremy Allison2011-03-301-4/+7
| | | | | | | | Makes these interfaces much harder to misuse and easier to ensure error checking. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104
* s3-smbd: try to fix the irix build.Günther Deschner2011-03-301-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 17:17:58 CEST 2011 on sn-devel-104
* s3: try to fix the build on some non-linux buildfarm machines.Günther Deschner2011-03-301-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 11:39:31 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 2236: REVERSE_INULLVolker Lendecke2011-03-301-3/+1
| | | | | We have already dereferenced "b", and the other calls in this loop can only have worked with a valid handle
* s3: Fix Coverity ID 2304: FORWARD_NULLVolker Lendecke2011-03-301-3/+1
|
* s3: only include ntioctl.h where needed.Günther Deschner2011-03-302-0/+2
| | | | Guenther
* s3-includes: only include ntdomain.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner2011-03-3013-13/+0
| | | | Guenther
* s3-messages: only include messages.h where needed.Günther Deschner2011-03-3014-0/+14
| | | | Guenther
* s3-prototyes: user_in_netgroup and user_in_list moved to auth, out of smbd.Günther Deschner2011-03-301-2/+0
| | | | Guenther
* s3-auth: smbd needs auth.hGünther Deschner2011-03-3025-0/+25
| | | | Guenther
* s3-libsmb: put namequery headers to nmblib.hGünther Deschner2011-03-301-0/+1
| | | | | | | We might find a better name for it and merge other namequery related things as well here... Guenther
* s3-locking: move locking prototypes out of proto.h.Günther Deschner2011-03-301-0/+1
| | | | | | Will later become part of locking.h Guenther
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-3081-0/+81
| | | | Guenther
* s3-smbd: add smbd.h and move smbd prototypes to smbd/proto.h.Günther Deschner2011-03-302-0/+1157
| | | | Guenther