summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2011-04-24s3:smbd/trans2: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef'sStefan Metzmacher1-28/+2
We rely on uint64_t for a long time now... metze
2011-04-23s3:smbd/nttrans: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef'sStefan Metzmacher1-44/+5
We rely on uint64_t for a long time now... metze
2011-04-22s3: Fix Coverity ID 2335, CHECKED_RETURNVolker Lendecke1-1/+3
2011-04-22Cosmetic. Fix bad indentation.Jeremy Allison1-18/+18
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 22 03:16:43 CEST 2011 on sn-devel-104
2011-04-21Remove duplicate code - move to parent_dirname() as a common function.Jeremy Allison1-25/+14
2011-04-21s3-vfs: rename open function to open_fn.Günther Deschner1-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
2011-04-20s3-smbd: fix the AIX 5.3 build.Günther Deschner1-0/+3
(AIX defines open to be open64) Guenther
2011-04-15Use handle based xattr set if available.Jeremy Allison1-4/+5
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 15 22:11:12 CEST 2011 on sn-devel-104
2011-04-15Ensure vfs_chown_fsp() is safe against races.Jeremy Allison3-6/+74
2011-04-14Ensure change_dir_owner_to_parent() can't be raced.Jeremy Allison1-1/+1
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 14 23:39:55 CEST 2011 on sn-devel-104
2011-04-14Optimization for change_file_owner_to_parent() and change_dir_owner_to_parent()Jeremy Allison1-0/+21
Don't do the chown if the owner is already correct.
2011-04-14s3: Fix smbd with the async echo responderVolker Lendecke1-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
2011-04-14s3: Fix a typoVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Apr 14 11:55:56 CEST 2011 on sn-devel-104
2011-04-14s3-lib Move strisnormal to it's only user in mangle_hash.cAndrew Bartlett1-0/+13
2011-04-14s3: only include smb profiling where needed.Günther Deschner13-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
2011-04-13Don't print "success" message after error message in ↵Jeremy Allison1-9/+8
change_file_owner_to_parent(). Remove "goto" in change_dir_owner_to_parent().
2011-04-13s3-rpc_client: add and use rpc_client/rpc_client.h.Günther Deschner2-0/+2
Guenther
2011-04-13s3: Make send_nt_replies() staticVolker Lendecke2-8/+4
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Apr 13 16:25:29 CEST 2011 on sn-devel-104
2011-04-13s3-lib Move strdup_w to it's only user in mangle_hash.cAndrew Bartlett1-0/+19
Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13s3-lib Move isvalid83_w to mangle_hash.cAndrew Bartlett1-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>
2011-04-11s3-smbd: Added a become_user_by_session() function.Andreas Schneider2-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>
2011-04-11s3-smbd: Added a change_to_user_by_session() function.Andreas Schneider2-74/+98
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-08Subtle change. Microsoft SMB2 tests return different access mask than for ↵Jeremy Allison1-1/+12
SMB1 with raw.acls.
2011-04-05Fix bug #7080 - Quota only shown when logged as root.Jeremy Allison2-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
2011-04-05s3-auth Rename user_session_key -> session_key to match auth_session_infoAndrew Bartlett2-3/+3
2011-04-05s3-auth use create_local_token() to transform server_info -> session_infoAndrew Bartlett3-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
2011-04-04Move SET_STAT_INVALID call added by Volker as fix for bug 8042 - Newly ↵Jeremy Allison1-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
2011-04-04Note that check_parent_exists() doesn't change the contents of smb_fname ↵Jeremy Allison1-1/+1
(add const).
2011-04-04s3-auth consolidate create_local_token() into make_server_info_krb5()Andrew Bartlett2-37/+5
This ensures that all callers don't need to each add builtin groups and privileges to the user's token Andrew Bartlett
2011-04-03s3: Fix bug 8042: File creation on OS/XVolker Lendecke1-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
2011-04-01Fix bug #8047 - mdns registration doesn't work if "interfaces" is used in ↵Marc A. Dahlhaus1-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
2011-03-30Fix bug #7996 - sgid bit lost on folder rename.Jeremy Allison3-1/+23
Refuse to set dos attributes into unix mode bits on such a folder.
2011-03-30Fix convert_string() to take a *converted_size arg. and return a bool.Jeremy Allison1-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
2011-03-30s3-smbd: try to fix the irix build.Günther Deschner1-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
2011-03-30s3: try to fix the build on some non-linux buildfarm machines.Günther Deschner1-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
2011-03-30s3: Fix Coverity ID 2236: REVERSE_INULLVolker Lendecke1-3/+1
We have already dereferenced "b", and the other calls in this loop can only have worked with a valid handle
2011-03-30s3: Fix Coverity ID 2304: FORWARD_NULLVolker Lendecke1-3/+1
2011-03-30s3: only include ntioctl.h where needed.Günther Deschner2-0/+2
Guenther
2011-03-30s3-includes: only include ntdomain.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner13-13/+0
Guenther
2011-03-30s3-messages: only include messages.h where needed.Günther Deschner14-0/+14
Guenther
2011-03-30s3-prototyes: user_in_netgroup and user_in_list moved to auth, out of smbd.Günther Deschner1-2/+0
Guenther
2011-03-30s3-auth: smbd needs auth.hGünther Deschner25-0/+25
Guenther
2011-03-30s3-libsmb: put namequery headers to nmblib.hGünther Deschner1-0/+1
We might find a better name for it and merge other namequery related things as well here... Guenther
2011-03-30s3-locking: move locking prototypes out of proto.h.Günther Deschner1-0/+1
Will later become part of locking.h Guenther
2011-03-30s3: include smbd/smbd.h where needed.Günther Deschner81-0/+81
Guenther
2011-03-30s3-smbd: add smbd.h and move smbd prototypes to smbd/proto.h.Günther Deschner2-0/+1157
Guenther
2011-03-30s3: move filename_util.c out of source3/smbd to source3/lib.Günther Deschner1-206/+0
Guenther
2011-03-30s3-passdb: use passdb headers where needed.Günther Deschner10-0/+10
Guenther
2011-03-30s3-build: only include transfer_file.h where needed.Günther Deschner2-0/+2
Guenther