summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* VERSION: Bump version up to 3.6.2.Karolin Seeger2011-10-201-1/+1
| | | | | Karolin (cherry picked from commit dc07af2c40d7d57cb27b1fe18c821e3bd8f711c1)
* Fix uninitialized memory problem in group_sids_to_info3 (fixes bug #8455).Wilco Baan Hofman2011-10-181-2/+2
| | | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 17 23:32:58 CEST 2011 on sn-devel-104 (cherry picked from commit c52b571506874987ba626c25e9692fbe2251b7e2) (cherry picked from commit 31c00e9314e735505590f98565dcb5aa58453d0e)
* Fix bug #8521 - winbindd cache timeout expiry test was reversedJeremy Allison2011-10-151-1/+1
| | | | | | Found and fix reported by Micha Lenk <micha@lenk.info>. Thanks ! (cherry picked from commit 1e4761d05978b7a495d121acc1deaa7049f3911c) (cherry picked from commit 78c8a1f74042738d6028636902cdb575a4359443)
* s3: Fix bug 8455 -- Samba PDC is looking up only primary user groupVolker Lendecke2011-10-151-7/+7
| | | | | | | | | | | group_sids_to_info3 does a sid_peek_check_rid on the domain sid before adding the rids to the array. If the domain sid is 0x0, then the check will always fail. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Sep 17 00:51:27 CEST 2011 on sn-devel-104 (cherry picked from commit 3dcec44f3edbc9c4f1946ead3480f6d01cd53e7a) (cherry picked from commit 095a8c2c42c8af5563bb7e0657bf2c2806d5da25)
* Another part of the fix for Bug 8473 - smb2_find uses a hard coded max reply ↵Jeremy Allison2011-10-151-3/+3
| | | | | | | | | | | | | size of 0x10000 instead of smb2_max_trans. Change the defaults and the documentation to reflect the 64k limit. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Oct 13 12:22:23 CEST 2011 on sn-devel-104 (cherry picked from commit d2a9e8df35be1516f22f0ef78356de6d4b02d4d3) (cherry picked from commit a97cbf014efed5c85447d6478d4fc6803828bc8b)
* s3:smb2_server: get/set info are limited by max_trans size (bug #8473)Stefan Metzmacher2011-10-152-0/+11
| | | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Oct 13 03:32:02 CEST 2011 on sn-devel-104 (cherry picked from commit 5e04231e961f10656384a6f16104d0d55b6f3e0e) (cherry picked from commit 76ee6a961e4d0e32f425ecec6fe3f7633c96e584)
* s3:smb2_server: reject writes larger then the negotiated max_write size (bug ↵Stefan Metzmacher2011-10-151-2/+0
| | | | | | | | #8473) metze (cherry picked from commit 6981f1114792cc251bf1e05183dd88f5d351ab09) (cherry picked from commit 8453b6b274b94d151229014ac3feb0d67a7e4513)
* s3:smb2_server: remember the max_{trans,read,write} sizes we negotiated (bug ↵Stefan Metzmacher2011-10-156-8/+12
| | | | | | | | | | | #8473) We should enforce the negotiated max sizes instead of the lp_smb2_max_*() sizes. metze (cherry picked from commit 40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb) (cherry picked from commit 9c0650a066812dd6306463738c3d5a3823938c2c)
* s3:smbd: disconnect the socket if we got an unexpected requestStefan Metzmacher2011-10-152-1/+20
| | | | | | | | | | | | | If we got a SMB2_OP_NEGPROT after the protocol is already negotiated or if we got a non SMB2_OP_NEGPROT before the protocol was negotiated we should close the connection (as windows does). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Sep 23 12:30:50 CEST 2011 on sn-devel-104 (cherry picked from commit 5494856294384df4360d85e68abc03c43dc16e06) (cherry picked from commit 8d54841f640212a5c3d026df3fbfd1f7c99ac7f7)
* s3:smb2_server: max_trans, max_read and max_write are limited to 64 kilobytesStefan Metzmacher2011-10-151-3/+17
| | | | | | | | Only if SMB2_CAP_LARGE_MTU is supported we should announce larger limits. metze (cherry picked from commit e603929b9801ad6cc47dead19d27b42fe46489c7) (cherry picked from commit 84b4cd03a17e84ffd311b99ec73846a29507418d)
* Fix bug #8515 - Empty CIFS share can be blocked for other clients by ↵Volodymyr Khomenko2011-10-151-0/+8
| | | | | | | | | | | deleting it via empty path (DELETE_PENDING until the last client) Disallow "." in can_set_delete_on_close(). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 12 21:07:27 CEST 2011 on sn-devel-104 (cherry picked from commit bd260f03ab492d03c2890db47dc6fb4f1b824a1a) (cherry picked from commit 0953c4b9ebc06518920b9d49de16dfaeb7d69a35)
* s3-smb2_server: fix ioctl InputOffset checkingDavid Disseldorp2011-10-121-1/+10
| | | | | | | | | | | | Currently the InputOffset is always check to point to the input data buffer, regardless of whether input data is present. Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit dbcd59f46b0d2125dfb6eb82b3d92be228c6ae4b) The last 22 patches addres bug #8520 (Fix SMB2 SMB2_OP_GETINFO and SMB2_OP_IOCTL parsing requirements). (cherry picked from commit 18d7c0cd25b1fe09a361a332a9191c92bb5a315e)
* s3-smb2_server: SMB2_OP_IOCTL doesn't require at least 1 dyn byteDavid Disseldorp2011-10-121-0/+1
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 18482957daa2e2122ef39426a8fff167df3c9377) (cherry picked from commit e68fae451f4e1feb48484d0e28ed5fad1df7ca55)
* s3:smb2_server: SMB2_OP_GETINFO doesn't require at least 1 dyn byteStefan Metzmacher2011-10-121-1/+13
| | | | | | metze (cherry picked from commit 563fa741f6a34a1300c81a8474ca87346a9f5cca) (cherry picked from commit 349a7a5005609fadbec71d7a033b95757f23a59a)
* s3:smb2_server: return OBJECT_NAME_INVALID if the path is terminated in ↵Stefan Metzmacher2011-10-121-0/+8
| | | | | | | | | | | SMB2_FIND/QUERY_DIRECTORY metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Sep 7 12:15:51 CEST 2011 on sn-devel-104 (cherry picked from commit 9bc4decc1cba701926fc8081c3903aac754a6f51) (cherry picked from commit fdb15df44a5ee4101b9e0c9bcdd07e48f6ce24fc)
* s3:smb2_server: return OBJECT_NAME_INVALID if the path is terminated in ↵Stefan Metzmacher2011-10-121-0/+8
| | | | | | | | SMB2_CREATE metze (cherry picked from commit 1bc93c2605e14104237bb100db1d8acb1e7fe389) (cherry picked from commit 52d0bde69a67c1a3a6798b496eec75ca1d3259f2)
* s3:smb2_server: return BAD_NETWORK_NAME if the path is terminated in SMB2_TCONStefan Metzmacher2011-10-121-0/+8
| | | | | | metze (cherry picked from commit 68b33aa61ac393c2737969f8449adce3e3096d73) (cherry picked from commit fb1c61880c962f26a28a45ffc9c8680edad65488)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_write.cStefan Metzmacher2011-10-121-12/+6
| | | | | | metze (cherry picked from commit 1a726b88ec74962d0317740bbdf576ddcffb52bc) (cherry picked from commit 10e5d1c6361fb309de0b2dd291deefb69c6506e6)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_setinfo.cStefan Metzmacher2011-10-121-13/+5
| | | | | | metze (cherry picked from commit 3643a05ba63ac5d8466dc8391b5d05efeedb5ac4) (cherry picked from commit 56b765a8663f59d247f970af8273ba749f094cae)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_read.cStefan Metzmacher2011-10-121-11/+5
| | | | | | metze (cherry picked from commit f3a8d65bdfe496f080a74eb7104500bd8e2b0179) (cherry picked from commit ecfbe10edab6bd1a6a30cc4e1a19f3289d58455c)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_notify.cStefan Metzmacher2011-10-121-12/+4
| | | | | | metze (cherry picked from commit c6480366e551d1dc683c2648bd897bdc7c1b90df) (cherry picked from commit c9e510cd3d509999d6a6ed813c2a4ebff7b5456c)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_lock.cStefan Metzmacher2011-10-121-11/+5
| | | | | | metze (cherry picked from commit a358eee2d8670d4a1675e82562fa704fa45a71e6) (cherry picked from commit 12869c065fe164e02425ef44f4879b11ea0e7baf)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_keepalive.cStefan Metzmacher2011-10-121-13/+4
| | | | | | metze (cherry picked from commit 22d479f75794b7c5fcac2fd47fbfd767700507d6) (cherry picked from commit 0d217c5f9c725926b6a58373af59e8bca3dd6edc)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_ioctl.cStefan Metzmacher2011-10-121-13/+5
| | | | | | metze (cherry picked from commit 29b3601c028b8861102b1d988285c78fc17f3b8e) (cherry picked from commit 73aa7eee9af008a5dad96d658c4d3d5b5148cce6)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_getinfo.cStefan Metzmacher2011-10-121-13/+5
| | | | | | metze (cherry picked from commit 880eafd7e83ba326be7036605179e8de746f4312) (cherry picked from commit f45348edea0b2ee8b397e7236dc7786cbce96c19)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_flush.cStefan Metzmacher2011-10-121-12/+4
| | | | | | metze (cherry picked from commit 440f702aa9a020f8cfe13037b7af1ba0dadf86f2) (cherry picked from commit 2bd03ad79a4afcb419513185defdeb7aff69427b)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_find.cStefan Metzmacher2011-10-121-13/+5
| | | | | | metze (cherry picked from commit bc95ab99dc84fa6d567a7d4e803552363bbc07a9) (cherry picked from commit 5ec26db056b7bb86be4a09f1999fadc383001d57)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_create.cStefan Metzmacher2011-10-121-11/+4
| | | | | | metze (cherry picked from commit 251815bfd395398857cb60c0b89710ddce7ab19f) (cherry picked from commit 4e4817930955228923f04540404786ff88ad14f8)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_close.cStefan Metzmacher2011-10-121-12/+3
| | | | | | metze (cherry picked from commit e09b3940a769806dcc17d24079375f5d53eca26a) (cherry picked from commit 27f3f2617a5de7797458b6d39ddf7ab6212d0949)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_break.cStefan Metzmacher2011-10-121-12/+4
| | | | | | metze (cherry picked from commit 9da2f72d471460d9c953e9cee84c9cfa3611e89e) (cherry picked from commit b4190c336dc344f96c4bb837da1e7e923abffca5)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_tcon.cStefan Metzmacher2011-10-121-24/+8
| | | | | | metze (cherry picked from commit 02f7c37e671c7950619c000b73c5a09ce31c68ac) (cherry picked from commit 32e0306924ade89c67970c6714bd2033056b3792)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_sesssetup.cStefan Metzmacher2011-10-121-26/+9
| | | | | | metze (cherry picked from commit d280d9f945be2d658694c6d4503822e99dc953b5) (cherry picked from commit fd01ec18dc84b4d632bf9384705d72f2a970cf65)
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_negprot.cStefan Metzmacher2011-10-121-10/+4
| | | | | | metze (cherry picked from commit 7ec3a35d2a67ca93a49094f07a12b0e37cec1661) (cherry picked from commit f32047b23d6e16e4cc75ae0b3beaf7b34307703c)
* s3:smb2_server: add smbd_smb2_request_verify_sizes()Stefan Metzmacher2011-10-122-0/+45
| | | | | metze. (cherry picked from commit fd6abe0c92cb22d26615ea443e0ede288ab37a6e)
* s3:smb2_create: fix allocation size return value when opening existing filesChristian Ambach2011-10-121-2/+2
| | | | | | | | | | | | | | | at least on GPFS, using the stat information gave wrong results example: FileInfo gave 12582912000, Create Response gave 25769803776000 This makes the create part use the same method as fileinfo, matching up the replies of both calls Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 10 21:49:53 CEST 2011 on sn-devel-104 (cherry picked from commit ec0c1f2c34ea520b4a7d636ba284a9c7d3ecd96f) Fix bug #8518 (SMB2 create call returns incorrect file allocation size). (cherry picked from commit 762811de03b719ae9b69ac4e7b94a3db224c1ab9)
* Tidy up previous patch for bug #8442 - NFSv4 DENY ACLs always include ↵Jeremy Allison2011-10-121-5/+4
| | | | | | | | | | | SYNCHRONIZE flag - blocking renames. aceType is an enum field, not a bitmask. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Sep 8 03:34:39 CEST 2011 on sn-devel-104 (cherry picked from commit 0aa6751e919d842cdae044be26f6da725063eac2) (cherry picked from commit 46798c8dea820ae91e7ed48f2a673d321b4676bc)
* Fix bug #8442 - NFSv4 DENY ACLs always include SYNCHRONIZE flag - blocking ↵Ira Cooper2011-10-121-1/+7
| | | | | | | | | | | renames. Thanks to Youzhong Yang for discovering this issue. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Sep 7 22:56:06 CEST 2011 on sn-devel-104 (cherry picked from commit 600451da33728cbd377b122c85cf146f5b319998) (cherry picked from commit 8678e2158064e075ed276a2a4f1ac552903af414)
* Bug 7551: Return error of cli_push when 'put - /some/file' is usedBram2011-10-121-1/+1
| | | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Sep 29 23:47:02 CEST 2011 on sn-devel-104 (cherry picked from commit d883cc664cac81633a60e5b04f99f23a3577ae65) (cherry picked from commit 04d31e65ee5e6552e806b342eb32af264661a7bc)
* Fix bug #8509 - Read-only handles on SAMR allow SAMR_DOMAIN_ACCESS_CREATE_USER.Jeremy Allison2011-10-121-3/+8
| | | | | | | | | | Not a security issue as we also check inside _samr_CreateUser2. Thanks to Andreas Schneider <asn@samba.org> for finding and testing this. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 7 21:51:27 CEST 2011 on sn-devel-104 (cherry picked from commit c80ba57169cee2ec66e8afe3616956c17958a3ae) (cherry picked from commit 928523b7878757e11bdec1cb89fa7b3e7e12f115)
* Fix bug #8507 - smbd doesn't correctly honor the "force create mode" bits ↵Jeremy Allison2011-10-121-6/+6
| | | | | | | | | | | from a cifsfs create. Don't manipulate the new_dos_attributes bits until we know it's not a POSIX open. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 5 01:19:17 CEST 2011 on sn-devel-104 (cherry picked from commit f93fd128eb623e324459806a34052bd40afe82e5) (cherry picked from commit 5253d36689115672f35ea8fffdcf509587900135)
* Second part of fix for bug #8443 - Default user entry is set to minimal ↵Jeremy Allison2011-10-121-8/+11
| | | | | | | | | | | permissions on incoming ACL change with no user specified. Be smarter about setting default permissions when a ACL_USER_OBJ isn't given. Use the principle of least surprises for the user. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Sep 9 00:26:08 CEST 2011 on sn-devel-104 (cherry picked from commit e30b8c72def13e2abc14858ea64eb849ea665b80) (cherry picked from commit 589bea9d314e14b8a493acdb31104f731073cafa)
* First part of fix for bug #8443 - Default user entry is set to minimal ↵Jeremy Allison2011-10-121-58/+2
| | | | | | | | | permissions on incoming ACL change with no user specified. create_default_mode() is not needed - it's taken care of by code inside ensure_canon_entry_valid(). (cherry picked from commit 793bd527fdd0b188aba8f3b4bffd8fa8f69a9cd1) (cherry picked from commit 0bb1e5919a5f3dd3a290f7dd082b3e67c95b37c6)
* Part 3 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set ↵Jeremy Allison2011-10-121-7/+6
| | | | | | | | | | (Invalid argument) Don't call check_owning_objs() to convert ACL_USER->ACL_USER_OBJ and AC_GROUP->ACL_GROUP_OBJ for default (directory) ACLs, we do this separately inside ensure_canon_entry_valid(). (cherry picked from commit c528fc5cacaae7e0e83041eb98150052b436071e) (cherry picked from commit 5e06c88de7bc4fe215c8630d9c3b6861f18d63bf)
* Part 2 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set ↵Jeremy Allison2011-10-121-0/+38
| | | | | | | | | (Invalid argument) Only map CREATOR_OWNER/CREATOR_GROUP to ACL_USER_OBJ/ACL_GROUP_OBJ in a default(directory) ACL set. (cherry picked from commit a5038ace24559bb02eec8262d3af5b5e78634d16) (cherry picked from commit 7f3a6c5631f901240d9e460b16d1df81e6f66e2d)
* Part 1 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set ↵Jeremy Allison2011-10-121-72/+0
| | | | | | | | | (Invalid argument) Remove the code I added for bug "6878 - Cannot change ACL's inherit flag". It is incorrect and causes the POSIX ACL ACL_USER_OBJ duplication. (cherry picked from commit 2b935b49f3d975759eb1cbcf2b11bf7c9d982804) (cherry picked from commit 27c49f085a16da709e64e0f50df535edcb524b77)
* Fix bug #8458] - IE9 on Windows 7 cannot download files to samba 3.5.11 shareJeremy Allison2011-10-121-0/+25
| | | | | | Handle the SECINFO_LABEL flag in the same was as Win2k3. (cherry picked from commit 893497ee169ba5455cd70458a339e60544e171d7) (cherry picked from commit 5f4eb867b1297493473b0d652c7e3d0d21260bf8)
* Fix bug #8493 - DFS breaks zip file extracting unless "follow symlinks = no" setJeremy Allison2011-10-121-11/+2
| | | | | | | | | If a client sends a mangled name as part of a DFS path, use the post-mangled name for the pathname walk, not the mangled name. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 1 00:45:59 CEST 2011 on sn-devel-104 (cherry picked from commit 149875f887287dbbf016d2252962b023b0bae967)
* s3:smb2_server: SMB2_OP_CANCEL requests don't have to be signedStefan Metzmacher2011-10-121-0/+2
| | | | | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 29 02:58:41 CEST 2011 on sn-devel-104 (cherry picked from commit ea00f0e452f64868fdc78cf0dc8e9ce3af19fe32) Fix bug #8503 (The SMB2 server should ignore signing on CANCEL requests). (cherry picked from commit 3d2c591ff6ce75317556de8ad522c73e5cc8f614)
* These modules are no longer experimental but production-ready (especially ↵Jeremy Allison2011-10-122-4/+0
| | | | | | | | | | | the acl_xattr code). Remove the "experimental" tag. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Sep 27 21:00:12 CEST 2011 on sn-devel-104 (cherry picked from commit fa2236c066890b687483408ed0d82a4bb1f95157) Fix bug #8494 (Remove "experimental" label on VFS ACL modules). (cherry picked from commit bdf1c399646a0a968a4360c65be2db8089e6ab8d)
* Fix bug 8480 - acl_xattr can free an invalid pointer if no blob is loaded.David Disseldorp2011-10-121-1/+1
| | | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Sep 23 22:20:55 CEST 2011 on sn-devel-104 (cherry picked from commit ca8c25abebb8715176f68be9916217db9a8400dd) (cherry picked from commit 700532c72592751b57521295b80f65039a260471)