summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* lib/util_unistr.c: Removed ascii_to_unistr() as it does no codepage.Jeremy Allison2000-06-221-386/+384
| | | | | | | | | Removed unistr_to_ascii() as it was never used. printing/nt_printing.c: Removed "DUMMY.XX" files. rpc_server/srv_spoolss_nt.c: Use dos_PutUniCode() instead of ascii_to_unistr(). Attempted to fix the "return value" size code based on J.F's comments. This needs looking at. Jeremy.
* A neater way of solving the S_ISSOCK, S_ISFIFO problem.Tim Potter2000-06-212-47/+54
| | | | Moved the S_* macros from smb.h to includes.h
* Fixes for Win2k "add printer driver" INFO_LEVEL_6 was wrong, also someJeremy Allison2000-06-201-2/+1
| | | | | memory fixes. Jeremy.
* Fixes for IRIX kernel oplocks and systems that don't have nss.hJeremy Allison2000-06-201-0/+3
| | | | Jeremy.
* Whoops - dodgy make proto.Tim Potter2000-06-161-1/+1
|
* make protoTim Potter2000-06-161-403/+416
|
* Changed function prototype for pipe api functions to take a pipes_structTim Potter2000-06-161-1/+1
| | | | instead of two prs_data pointers.
* Added some permission constants that are set for NT printer securityTim Potter2000-06-161-0/+7
| | | | | descriptors. These seem to be made up of the standard and generic access rights rather than object specific access rights.
* added support for kernel level share modes. These are a (small) hack,Andrew Tridgell2000-06-152-0/+10
| | | | | I suspect we will either get rid of them or do them properly at some stage.
* #include nsswitch/winbind_nss.hTim Potter2000-06-141-0/+2
|
* allow the notify implementation to choose the select timeout changeAndrew Tridgell2000-06-143-1/+3
|
* proto updateAndrew Tridgell2000-06-131-1/+7
|
* fixed the change notify bit definitionsAndrew Tridgell2000-06-131-1/+2
|
* totally rewrote the async signal, notification and oplock notificationAndrew Tridgell2000-06-124-5/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handling in Samba. This was needed due to several limitations and races in the previous code - as a side effect the new code is much cleaner :) in summary: - changed sys_select() to avoid a signal/select race condition. It is a rare race but once we have signals doing notification and oplocks it is important. - changed our main processing loop to take advantage of the new sys_select semantics - split the notify code into implementaion dependent and general parts. Added the following structure that defines an implementation: struct cnotify_fns { void * (*register_notify)(connection_struct *conn, char *path, uint32 flags); BOOL (*check_notify)(connection_struct *conn, uint16 vuid, char *path, uint32 flags, void *data, time_t t); void (*remove_notify)(void *data); }; then I wrote two implementations, one using hash/poll (like our old code) and the other using the new Linux kernel change notify. It should be easy to add other change notify implementations by creating a sructure of the above type. - fixed a bug in change notify where we were returning the wrong error code. - rewrote the core change notify code to be much simpler - moved to real-time signals for leases and change notify Amazingly, it all seems to work. I was very surprised!
* split all the change notify code out into a separate moduleAndrew Tridgell2000-06-121-16/+11
| | | | | | | | smbd/notify.c. All the data structures are now private to that module. this is in preparation for Linux kernel support for change notify (coming soon to a CVS tree near you)
* fixed Linux capabilities handlingAndrew Tridgell2000-06-111-12/+0
| | | | | | I used a trick where CAP_LEASE isn't claimed until it is needed. This means we avoid a system call per setreuid(), and never call capset() unless a user tries to get a oplock on a file that they don't own
* Linux kernel oplocks now seem to work, but need a _lot_ of testingAndrew Tridgell2000-06-112-0/+13
| | | | | I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour.
* parsing code for reply[open|close]printer in preparation of the eventJean-François Micouleau2000-06-102-1/+39
| | | | | | stuff. J.F.
* a first pass at Linux kernel oplocks supportAndrew Tridgell2000-06-101-4/+1
|
* continued the split of the kernel level oplocks code into a moreAndrew Tridgell2000-06-102-6/+21
| | | | | modular form. In this pass I added oplock_irix.c and added a "struct kernel_oplocks" that describes a kernel oplock implementation.
* Fix from Elrond for hash table corruption. Should fix stat cache bug (IJeremy Allison2000-06-091-1/+1
| | | | | sincerely hope :-). Thanks elrond ! Jeremy.
* Luke, I am moving the code back into passdb/passdb.c, this the correctJeremy Allison2000-06-093-11/+7
| | | | | | | | | | | | | place to do this, not in smbd/passwd.c Please don't change this without asking first, I have run this past Andrew so talk to him (I'm on vacation next week). I also removed the g_newXXX macros. There are essentially a private C extension, not used anywhere else in the code, and add no functionality over malloc(XX) and make the code harder to understand (everyone knows what malloc does). Jeremy.
* do some standard_sub_advanced() in api_net_sam_logon on lp_logon_xxx().Jean-François Micouleau2000-06-091-0/+1
| | | | | | | and if you have unix realname=yes, you get the gecos name when locking the station. J.F.
* clean up oplock capability code ready for Linux codeAndrew Tridgell2000-06-091-385/+384
|
* dynamic allocation of NET_USER_INFO_3 gids.Luke Leighton2000-06-092-2/+10
| | | | | | | | | | jeremy, the intent is to call se_access_check() with usr-sid, grp-sid, array-of-group-rids (but array-of-group-sids would do). please do look at smbd/lanman.c's api_NetWkstaGetInfo, it will show you that we really do need to store the entire NET_USER_INFO_3 structure. then again, api_NetWkstaGetInfo is only used by win9x so who cares :)
* reverted jeremy's changes that removed NET_USER_INFO_3. will you pleaseLuke Leighton2000-06-092-386/+386
| | | | not just undercut work in progress, thank you.
* Change from "David S. Chappell" <David.Chappell@mail.cc.trincoll.edu>Jeremy Allison2000-06-081-1/+1
| | | | | | to make "printer driver file" a share parameter. This fits better with the new NT printing subsystem. Jeremy.
* include/smb.h: Removed NET_USER_3 struct from user struct. It doesn't belong ↵Jeremy Allison2000-06-082-386/+387
| | | | | | | | | | | | | there (yet) as there is no infrastructure for it. Replaced it with a dynamic array of group SIDs plus a user. passdb/passdb.c: Added setup_user_sids() function. This is where the lookup should be done, eventually calling winbind. smbd/password.c: Changed to call setup_user_sids(). Removed spurious DEBUG(0) statements. smbd/reply.c: Removed extra parameter to register_vuid(). Jeremy.
* added a NET_USER_INFO_3 struct to user_struct.Luke Leighton2000-06-082-402/+412
| | | | register_vuid fills it with constructed info.
* - changed HAVE_KERNEL_OPLOCKS to HAVE_KERNEL_OPLOCKS_IRIXAndrew Tridgell2000-06-082-3/+4
| | | | - added autoconf test for HAVE_KERNEL_OPLOCKS_LINUX
* Moved tdb functions that access parse structs into parse_prs.cJeremy Allison2000-06-081-2/+2
| | | | | to prevent builkd breaking. Jeremy.
* Cause printer SD's to be displayed correctly (full control).Jeremy Allison2000-06-081-2/+4
| | | | Jeremy.
* Memory leak fixes.Jeremy Allison2000-06-061-0/+2
| | | | Jeremy.
* Some tidyup fixes (memory leaks etc.). Still no progress with theJeremy Allison2000-06-051-0/+1
| | | | | | "no driver" issue. I'm banging my head against comparitive packet dumps right now... Jeremy.
* fixed the pack/unpack of the devicemodeAndrew Tridgell2000-06-041-2/+4
| | | | we were being bitten by uint16/uint32 mixups
* new protosAndrew Tridgell2000-06-031-2/+3
|
* More memory leak and PANIC action fixes.Jeremy Allison2000-06-021-1/+6
| | | | | This is *horrible* code :-(. Jeremy.
* More insure found memory leak and corruption fixes.Jeremy Allison2000-06-011-2/+5
| | | | Jeremy.
* Back to building. Now to test with insure.Jeremy Allison2000-06-012-8/+6
| | | | | Added some frees needed to stop memory leaks. Jeremy.
* Getting back to a compilable state (not there yet but close).Jeremy Allison2000-06-012-18/+12
| | | | | | | Added patches for random -> sys_random. Added set_effective_xxx patches for AFS code. Memory allocation changes in spoolss code. Jeremy.
* More stuff I cvan't afford to lose. I'm realizing how dependent I amJeremy Allison2000-06-012-2/+2
| | | | | on this bloody CVS link.... Jeremy.
* Working UNIX -> NT ACL mapper.Jeremy Allison2000-05-311-444/+405
| | | | Jeremy.
* Fixed LsaQueryInformationPolicy level 3 to return primary domain info.Matthew Chapman2000-05-292-1/+5
| | | | | | | Domain SID is saved in secrets.tdb upon joining domain. Added "Authenticated Users" and "SYSTEM" well-known SIDs (under NT Authority).
* make protoLuke Leighton2000-05-291-1/+13
|
* lp_server_role() + use in srv_reg.Luke Leighton2000-05-282-404/+444
|
* updated proto.hAndrew Tridgell2000-05-281-425/+384
|
* moved notif_y_table struct to spoolss_nt.c only used there.Luke Leighton2000-05-282-400/+396
| | | | | | #ifdef'd driver-code out with define RELIES_ON_SMBD_SPECIFIC_CODE because spoolssd doesn't link with smbd/*.c (find_service("print$") is not possible).
* getting and setting security descriptors on printers now worksAndrew Tridgell2000-05-271-384/+390
| | | | this needed some fixes in tdb_unpack(). Tim, you'll need to update
* fixed nttrans.cLuke Leighton2000-05-271-146/+113
|
* security descs in spoolss. needs parse_sec.c nttrans.c broken.Luke Leighton2000-05-275-515/+571
|