summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* Added parenthesis around definition of PRINTER_ACE_PRINT.Tim Potter2000-06-231-1/+1
|
* Added return for become_authenticated_pipe_user() function.Tim Potter2000-06-231-0/+2
|
* make protoTim Potter2000-06-231-386/+393
|
* Added MAX_SEC_CTX_DEPTHTim Potter2000-06-231-0/+2
|
* Delete OriginalDir stuff.Tim Potter2000-06-233-16/+20
|
* Moved some static functions to sec_ctx.cTim Potter2000-06-231-222/+30
| | | | | Implemented become_root() and friends in terms of push/pop/set security contexts.
* Added smbd/sec_ctx.o to smbd objects.Tim Potter2000-06-231-1/+2
|
* Call init_sec_ctx() instead of init_uid().Tim Potter2000-06-231-9/+1
| | | | Delete OriginalDir stuff.
* Removed save directory argument to become_root() calls. Probably most ofTim Potter2000-06-236-42/+42
| | | | this stuff doesn't need to be done as root anyway.
* I've been working on refactoring some of the mess that is the become_user()Tim Potter2000-06-231-0/+295
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | code. This code is now implemented as a stack of security contexts, where a security context is defined as a set of effective user, group and supplementary group ids. The following functions are implemented: BOOL push_sec_ctx(void); Create a new security context on the stack which is the same as the current security context. void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups); Set the current security context to a given set of user and group ids. void set_root_sec_ctx(void); Set to uid = gid = 0. No supplementary groups are set. BOOL pop_sec_ctx(void); Pop a security context from the stack and restore the user and group permissions of the previous context. void init_sec_ctx(void); Initialise the security context stack. This must be called before any of the other operations are used or weird things may happen. The idea is that there is a base security context which is either root or some authenticated unix user. Other security contexts can be pushed and popped as needed for things like changing passwords, or rpc pipe operations where the rpc pipe user is different from the smb user.
* just enough to get rpcclient to compile. Look for #if 0Gerald Carter2000-06-235-4/+15
| | | | | | | | blocks around a few unimplemented functions. Also had to add cli_reg.c to Makefile.in --jerry
* Changed enumports to show printernames as ports. In line with 'the grand ↵Jeremy Allison2000-06-223-16/+67
| | | | | | | plan' :-) Gerald & I discussed with HP. More changes to follow. Jeremy.
* lib/util_unistr.c: Removed ascii_to_unistr() as it does no codepage.Jeremy Allison2000-06-224-499/+428
| | | | | | | | | 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.
* fixed two minor bugs in new sys_select()Andrew Tridgell2000-06-211-5/+5
|
* 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
* Changed default printer driver to "" from NULL.Jeremy Allison2000-06-211-1/+1
| | | | Jeremy.
* Fixes for Win2k "add printer driver" INFO_LEVEL_6 was wrong, also someJeremy Allison2000-06-205-31/+36
| | | | | memory fixes. Jeremy.
* Fixes for IRIX kernel oplocks and systems that don't have nss.hJeremy Allison2000-06-205-3/+16
| | | | Jeremy.
* Paranoia changes to ensure that anything touched by a signal handlerJeremy Allison2000-06-193-18/+19
| | | | | and the main code is declared as VOLATILE SIG_ATOMIC_T. Jeremy.
* reverted lukes changes in param/Andrew Tridgell2000-06-162-0/+139
| | | | | | apparently they were not deliberate, they were probably a result of Luke accidentally copying a CVS directory from one spot to another in error
* more update.Luke Leighton2000-06-162-139/+0
|
* Forgot pipes_struct conversion for api_samr_enum_dom_aliases()Tim Potter2000-06-161-1/+3
|
* Whoops - dodgy make proto.Tim Potter2000-06-161-1/+1
|
* make protoTim Potter2000-06-161-403/+416
|
* Pass the vuid from the connection_struct to the printing back end functions.Tim Potter2000-06-161-1/+1
|
* 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.
* Call print_access_check() function from printing back end.Tim Potter2000-06-161-15/+45
|
* Added print_access_check() function for checking printer securityTim Potter2000-06-161-0/+71
| | | | | descriptors. Currently returns True (plus debug output) which should not affect the behaviour of nt or lanman printing.
* Pass the vuid from the connection_struct to the printing back end functions.Tim Potter2000-06-161-6/+6
|
* Simplified server pipe implementation by changing arguments passed downTim Potter2000-06-161-14/+17
| | | | | | | | | | | | | through to the individual pipe api calls. Instead of passing two prs_struct pointers, we now pass the pipes_struct pointer which contains the former information as well as other useful stuff like the vuid. Pass the vuid from the pipes_struct down to the lower level spoolss functions to perform security checks. ZERO_STRUCTP the info_2 structure before filling it. Free the device mode field before freeing the info_2 to avoid a memory leak. Fixed uninitialised pointer bug in fill_job_info_2().
* Simplified server pipe implementation by changing arguments passed downTim Potter2000-06-161-40/+108
| | | | | | | | | through to the individual pipe api calls. Instead of passing two prs_struct pointers, we now pass the pipes_struct pointer which contains the former information as well as other useful stuff like the vuid. Pass the vuid from the pipes_struct down to the lower level spoolss functions to perform security checks.
* Simplified server pipe implementation by changing arguments passed downTim Potter2000-06-161-18/+29
| | | | | | | | | through to the individual pipe api calls. Instead of passing two prs_struct pointers, we now pass the pipes_struct pointer which contains the former information as well as other useful stuff like the vuid. Removed dependency on extern current_user and fetch the vuid from the pipes_struct.
* Simplified server pipe implementation by changing arguments passed downTim Potter2000-06-167-170/+259
| | | | | | through to the individual pipe api calls. Instead of passing two prs_struct pointers, we now pass the pipes_struct pointer which contains the former information as well as other useful stuff like the vuid.
* support both read and write locks inside the tdbAndrew Tridgell2000-06-151-1/+6
|
* - use read locks when possibleAndrew Tridgell2000-06-151-42/+44
| | | | - don't use as many locks on a store
* use the right MMAP flagAndrew Tridgell2000-06-151-1/+1
|
* open files with O_NONBLOCK when available. This is necessary toAndrew Tridgell2000-06-151-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 Tridgell2000-06-156-132/+233
| | | | | I suspect we will either get rid of them or do them properly at some stage.
* add -d debuglevel optionAndrew Tridgell2000-06-151-1/+5
|
* Removed some debugs.Tim Potter2000-06-151-12/+0
|
* Added nsswitch/common.o to SMBD_OBJ1Tim Potter2000-06-141-1/+1
|
* Changed server side lsa_lookup_sids function to look up SIDs that we areTim Potter2000-06-141-28/+74
| | | | not authoritative for using winbindd.
* #include nsswitch/winbind_nss.hTim Potter2000-06-141-0/+2
|
* Merge from TNG.Tim Potter2000-06-142-55/+157
|
* Merged parse_domain_user() from TNG.Tim Potter2000-06-141-0/+20
|
* allow the notify implementation to choose the select timeout changeAndrew Tridgell2000-06-147-17/+21
|
* fixed autoconf test for kernel change notify supportAndrew Tridgell2000-06-143-131/+203
|
* ZERO_STRUCT() of info3 structure before using it.Tim Potter2000-06-141-0/+2
|
* If I use nmblookup to search for node ZOOB#1B and there is no such nameChristopher R. Hertel2000-06-131-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 -)-----