summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* a missing string conversion.Jean-François Micouleau2001-04-181-1/+1
| | | | J.F.
* new files for headAndrew Tridgell2001-04-182-0/+750
|
* merge from 2.2Andrew Tridgell2001-04-184-788/+46
|
* Removed mktemp from HEAD - same as done in 2.2.Jeremy Allison2001-04-182-8/+17
| | | | Jeremy.
* Rememver to use VFS at all times... even in new user_can_read_file code :-).Jeremy Allison2001-04-181-3/+3
| | | | Jeremy.
* hide unreadable patch from idraAndrew Tridgell2001-04-161-0/+49
|
* Finally got the semantics right (hurrah!).Jeremy Allison2001-04-161-6/+14
| | | | Jeremy.
* Correct fix for open readonly with truncate.Jeremy Allison2001-04-161-17/+18
| | | | Jeremy.
* Fixed potential bug in "become_guest" pointed out by elrond. Get_Pwnam()Jeremy Allison2001-04-151-6/+13
| | | | | | returns a pointer to changable storage so ensure we save the details and don't use the pointer directly. Jeremy.
* This little piece of insanity is inspired by theJeremy Allison2001-04-141-3/+18
| | | | | | | | | | | | fact that an NT client can open a file for O_RDONLY, but set the create disposition to FILE_EXISTS_TRUNCATE. If the client *can* write to the file, then it expects to truncate the file, even though it is opening for readonly. Quicken uses this stupid trick in backup file creation... Thanks *greatly* to "David W. Chapman Jr." <dwcjr@inethouston.net> for helping track this one down. It didn't bite us in 2.0.x as we always opened files read-write in that release. Jeremy.
* configure:Jeremy Allison2001-04-146-22/+116
| | | | | | | | | | | | | | | | | | | | | | configure.in: include/config.h.in: include/profile.h: smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod and fchown to VFS (sorry Gerald - but we needed them anyway). smbd/dosmode.c: smbd/files.c: printing/printfsp.c: smbd/close.c: smbd/open.c: Fixed "dos filemode" correctly so there are no race conditions. Forces test of open of file O_WRONLY before allowing fchmod as root. Afterwards, calls standard close function that preserves POSIX locks due to POSIX-me-harder braindamage. :-). Andrew please review this code. Also - in removing the tmpdir param in smbrun an extra NULL parameter was missed in each print_run_command() call (which is a varargs fn.). Now fixed. Jeremy.
* Michael Davidson <md@sco.COM> pointed out that acl_get_qualifier can potentiallyJeremy Allison2001-04-131-0/+2
| | | | | | return a malloced area so added sys_acl_free_qualifier() calls to all supported ACL interfaces to code with this (only Linux needs actual free call). Jeremy.
* Fixed potential file descriptor leak with MS-Access fix.Jeremy Allison2001-04-131-1/+9
| | | | Jeremy.
* Added fix from "Eric Boehm" <boehm@nortelnetworks.com> to try and set hardJeremy Allison2001-04-131-3/+3
| | | | | limit before setting soft limit. Jeremy.
* Merge of Andrew's changes in 2.2.Jeremy Allison2001-04-134-8/+8
| | | | Jeremy.
* As Andrew suggested, make smbrun return a fd for a deleted file which can thenJeremy Allison2001-04-134-9/+31
| | | | | be read. Jeremy.
* To stop people complaining about the mktemp call, move it into lib/util.c. ↵Jeremy Allison2001-04-111-6/+5
| | | | | | | | Thanks to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke XFS ACL code. Jeremy.
* Fix for core dump in security = share code with new share security db.Jeremy Allison2001-04-111-22/+22
| | | | Jeremy.
* Added set/get SD's on shares. Check before tcon.Jeremy Allison2001-04-092-0/+27
| | | | Jeremy.
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-085-5/+5
| | | | Jeremy.
* Fix from Ed Boraas for not core dumping when out of connection structs.Jeremy Allison2001-04-061-1/+0
| | | | Jeremy.
* Fix from "Romeril, Alan" <a.romeril@ic.ac.uk> to get his NFS quota codeJeremy Allison2001-04-051-6/+6
| | | | | to work on Solaris 2.6. Jeremy.
* Integrated solaris nfs quota code from Alan Romeril <a.romeril@ic.ac.uk>Jeremy Allison2001-04-011-112/+275
| | | | Jeremy
* started converting some of the only-ascii code to use srvstr_*Andrew Tridgell2001-03-312-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
* utils/torture.c: Added one more delete on close test.Jeremy Allison2001-03-301-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.
* Fixed extern ref typo for file generic perms. 2am coding strikes again :-).Jeremy Allison2001-03-301-1/+1
| | | | Jeremy.
* This is a big, rather ugly patch. Whilst investigating the files not truncatedJeremy Allison2001-03-305-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.
* Insure fix. Don't read 4 bytes from data area unless there are 4 bytes to read.Jeremy Allison2001-03-281-1/+1
| | | | Jeremy.
* Fixed the problem Gerald reported. Unfortunately we need to go back toJeremy Allison2001-03-281-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.
* Removed NFS quotas code for Solaris as Alan wants to re-write it.Jeremy Allison2001-03-271-279/+112
| | | | Jeremy.
* Added NFS quota support for Solaris 5.x from Alan Romeril <a.romeril@ic.ac.uk>.Jeremy Allison2001-03-271-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.
* Bail out early if null passwords and lp_null_passwords not set.Jeremy Allison2001-03-271-0/+5
| | | | Jeremy.
* Patch from Massimo Sivilotti <mass@tanner.com> to log remote machine/ip onJeremy Allison2001-03-261-1/+2
| | | | | connection fail. Jeremy.
* Patch from Sean.Batt@anu.edu.au to ensure error reporting is done beforeJeremy Allison2001-03-261-3/+3
| | | | | any code that could modify errno is called. Jeremy.
* smbd/posix_acls.c: Saving and restoring errno here is the wrong place. Moved itJeremy Allison2001-03-263-15/+15
| | | | | to the places where [f]chmod_acl is called instead. Jeremy.
* Ensure get/set NT ACL code is redirected through vfs.Jeremy Allison2001-03-261-2/+2
| | | | Jeremy.
* smbd/posix_acls.c: Sync up with 2.2 changes - don't return deny ACE's.Jeremy Allison2001-03-262-67/+19
| | | | | smbd/vfs.c: Don't call [f]chmod_acl if no acl support. Jeremy.
* More unused variables.Jeremy Allison2001-03-231-14/+0
| | | | Jeremy.
* Made the fixes Andrew suggested to asci string code to use srvstr_push.Jeremy Allison2001-03-231-2/+2
| | | | Jeremy.
* Two OS/2 printer fixes from Jim McDonough @ IBM.Jeremy Allison2001-03-232-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.
* groupdb/mapping.c:Jeremy Allison2001-03-231-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.
* Sync up with 2.2 ACL code.Jeremy Allison2001-03-231-48/+84
| | | | Jeremy.
* first pass of the new group mapping codeJean-François Micouleau2001-03-231-0/+5
| | | | J.F.
* New POSIX ACL mapping code. Works with UNIX permissions, now for testingJeremy Allison2001-03-221-338/+684
| | | | | with real ACLs... Jeremy.
* Fix for crash when doing name lookup with a quoted string. Part ofJeremy Allison2001-03-201-2/+1
| | | | | | lookup_name was expecting to be able to write to the string. Changed lookup_name to use const. Jeremy.
* Added sys_dlopen/sys_dlsym/sys_dlclose.Jeremy Allison2001-03-191-2/+2
| | | | Jeremy.
* fixed some compilation errors with IRIX ccAndrew Tridgell2001-03-181-2/+2
|
* ADMIN$ is an IPC share, not a disk shareAndrew Tridgell2001-03-171-1/+1
|
* lib/system.c (Finally) fixed all insure errors in password caching code. We ↵Jeremy Allison2001-03-171-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.
* I'm happy with the mapping for NT getACL, now for NT setACL.Jeremy Allison2001-03-171-67/+175
| | | | Jeremy.