summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2001-04-06Fix from Ed Boraas for not core dumping when out of connection structs.Jeremy Allison1-1/+0
Jeremy. (This used to be commit f50ea32dd0deb07c626c211caedd86dc1ccd5427)
2001-04-05Fix from "Romeril, Alan" <a.romeril@ic.ac.uk> to get his NFS quota codeJeremy Allison1-6/+6
to work on Solaris 2.6. Jeremy. (This used to be commit bd2fe239db24b8b3fa6a906542af2e238f435331)
2001-04-01Integrated solaris nfs quota code from Alan Romeril <a.romeril@ic.ac.uk>Jeremy Allison1-112/+275
Jeremy (This used to be commit 181d41572ceb17dc765d3c0f1a05934e35f56a61)
2001-03-31started converting some of the only-ascii code to use srvstr_*Andrew Tridgell2-11/+28
added srvstr_push_ascii() and srvstr_pull_ascii() as convenience routines to replace the current usage of strncpy() like fns for packet pull/push. We need to do this in *lots* of places in Samba in order to get our codepage handling right (This used to be commit 8b0e3679a6dc479c0e3177707dff386559779b69)
2001-03-30utils/torture.c: Added one more delete on close test.Jeremy Allison1-3/+3
smbd/notify_kernel.c: This code was wrong I believe. It was structured to only return a changenotify event on being called from timeout processing (t != 0). The kernel changenotify events should fire on *asynchronous* processing (EINTR return from select caused by the realtime signal delivery) with t == 0. Reported by Juergen Hasch (Hasch@t-online.de). ANDREW PLEASE CHECK THIS ! Currently the hash style changenotify is done on async processing as well as timeout processing. As this is expensive we may want to revisit doing this and maybe set it to fire only on timeout processing. Jeremy. (This used to be commit f952380c5d0cfbbec1e7de98b712952f302cddfd)
2001-03-30Fixed extern ref typo for file generic perms. 2am coding strikes again :-).Jeremy Allison1-1/+1
Jeremy. (This used to be commit fe38692643ad7c163c30d9c031a8bd3dec81ffee)
2001-03-30This is a big, rather ugly patch. Whilst investigating the files not truncatedJeremy Allison5-155/+194
when copying to a full disk problem, I discovered that we were not allowing the delete on close flag to be set properly, this led to other things, and after investigation of the proper delete on close semantics and their relationship to the file_share_delete flag I discovered there were some cases where we weren't doing the deny modes properly. And this after only 5 years working on them..... :-) :-). So here's the latest attempt. I realised the delete on close flag needs to be set across all smbds with a dev/ino pair open - in addition, the delete on close flag, allow share delete and delete access requested all need to be stored in the share mode tdb. The "delete_on_close" entry in the fsp struct is now redundant and should really be removed. This may also mean we can get rid of the "iterate_fsp" calls that I didn't like adding in the first place. Whilst doing this patch, I also discovered we needed to do the se_map_generic() call for file opens and POSIX ACL mapping, so I added that also. This code, although ugly, now passes the deny mode torture tests plus the delete on close tests I added. I do need to add one more multiple connection delete on close test to make sure I got the semantics exactly right, plus we should also (as Andrew suggested) move to random testing here. The good news is that NT should now correctly delete the file on disk full error when copying to a disk :-). Jeremy. (This used to be commit 51987684bd231c744da2e5f3705fd236d5616173)
2001-03-28Insure fix. Don't read 4 bytes from data area unless there are 4 bytes to read.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 3f9cf2e07bb6d429858e47ab6989ea8cf30d0217)
2001-03-28Fixed the problem Gerald reported. Unfortunately we need to go back toJeremy Allison1-194/+110
reporting imaginary "default" inheritable ACLs on directories, otherwise, when you add an entry and click on apply without noticing there's no default entry associated with it, it applies a null acl on the files within the directory (hey, that's what you told NT you wanted, right ! :-). Also ensure that minimum permissions for a directory are r-x for owner, not just r--. Jeremy. (This used to be commit 4fa8cf68c3921f93a27d290d6dd1ed4423dfcf1c)
2001-03-27Removed NFS quotas code for Solaris as Alan wants to re-write it.Jeremy Allison1-279/+112
Jeremy. (This used to be commit 13c9823eb19baa4b1262ad0fd416d9ecbc92b160)
2001-03-27Added NFS quota support for Solaris 5.x from Alan Romeril <a.romeril@ic.ac.uk>.Jeremy Allison1-112/+279
sun1.samba.org is down at the moment so I can't test the compile on this. I'm sure Solaris people using quotas will scream if I've meesed anything up :-). Jeremy. (This used to be commit 3d2c59bfe0bc30d8cecf0af81b74d4232b09bdb2)
2001-03-27Bail out early if null passwords and lp_null_passwords not set.Jeremy Allison1-0/+5
Jeremy. (This used to be commit 7c718fc85e3dbfaf0195e352d06a8c682a6036fc)
2001-03-26Patch from Massimo Sivilotti <mass@tanner.com> to log remote machine/ip onJeremy Allison1-1/+2
connection fail. Jeremy. (This used to be commit 07cee46d1de1caaf6f9f1b6139dd21bcc5d67e8e)
2001-03-26Patch from Sean.Batt@anu.edu.au to ensure error reporting is done beforeJeremy Allison1-3/+3
any code that could modify errno is called. Jeremy. (This used to be commit 109a174de9e23ccc89ae17d6b5b425b5947c8565)
2001-03-26smbd/posix_acls.c: Saving and restoring errno here is the wrong place. Moved itJeremy Allison3-15/+15
to the places where [f]chmod_acl is called instead. Jeremy. (This used to be commit 641ada44ae6429761c1fd0dbcafabc69f897fac7)
2001-03-26Ensure get/set NT ACL code is redirected through vfs.Jeremy Allison1-2/+2
Jeremy. (This used to be commit d43d907c38008bb02042cb4bc2d899f62bdc115b)
2001-03-26smbd/posix_acls.c: Sync up with 2.2 changes - don't return deny ACE's.Jeremy Allison2-67/+19
smbd/vfs.c: Don't call [f]chmod_acl if no acl support. Jeremy. (This used to be commit 83f52394e688b4be3ac4cef67d8980a5b8ed3192)
2001-03-23More unused variables.Jeremy Allison1-14/+0
Jeremy. (This used to be commit 38b19fad2851a65268b31c7e0240ed36a8407be4)
2001-03-23Made the fixes Andrew suggested to asci string code to use srvstr_push.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 1391aa6a6fbe8391a4421f5770da40556f011bb8)
2001-03-23Two OS/2 printer fixes from Jim McDonough @ IBM.Jeremy Allison2-17/+121
First one adds a new info level into the lanman printing and an ioctl to the trans2 code. Andrew - this uses ASCII only. It looks ok to me but please check ! Second one adds a parameter "os2 driver map" that allows OS/2 driver names to be mapped. Jeremy. (This used to be commit da79b519e0b6b4317d7fb5260d74e0e74a7e0b46)
2001-03-23groupdb/mapping.c:Jeremy Allison1-1/+7
include/proto.h: Fix missing (void) in proto. rpc_server/srv_samr_nt.c: Fix user private group problem by filtering out groups that clash with users. smbd/posix_acls.c: Ensure default ACE's are sensible. utils/pdbedit.c: Fix from Simo Sorce. Jeremy. (This used to be commit 29414fe0d6665642d9b5f88a35e712426376c47f)
2001-03-23Sync up with 2.2 ACL code.Jeremy Allison1-48/+84
Jeremy. (This used to be commit 5b9a88c2d0da3479f91131f66ff741e88f9760ee)
2001-03-23first pass of the new group mapping codeJean-François Micouleau1-0/+5
J.F. (This used to be commit 7154deb026d53cb0cd503562174c3332a372be63)
2001-03-22New POSIX ACL mapping code. Works with UNIX permissions, now for testingJeremy Allison1-338/+684
with real ACLs... Jeremy. (This used to be commit 852b9e15ac245a593460cfff3f629d0333372e41)
2001-03-20Fix for crash when doing name lookup with a quoted string. Part ofJeremy Allison1-2/+1
lookup_name was expecting to be able to write to the string. Changed lookup_name to use const. Jeremy. (This used to be commit 80c18d88491f1148ade623e81c33f84ba4f952f3)
2001-03-19Added sys_dlopen/sys_dlsym/sys_dlclose.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 49f0e7e7143f82bce9dfd8b06e9e515bc0869ab7)
2001-03-18fixed some compilation errors with IRIX ccAndrew Tridgell1-2/+2
(This used to be commit e430ded56e9c15a462a171e6350f1eddefa8dd11)
2001-03-17ADMIN$ is an IPC share, not a disk shareAndrew Tridgell1-1/+1
(This used to be commit 0ea62800edd618091fde81e8de4347f612f98a18)
2001-03-17lib/system.c (Finally) fixed all insure errors in password caching code. We ↵Jeremy Allison1-3/+20
can't stop libc routines from calling getpwXXX functions, so caching a pointer to them is impossible. This new code now makes two copies of the returned struct passwd struct - one used as a cache, one returned to allow the caller to modify. When doing a lookup we compare against the cached copy. Code is now easier to understand also. smbd/posix_acls.c: If we move the head of the linked list, remember to pass a reference to that pointer..... Jeremy. (This used to be commit af364b93d92f70aa52195c46d3cc516830752609)
2001-03-17I'm happy with the mapping for NT getACL, now for NT setACL.Jeremy Allison1-67/+175
Jeremy. (This used to be commit 7b97ac289ed472e03b2a6e9c51a568478a93562d)
2001-03-16don't need to force unicode strings in flg2 anymoreAndrew Tridgell1-4/+3
(This used to be commit 899ca6e832c72ea68b0ac76205d18a80c87b34d9)
2001-03-16finished the conversion to unicode of the last of the trans2 fnsAndrew Tridgell1-18/+6
(This used to be commit 1d145a37860f7256a081c893e3640f5e18943518)
2001-03-16converted the nttrans code to unicode on the wireAndrew Tridgell1-117/+13
(This used to be commit ecc2c35ca011a635729063cbc58e7fe687cf148a)
2001-03-16converted reply_printqueueAndrew Tridgell1-3/+3
(This used to be commit 70d6b09ac9fbd612960fa02fad5adbf6d87c24ce)
2001-03-16converted reply_searchAndrew Tridgell1-7/+9
(This used to be commit 0331f93a8117d4c295cda327c3a290296ff621d0)
2001-03-16enable unicode on the wire by default in smbdAndrew Tridgell1-2/+2
the unicode support isn't complete, but it is good enough to be usable for a test server. (This used to be commit e787fc1daf4a46c182e87bf0697eec80ff0ce87a)
2001-03-15Tidyup return of zero-permissions (map to ACE_DENIED, GENERIC_ALL, Everyone).Jeremy Allison1-12/+32
Jeremy. (This used to be commit 0d6c7dedd261c15697a7781678fe6bed877b61f6)
2001-03-15Last tweak (I promise :-). Fallback to returning our SID if we're a domainJeremy Allison1-3/+12
member but can't get the domain sid. Jeremy. (This used to be commit 45e96777d0eeafbbf40759f02cd3f5e15b12c288)
2001-03-14don't need srvstr_push_size or srvstr_pull_sizeAndrew Tridgell1-40/+0
(This used to be commit d5b39a1d435f7fe79eb556f7e6b55276ac68a73d)
2001-03-14converted the smb messaging code to unicodeAndrew Tridgell1-17/+15
(This used to be commit 54bde1b3aec829ba55b8a6c946424fdaf38803a9)
2001-03-14converted a bunch more trans2 calls for unicode. This got quite tricky :(Andrew Tridgell1-179/+145
(This used to be commit ddee55087756db2a2ac0ee92471d9fea53f38bee)
2001-03-13fixed srvstr_push() callAndrew Tridgell1-1/+1
(This used to be commit dca433d035dfb6e94ee659477c71edaa4549644d)
2001-03-13converted a bunch more fns to unicodeAndrew Tridgell1-14/+12
(This used to be commit fbb3bf12df5c79cac9445be21f1997234479b472)
2001-03-13Fix from Jim McDonough of IBM for using Win9x user manager.Jeremy Allison1-2/+9
Jeremy. (This used to be commit f1839d469e1fc6054b407bd8c4d7c505d4212b45)
2001-03-13simpler and more correct srvstr_push()Andrew Tridgell3-25/+25
it now uses outbuf not inbuf for the unicode flag, which allows for some server fns to be ascii and means one less parameter in push calls (This used to be commit a6dd6662267eeddf368ff0ffba76b45761bf4eeb)
2001-03-13converted reply_tcon()Andrew Tridgell1-40/+22
(This used to be commit 1e92d340ceb5be8e7d50cc7c889b2053ed67bad3)
2001-03-13converted a bunch more server functions to unicodeAndrew Tridgell1-10/+20
(This used to be commit a074600a09387c2034ffb6651abad69bdc14145e)
2001-03-13added STR_ASCII flag to srvstr_pull()Andrew Tridgell1-2/+2
(This used to be commit e54d37903013df1c799ab3aaa10f10df24e3de61)
2001-03-13- convert chkpathAndrew Tridgell1-4/+5
- devicename in tconx is always ascii (This used to be commit 242a6a96d10beeb54e93226ae50bd361486e1c0d)
2001-03-13converted findnext to unicodeAndrew Tridgell1-1/+1
(This used to be commit 84fc5a7795fe6e3b993649ecc05f6685f8295c02)