Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | open files with O_NONBLOCK when available. This is necessary to | Andrew Tridgell | 2000-06-15 | 1 | -1/+6 | |
| | | | | | | | prevent possible deadlocks with kernel leases and harmless when kernel leases are not used. basically we don't ever want smbd to block | |||||
* | added support for kernel level share modes. These are a (small) hack, | Andrew Tridgell | 2000-06-15 | 6 | -132/+233 | |
| | | | | | I suspect we will either get rid of them or do them properly at some stage. | |||||
* | add -d debuglevel option | Andrew Tridgell | 2000-06-15 | 1 | -1/+5 | |
| | ||||||
* | Removed some debugs. | Tim Potter | 2000-06-15 | 1 | -12/+0 | |
| | ||||||
* | Added nsswitch/common.o to SMBD_OBJ1 | Tim Potter | 2000-06-14 | 1 | -1/+1 | |
| | ||||||
* | Changed server side lsa_lookup_sids function to look up SIDs that we are | Tim Potter | 2000-06-14 | 1 | -28/+74 | |
| | | | | not authoritative for using winbindd. | |||||
* | #include nsswitch/winbind_nss.h | Tim Potter | 2000-06-14 | 1 | -0/+2 | |
| | ||||||
* | Merge from TNG. | Tim Potter | 2000-06-14 | 2 | -55/+157 | |
| | ||||||
* | Merged parse_domain_user() from TNG. | Tim Potter | 2000-06-14 | 1 | -0/+20 | |
| | ||||||
* | allow the notify implementation to choose the select timeout change | Andrew Tridgell | 2000-06-14 | 7 | -17/+21 | |
| | ||||||
* | fixed autoconf test for kernel change notify support | Andrew Tridgell | 2000-06-14 | 3 | -131/+203 | |
| | ||||||
* | ZERO_STRUCT() of info3 structure before using it. | Tim Potter | 2000-06-14 | 1 | -0/+2 | |
| | ||||||
* | If I use nmblookup to search for node ZOOB#1B and there is no such name | Christopher R. Hertel | 2000-06-13 | 1 | -4/+6 | |
| | | | | | | | | | | | | | | | registered within the search space, nmblookup would report name_query failed to find name ZOOB I've changed it to report any non-zero type, so the above message becomes name_query failed to find name ZOOB#1B If the query is for ZOOB or even ZOOB#00 then the old style error message is given. Chris -)----- | |||||
* | Removed a patch that Andrew had added because 'insure' was incorrectly | Christopher R. Hertel | 2000-06-13 | 1 | -9/+0 | |
| | | | | | reporting a memory leak in the cache module. I've modified the cache code to prevent insure getting confused, so the patch can now be removed. | |||||
* | proto update | Andrew Tridgell | 2000-06-13 | 1 | -1/+7 | |
| | ||||||
* | argv parsing fixes | Andrew Tridgell | 2000-06-13 | 1 | -2/+2 | |
| | ||||||
* | allow for lots of connections per server | Andrew Tridgell | 2000-06-13 | 1 | -75/+76 | |
| | ||||||
* | allow posix locking database to be opened read-only (for smbstatus) | Andrew Tridgell | 2000-06-13 | 2 | -11/+11 | |
| | ||||||
* | add some brackets | Andrew Tridgell | 2000-06-13 | 1 | -1/+1 | |
| | ||||||
* | added -L switch to tell smbtorture to use oplocks | Andrew Tridgell | 2000-06-13 | 2 | -4/+7 | |
| | ||||||
* | use DN_ATTRIB kernel change notify attribute | Andrew Tridgell | 2000-06-13 | 1 | -3/+7 | |
| | ||||||
* | fixed the change notify bit definitions | Andrew Tridgell | 2000-06-13 | 1 | -1/+2 | |
| | ||||||
* | always use the DN_CREATE mask (NT expects file creation always to | Andrew Tridgell | 2000-06-13 | 1 | -8/+3 | |
| | | | | cause a notify) | |||||
* | forgot to checkin select.c | Andrew Tridgell | 2000-06-13 | 1 | -0/+107 | |
| | ||||||
* | Created manpage for wbinfo program. | Tim Potter | 2000-06-13 | 6 | -101/+501 | |
| | | | | Misc documentation updates for winbindd manpage. | |||||
* | enable the Linux change notify code and change some notify debug code | Andrew Tridgell | 2000-06-12 | 4 | -16/+65 | |
| | ||||||
* | totally rewrote the async signal, notification and oplock notification | Andrew Tridgell | 2000-06-12 | 17 | -584/+698 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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! | |||||
* | fixed a bug in BlockSignals() for systems that don't have | Andrew Tridgell | 2000-06-12 | 1 | -4/+2 | |
| | | | | sigprocmask() | |||||
* | fixed comments at top of module | Andrew Tridgell | 2000-06-12 | 1 | -2/+3 | |
| | ||||||
* | split all the change notify code out into a separate module | Andrew Tridgell | 2000-06-12 | 4 | -409/+439 | |
| | | | | | | | | 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) | |||||
* | a better test for oplocks being enabled in this kernel | Andrew Tridgell | 2000-06-11 | 1 | -1/+18 | |
| | ||||||
* | fixed Linux capabilities handling | Andrew Tridgell | 2000-06-11 | 2 | -33/+39 | |
| | | | | | | 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 testing | Andrew Tridgell | 2000-06-11 | 16 | -79/+166 | |
| | | | | | 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 event | Jean-François Micouleau | 2000-06-10 | 3 | -1/+126 | |
| | | | | | | stuff. J.F. | |||||
* | a first pass at Linux kernel oplocks support | Andrew Tridgell | 2000-06-10 | 6 | -26/+212 | |
| | ||||||
* | continued the split of the kernel level oplocks code into a more | Andrew Tridgell | 2000-06-10 | 7 | -429/+436 | |
| | | | | | modular form. In this pass I added oplock_irix.c and added a "struct kernel_oplocks" that describes a kernel oplock implementation. | |||||
* | continued the split of the kernel level oplocks code into a more | Andrew Tridgell | 2000-06-10 | 4 | -782/+617 | |
| | | | | | | | | | modular form. In this pass I added oplock_irix.c and added a "struct kernel_oplocks" that describes a kernel oplock implementation. I also removed the maintainence mode from the Makefile. It was causing too much trouble. If someone really likes it they can keep a patch around to enable it themselves. | |||||
* | (Correct) fix for desired_access being zero in map_share_mode(). | Jeremy Allison | 2000-06-09 | 1 | -12/+12 | |
| | | | | Jeremy. | |||||
* | Fix from Elrond for hash table corruption. Should fix stat cache bug (I | Jeremy Allison | 2000-06-09 | 2 | -3/+11 | |
| | | | | | sincerely hope :-). Thanks elrond ! Jeremy. | |||||
* | Luke, I am moving the code back into passdb/passdb.c, this the correct | Jeremy Allison | 2000-06-09 | 7 | -70/+65 | |
| | | | | | | | | | | | | | 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 Micouleau | 2000-06-09 | 3 | -5/+18 | |
| | | | | | | | and if you have unix realname=yes, you get the gecos name when locking the station. J.F. | |||||
* | untiltime should be 0 by default to cover the whole 24 hours. | Jean-François Micouleau | 2000-06-09 | 1 | -3/+3 | |
| | | | | J.F. | |||||
* | clean up oplock capability code ready for Linux code | Andrew Tridgell | 2000-06-09 | 6 | -559/+559 | |
| | ||||||
* | the Linux F_GETLEASE value has changed | Andrew Tridgell | 2000-06-09 | 1 | -1/+1 | |
| | ||||||
* | some templates needed for the new aparser stuff | Andrew Tridgell | 2000-06-09 | 2 | -0/+27 | |
| | ||||||
* | split some of the irix kernel oplocks code into a function | Andrew Tridgell | 2000-06-09 | 1 | -68/+74 | |
| | ||||||
* | free NET_USER_INFO_3 gids when vuser invalidated. | Luke Leighton | 2000-06-09 | 1 | -0/+4 | |
| | ||||||
* | dynamic allocation of NET_USER_INFO_3 gids. | Luke Leighton | 2000-06-09 | 4 | -30/+63 | |
| | | | | | | | | | | 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 :) | |||||
* | started adding support for relative, plus options for autoalignment | Andrew Tridgell | 2000-06-09 | 17 | -42/+421 | |
| | | | | so the same parser generator can be uses for cifs and rpc | |||||
* | reverted jeremy's changes that removed NET_USER_INFO_3. will you please | Luke Leighton | 2000-06-09 | 5 | -415/+444 | |
| | | | | not just undercut work in progress, thank you. |