1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source3
Jeremy Allison d46d7717c7 Simplify the logic in make_connection_snum(), and make it match Windows behavior.
Cause all exit paths to go through one place, where all cleanup is
done. change_to_root_user() for pathname operations that should succeed if
the path exists, even if the connecting user has no access.

For example, a share can now be defined with a path of /root/only/access
(where /root/only/access is a directory path with all components only
accessible to root e.g. root owned, permissions 700 on every component).
Non-root users will now correctly connect, but get ACCESS_DENIED on
all activities (which matches Windows behavior). Previously, non-root
users would get NT_STATUS_BAD_NETWORK_NAME on doing a TConX to this
share, even though it's a perfectly valid share path (just not accessible
to them).

This change was inspired by the research I did for bug #7126, which
was reported by bepi@adria.it.

As this is a change in a core function, I'm proposing to leave
this only in master for 3.6.0, not back-port to any existing releases.
This should give us enough time to decide if this is the way we want this to
behave (as Windows) or if we prefer the previous behavior.

Jeremy.
2010-02-12 22:45:37 -08:00
..
auth s3: Remove some calls to memset -- reduces text size by some bytes for me 2010-01-24 14:52:33 +01:00
client s3: Make cli_get_fs_volume_info() use cli_trans() 2010-02-07 12:29:25 +01:00
exports
groupdb s3: Replace most calls to sid_append_rid() by sid_compose() 2010-01-10 20:56:16 +01:00
include s3:ctdb_conn: add ctdbd_conn_get_fd() to get the fd out of the ctdb connection 2010-02-12 23:12:12 +01:00
iniparser
iniparser_build
intl
lib Fix warning messages on compile in g_lock.c Volker & Michael please check. 2010-02-12 22:21:19 -08:00
libaddns Do not redefine strupr 2009-09-02 13:02:39 +02:00
libads Fix bug #7079 - cliconnect gets realm wrong with trusted domains. 2010-01-30 19:24:28 -08:00
libgpo Fix Coverity ID 913 (NEGATIVE_RETURNS) -- gd, please check! 2009-05-03 23:06:01 +02:00
libnet idl: switched to using the WSPP names for the 'neighbour' DRS options 2010-01-18 07:25:18 +11:00
librpc s3: Implement global locks in a g_lock tdb 2010-02-12 23:12:09 +01:00
libsmb s3-libsmb: update libsmb to use new DLIST macros 2010-02-10 15:38:48 -08:00
locale s3: fix some wrong newlines in de translation strings 2010-02-09 10:11:33 +01:00
locking s3-locking: update to use DLIST_ADD_AFTER() 2010-02-10 15:40:44 -08:00
m4 s3 aclocal.m4: Fix iconv checks, clean up m4 code 2009-12-04 09:47:25 +01:00
modules Fix bad use when freeing linked list. Todd Stecher (Original author) please check ! 2010-02-10 16:23:33 -08:00
nmbd Fix unused variable warning after change to new DLINK macros. 2010-02-10 17:20:21 -08:00
pam_smbpass s3:pam_smbpass: fix build error on some Linux distros 2009-07-03 09:34:21 +02:00
param Remove lp_safe_widelinks() -> convert to just lp_widelinks. Suggestion from Volker. 2010-02-11 15:16:23 -08:00
passdb s3: change ldap filter to what really was intended 2010-02-10 13:48:11 +01:00
pkgconfig
po Revert "s3: Update i18n files" 2009-08-07 09:54:52 +02:00
printing s3: Replace most calls to sid_append_rid() by sid_compose() 2010-01-10 20:56:16 +01:00
profile s3:smbd: Fix bug 6690, wrong error check 2009-09-08 17:39:51 +02:00
registry s3:registry: eliminate race condition in creating/scanning sorted subkeys 2010-02-12 23:12:12 +01:00
rpc_client s3: Remove some unused variables 2010-01-10 22:43:02 +01:00
rpc_parse s3: Remove debug_ctx() 2009-11-03 11:30:00 +01:00
rpc_server spoolss: allow to set server architecture via parametric option. 2010-02-11 13:29:59 +01:00
rpcclient s3: Enable -C in rpcclient 2010-01-24 20:32:17 +01:00
script Torture test for bug 7084 - Create time on directories not stored properly in an EA in new create time code. 2010-02-01 18:49:50 -08:00
selftest s3 test: Make the netbios name test pass again 2010-02-11 23:56:36 +01:00
services s3-registry: use pull_reg_sz() where appropriate. 2009-10-01 11:40:30 +02:00
smbd Simplify the logic in make_connection_snum(), and make it match Windows behavior. 2010-02-12 22:45:37 -08:00
stf
tests
torture s3:torture: add a test LOCAL-DBTRANS to torture dbwrap with transactions. 2010-02-12 23:12:09 +01:00
utils s3:make "net conf addshare" atomic by wrapping all writes in one transaction 2010-02-12 23:12:12 +01:00
web s3: Show share path in swat statuspage 2010-01-18 10:17:05 +01:00
winbindd s3: Don't invalidate cache for uninitialized domains. 2010-02-09 17:06:14 +08:00
.dmallocrc
.indent.pro
autogen.sh Tell newbie devs about ./configure.developer 2009-09-06 12:01:05 +02:00
change-log Fix typo. 2009-10-19 09:47:33 +02:00
config.guess Update copies of config.guess and config.sub. 2009-05-16 04:03:12 +02:00
config.sub Update copies of config.guess and config.sub. 2009-05-16 04:03:12 +02:00
configure.developer
configure.in s3:build: remove checks for deprecated ctdb controls. 2010-02-12 23:12:10 +01:00
Doxyfile
dynconfig.c
install-sh
localedir.c
mainpage.dox
Makefile.in s3: Implement global locks in a g_lock tdb 2010-02-12 23:12:09 +01:00
samba4-templates.mk
samba4.m4 s4-smbtorture: add rather simple libsmbclient torture testsuite. 2010-01-14 19:48:29 +01:00
samba4.mk Fix "make install" by removing all references to python. Not currently 2009-10-20 13:42:28 -07:00
smbadduser.in
VERSION s3/VERSION: Raise version number up to 3.6.0. 2009-10-01 14:50:28 +02:00