summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
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
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner20-0/+20
Guenther
2011-03-30s3-includes: only include system/passwd.h when needed.Günther Deschner3-0/+3
Guenther
2011-03-30s3-trans2: only include trans2.h where needed.Günther Deschner5-0/+5
Guenther
2011-03-30lib/util/util_pw: share sys_get{pw,gr} group of calls.Günther Deschner1-0/+1
Guenther
2011-03-29s3-spoolssd: Start the spoolss service correctly.Andreas Schneider1-1/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-29s3-spoolssd: Pass down event and messanging context.Andreas Schneider1-2/+4
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-29s3:spoolssd Start spoolss from smbdSimo Sorce1-0/+15
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-27s3: Fix Coverity ID 2329: RESOURCE_LEAKVolker Lendecke1-0/+1
2011-03-27s3: Fix Coverity ID 2330: RESOURCE_LEAKVolker Lendecke1-0/+1
2011-03-26Revert "Fix bug 8021 - Incorrect string termination in volume/volume_name ↵Jeremy Allison1-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
2011-03-24Fix bug 8021 - Incorrect string termination in volume/volume_name for ↵Volodymyr Khomenko1-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
2011-03-24charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell6-6/+6
convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
2011-03-23s3-globals: silence build warning in smbd_messaging_context().Günther Deschner1-0/+1
Guenther
2011-03-23s3-safe_string: Add checked_strlcpy()Andrew Bartlett1-1/+1
This is strlcpy, just with an extra check of the parameters with sizeof(), use only where that works. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 23 03:39:35 CET 2011 on sn-devel-104
2011-03-23s3-lib Remove the clobber_region() code.Andrew Bartlett1-3/+2
This code wrote to the full buffer in fstrcpy(), pstrcpy() and other fixed-length string manipulation functions. The hope of this code was to find out at run time if we were mixing up pstring and fstring etc, and to record where this came from. It has a runtime performance impact (particularly if compiled with --enable-developer). It is being removed because of the complexity it adds, and the distinct lack of bugs that this complexity has been credited in finding. The macro-based compile-time checking of string sizes remains. Andrew Bartlett
2011-03-23s3-config: say which config file we failed to openAndrew Tridgell1-1/+1
saves having to strace it to work that out
2011-03-23fault: get fault.c ready for use by s4Andrew Tridgell1-1/+1
this moves the s3 specific dumpcore code into source3/lib/dumpcore.c, and uses a function pointer to setup which smb_panic call to use
2011-03-22s3-fault: removed the cont_fn from fault_setup()Andrew Tridgell2-6/+1
cont_fn() was supposed to be a way to continue after a seg fault. It could never be called however, as smb_panic() from fault_report() could never return, as dump_core() never returns at the end of smb_panic() Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Mar 22 05:07:58 CET 2011 on sn-devel-104
2011-03-21s3:smbd: access checks should not depend on share mode flagsStefan Metzmacher1-1/+0
metze
2011-03-19s3:smbd: remove uses of "./" in unlink_internals()Stefan Metzmacher1-4/+0
Commit 78b931ce6c840ade646c1c6030fa2d6acb77208b tried to do that, but didn't have any effect. metze
2011-03-18SMB2 renames return SHARING_VIOLATION if there is any existing oplock on a file.Jeremy Allison1-0/+6
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Mar 18 23:39:49 CET 2011 on sn-devel-104