summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* VERSION: Disable git snapshots for the 4.2.8 release.samba-4.2.8Karolin Seeger2016-02-011-1/+1
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* WHATSNEW: Add release notes for Samba 4.2.8.Karolin Seeger2016-02-011-2/+74
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* s4:torture: add SMB2 test for directory creation initial allocation sizeRalph Boehme2016-01-261-0/+64
| | | | | | | | | | | | | | | | | | Test that directory creation with an initial allocation size > 0 succeeds. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11684 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Sun Jan 24 01:20:52 CET 2016 on sn-devel-144 (cherry picked from commit cd86f20e245cc1b0cb3be5d6cb1b45c45e2a45a8) Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-2-test): Tue Jan 26 23:51:46 CET 2016 on sn-devel-104
* s3:smbd: Ignore initial allocation size for directory creationRalph Boehme2016-01-261-7/+3
| | | | | | | | | | | | | We reject directory creation with an initial allocation size > 0 with NT_STATUS_ACCESS_DENIED. Windows servers ignore the initial allocation size on directories. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11684 Pair-Programmed-With: Volker Lendecke <vl@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 78ccbb07170c3e49a084d31434310f973e3d6158)
* smbcacls: fix uninitialized variableUri Simchoni2016-01-211-1/+1
| | | | | | | | | | | | | | | | | | An uninitialized variable causes "numeric" mode to be used without the -n option. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11682 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Jan 20 12:12:12 CET 2016 on sn-devel-144 (cherry picked from commit 6cff00954763a7b266db5bab229b989e89abcee0) Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-2-test): Thu Jan 21 13:27:02 CET 2016 on sn-devel-104
* s3:smbd/oplock obey kernel oplock setting when releasing oplocksChristian Ambach2016-01-151-1/+2
| | | | | | | | | | | | | | | | | otherwise smbd asks the kernel to release an oplock that was never requested Bug: https://bugzilla.samba.org/show_bug.cgi?id=11400 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jan 6 08:58:56 CET 2016 on sn-devel-144 (cherry picked from commit eda6aaf1533b69d093ba67ff5e22fcda0073dd3f) Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-2-test): Fri Jan 15 12:43:32 CET 2016 on sn-devel-104
* s3:smbd: fix a corner case of the symlink verificationMichael Adam2016-01-061-25/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 7606c0db257b3f9d84da5b2bf5fbb4034cc8d77d fixes the path checks in check_reduced_name[_with_privilege]() to prevent unintended access via wide links. The fix fails to correctly treat a corner case where the share path is "/". This case is important for some real world scenarios, notably the use of the glusterfs VFS module: For the share path "/", the newly introduced checks deny all operations in the share. This change fixes the checks for the corner case. The point is that the assumptions on which the original checks are based are not true for the rootdir "/" case. This is the case where the rootdir starts _and ends_ with a slash. Hence a subdirectory does not continue with a slash after the rootdir, since the candidate path has been normalized. This fix just omits the string comparison and the next character checks in the case of rootdir "/", which is correct because we know that the candidate path is normalized and hence starts with a '/'. The patch is fairly minimal, but changes indentation, hence best viewed with 'git show -w'. A side effect is that the rootdir="/" case needs one strncmp less. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11647 Pair-Programmed-With: Jose A. Rivera <jarrpa@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Jose A. Rivera <jarrpa@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Dec 24 00:57:31 CET 2015 on sn-devel-144 (cherry picked from commit ada59ec7b3a5ed0478d11da2fe0c90991d137288) Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-2-test): Wed Jan 6 12:37:19 CET 2016 on sn-devel-104
* s3: libsmb: Correctly initialize the list head when keeping a list of ↵Jeremy Allison2016-01-061-2/+2
| | | | | | | | | | | | | | | | | primary followed by DFS connections. Greatly helped by <shargagan@novell.com> to track down this issue. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11624 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Dec 18 01:02:55 CET 2015 on sn-devel-144 (cherry picked from commit d7feb1879ee711598540049c2c5eccc80fd6f1e5)
* vfs_streams_xattr: fix and simplify streams_xattr_get_name()Ralph Boehme2016-01-061-20/+19
| | | | | | | | | | | | | | | | | | | | streams_xattr_get_name() fails to chop off the stream type in case config->store_stream_type is false and the passed stream name contains a stream type. Eg when the passed in stream name is ":mystream:$DATA", but config->store_stream_type is false, we must generate a xattr name of "mystream" or "user.mystream". Bug: https://bugzilla.samba.org/show_bug.cgi?id=11466 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 16 23:27:01 CEST 2015 on sn-devel-104 (cherry picked from commit 2881679e3ecbaf07cdd82ba65af8d55e5e3be800)
* vfs_fruit: hide the Netatalk metadata xattr in streaminfoRalph Boehme2016-01-061-2/+49
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11466 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit fedd09662c889fb796135d86836c160171fac68d)
* vfs_fruit: add and use define for the Netatalk metadata xattrRalph Boehme2016-01-061-2/+3
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11466 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit c8ee1a059b4484575b03ac76b469df85cdabdd9a)
* s4:torture:vfs_fruit: add test test_read_afpinfoRalph Boehme2016-01-061-0/+79
| | | | | | | | | | | This works against any SMB server and test basic IO on the AFP_AfpInfo stream. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit b165d520374cc2ae77acfd813b528e55acfc2f7e)
* s4:torture:vfs_fruit: add tests for AFP_Resource delete-on-close and eofRalph Boehme2016-01-061-0/+293
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 21d4b5cea8e4dec729912915d60922edaea0f418)
* vfs_fruit: ignore delete on the AFP_Resource streamRalph Boehme2016-01-061-21/+2
| | | | | | | | | | | OS X ignores deletes on the AFP_Resource stream. This was discovered by torture tests against OS X SMB server. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit ee431fc5254dc735662d152dd19a81d439ca5e44)
* s4:torture:vfs_fruit: update AFP_AfpInfo IO testsRalph Boehme2016-01-061-3/+3
| | | | | | | | | | | | | | | When reading from the AFP_AfpInfo stream, OS X ignores the offset from the request and always reads from offset=0. The offset bounds check has a off-by-1 bug in OS X, so a request offset=60 (AFP_AfpInfo stream has a ficed size of 60 bytes), len=1 returns 1 byte from offset 0 insteaf of returning 0. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit decde0b4812eba5f80b717fd2ae868558a022753)
* vfs_fruit: fix offset and len handling for AFP_AfpInfo streamRalph Boehme2016-01-061-3/+12
| | | | | | | | | | | | | | | When reading from the AFP_AfpInfo stream, OS X ignores the offset from the request and always reads from offset=0. The offset bounds check has a off-by-1 bug in OS X, so a request offset=60 (AFP_AfpInfo stream has a ficed size of 60 bytes), len=1 returns 1 byte from offset 0 insteaf of returning 0. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit f569fd5e44300ab41aa7298b3efdcac99cd330f2)
* s4:torture:vfs_fruit: test nulling out AFP_AfpInfo streamRalph Boehme2016-01-061-0/+53
| | | | | | | | | | This must delete the stream. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 666a55b7060542ef78ff5f22d368f2ebc4c3318f)
* vfs_fruit: writing all 0 to AFP_AfpInfo streamRalph Boehme2016-01-061-0/+17
| | | | | | | | | | | | When writing all 0 to AFP_AfpInfo stream we can remove the underlying storage object. This beaviour of OS X SMB server was found with a torture test. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit e94b17715ea8049df8819b472178170b8e987946)
* s4:torture:vfs_fruit: add tests for AFP_AfpInfo delete-on-close and eofRalph Boehme2016-01-061-0/+295
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit e5588b463ee77aac3b396774e68c10b13a9f6f04)
* vfs_fruit: handling of ftruncate() on AFP_AfpInfo streamRalph Boehme2016-01-061-8/+12
| | | | | | | | | | | | | | | | With help of some torture tests I verified the following behaviour of OS X SMB server: * ftruncate AFP_AfpInfo stream > 60 bytes results in an error NT_STATUS_ALLOTTED_SPACE_EXCEEDED * ftruncate AFP_AfpInfo stream <=60 returns success but has no effect Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 4024153894a07b7b1115dbe1699cba94fee13f23)
* s4:torture:vfs_fruit: file without AFP_AfpInfoRalph Boehme2016-01-061-0/+38
| | | | | | | | | | | Opening the AFP_AfpInfo on a file that doesn't have that stream must return ENOENT. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 6f8c188dfc81a6d22bd54f248327b787e0b48f09)
* vfs_fruit: stat AFP_AfpInfo must fail when it doesn't existRalph Boehme2016-01-061-0/+11
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 0af7bf4249419ff7c88c5beece915db0a3697b72)
* vfs_fruit: fix some debug messagesRalph Boehme2016-01-061-6/+4
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 748adea77f95d7d6114f96b7850f384b77d6f7d2)
* s3:lib/errmap_unix: map EOVERFLOW to NT_STATUS_ALLOTTED_SPACE_EXCEEDEDRalph Boehme2016-01-061-0/+3
| | | | | | | | | | | | | | vfs_fruit returns the correct error NT_STATUS_ALLOTTED_SPACE_EXCEEDED when an attempt is made to extend the AFP_AfpInfo stream beyond 60 bytes. This will be used in a subsequent commit in vfs_fruit. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 1650e793edb42b07501d7467aa64c80eacf33eb6)
* s4:torture:vfs_fruit: fix flakey test_write_atalk_rfork_io with OS XRalph Boehme2016-01-061-2/+1
| | | | | | | | | | Adjust desired_access to prevent flaky test with OS X SMB server. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit ba00884e8a67420cf8d6c2530a778b9cee6e86b8)
* s4:torture:vfs_fruit: fix test_rename_dir_openfile() to work with OS XRalph Boehme2016-01-061-26/+26
| | | | | | | | | | | | | | OS X allows renaming of directories with open files regardless of AAPL negotiation. Samba will only allow this after negotiating AAPL. The first check in this test is that renaming fails without AAPL, so skip this test if the server is OS X. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 363260983f7ec85ecd3a2b35e6b07eeb5416bdc5)
* s4:torture:vfs_fruit: fix test_aapl() to work with OS XRalph Boehme2016-01-061-8/+7
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 0fc2ed8f01f2e510ee58ad2ea9209d2fec10fd3f)
* s4:torture:vfs_fruit: skip test_stream_names() without "localdir"Ralph Boehme2016-01-061-0/+6
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 56bf27667cc8f2fad0cad96d796bdd2f172326a8)
* s4:torture:vfs_fruit: skip test_adouble_conversion() without "localdir"Ralph Boehme2016-01-061-0/+6
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 987e12b7a7518e498c47dd8dfee32aed148f8cd7)
* s4:torture:vfs_fruit: skip test test_read_atalk_metadata() without ↵Ralph Boehme2016-01-061-9/+18
| | | | | | | | | | | | | | | "localdir" and rename it The test is Netatalk specific. Skip the test if "localdir" is not specified. Use torture_assert() to check the result from check_stream(). Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 0a9a7c21073227c539fc1ced331e837c1c1f4bc4)
* s4:torture:vfs_fruit: add explicit cleanup of testfilesRalph Boehme2016-01-061-3/+8
| | | | | | | | | | | | smb2_deltree() doesn't work with OS X (looks like OS X doesn't handle FILE_NON_DIRECTORY_FILE correctly). As a workaround, use explicit cleanup of all testfiles and directories. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 155397e83173e13baebfc507ad9659d0ed213b5b)
* s4:torture:vfs_fruit: add --option=torture:osx for enable_aapl()Ralph Boehme2016-01-061-1/+7
| | | | | | | | | | | Check if the server is OS X and don't check the AAPL context size if it is. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 3c0ac9b3899aa06315e592253c858f31d4bd2ae3)
* s4:torture:vfs_fruit: enhance check_streamRalph Boehme2016-01-061-17/+22
| | | | | | | | | | Don't sleep when create fails and use torture_ macros. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit fdf937e77da29ec47002855db69d9e3f95005479)
* s4:torture:vfs_fruit: use AFPINFO_STREAM_NAMERalph Boehme2016-01-061-7/+7
| | | | | | | | | | | | I got erratic results from OS X SMB server with AFPINFO_STREAM (":AFP_AfpInfo:$DATA") in some tests. Using AFPINFO_STREAM_NAME (just the ":AFP_AfpInfo" part) instead fixed this. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 8694da43442abe3ae6ac3b6a16c524e455ae1a65)
* s4:torture:vfs_fruit: tweak check_stream_list()Ralph Boehme2016-01-061-36/+33
| | | | | | | | | | | | Modify check_stream_list() to open the basefile (or directory) itself insteaf of having the callers pass in a filehandle. Removes some code duplication in the callers. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 8e0cf77ee230c0eaef01a2dc2316fc65aabd5a59)
* s4:torture:vfs_fruit: rename tree1 -> treeRalph Boehme2016-01-061-114/+114
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 1d13744547474592285eacab84d1217af46e0086)
* s4:torture:vfs_fruit: remove unused tree2Ralph Boehme2016-01-062-34/+24
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 9d28f82484e8b34c8d8f35f596fdb63614b103d2)
* docs: Fix typos in man vfs_gpfs.Karolin Seeger2015-12-181-3/+3
| | | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11641 Duplicate "acl map full control" entry in man vfs_gpfs Signed-off-by: Karolin Seeger <kseeger@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 79df4caed3b819cc1cd67c4033f3ac700086ab99) Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-2-test): Fri Dec 18 12:54:37 CET 2015 on sn-devel-104
* smbd: make "hide dot files" option work with "store dos attributes = yes"Ralph Boehme2015-12-181-1/+1
| | | | | | | | | | | | | When using "store dos attributes = yes", the function that reads the attributes from the xattr get_ea_dos_attribute() will overwrite the attribute previously set for "hide dot files". According to smb.conf, "store dos attributes = yes" should only overwrite the "map XXX" options, but not "hide dot files". Bug: https://bugzilla.samba.org/show_bug.cgi?id=11645 Signed-off-by: Ralph Boehme <slow@samba.org>
* lib/async_req: do not install async_connect_send_test.Günther Deschner2015-12-181-1/+2
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11639 Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 632114584d3be0d4660e97a6c9e69e577a7bc1e2)
* lib/param: add a fixed unified lpcfg_string_{free,set,set_upper}() ↵Jeremy Allison2015-12-182-135/+130
| | | | | | | | | | | | | | | | | | | | | | | | infrastructure This reduces the memory footprint of empty string options. smbd -d1 -i with 1400 shares in smb.conf under x64 valgrind massif before this patch has 7,703,392 bytes peak memory consumption and after this patch 3,321,200 bytes. This fixes a regression introduced by commit 2dd7c890792cf12049ec13b88aa4e9de23035f9d. BUG: Bug: https://bugzilla.samba.org/show_bug.cgi?id=11625 Back-port of commit a84eed532549c1dbad43f963838bc5f13c4fe68d from master. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:torture:vfs_fruit: add a test for POSIX renameRalph Boehme2015-12-181-0/+201
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11065 Signed-off-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 0f0693d0fa5fa991bb573525f332eba5ceb6ece6)
* vfs_fruit: enable POSIX directory rename semanticsRalph Boehme2015-12-181-0/+7
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11065 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 1d7bef5a75403f5baec13aa6264dfe763a4b278a)
* vfs_fruit: add a flag that tracks whether use of AAPL was negotiatedRalph Boehme2015-12-181-9/+17
| | | | | | | | | | | | Add a flag that tracks whether use of AAPL was negotiated, ensuring we don't enable AAPL features for clients that didn't negotiate it. Torture test that need AAPL must call the new function enable_aapl(). Bug: https://bugzilla.samba.org/show_bug.cgi?id=11065 Signed-off-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 89a7394d679b383920d73fef0d178b8f84bc393f)
* s3:smbd: file_struct: seperate POSIX directory rename cap from POSIX openRalph Boehme2015-12-182-2/+4
| | | | | | | | | | | | | | | | | | | | | We need more fine grained control over which POSIX semantics we'd like to enable per file handle. Currently POSIX_FLAGS_OPEN is a kitchensink for all kinds of stuff like: - POSIX unlink - POSIX byte-range locks - POSIX rename - delayed writetime update - more... For CIFS UNIX extensions we use POSIX_FLAGS_ALL so semantics are preserved. OS X clients will enable POSIX rename via AAPL. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11065 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit bf1957584e341473edcd5025b7f77766440d408b)
* s3:smbd: convert file_struct.posix_open to a bitmap with flagsRalph Boehme2015-12-1810-19/+33
| | | | | | | | | | | | | | This is in preperation of a more fine grained control of POSIX behaviour in the SMB and VFS layers. Inititally we use an uint8_t for the flags bitmap and add a define posix_flags as posix_open in order to avoid breaking the VFS ABI. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11065 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit d698cec1c7e700e57cab46d33df0dde13303b318)
* VERSION: Bump version up to 4.2.8...Karolin Seeger2015-12-161-2/+2
| | | | | | and re-enable git snapshots. Signed-off-by: Karolin Seeger <kseeger@samba.org>
* Merge tag 'samba-4.2.7' into v4-2-testKarolin Seeger2015-12-1616-71/+351
|\ | | | | | | samba: tag release samba-4.2.7
| * VERSION: Disable git snapshots for the 4.2.7 release.samba-4.2.7Karolin Seeger2015-12-101-1/+1
| | | | | | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
| * WHATSNEW: Add release notes for Samba 4.2.7.Karolin Seeger2015-12-101-3/+148
| | | | | | | | | | | | | | This is a security to address CVE-2015-3223, CVE-2015-5252, CVE-2015-5299, CVE-2015-5296, CVE-2015-8467, CVE-2015-5330. Signed-off-by: Karolin Seeger <kseeger@samba.org>