1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

914 Commits

Author SHA1 Message Date
Andrew Tridgell
0e244f9e7c removing the files that are now in rpc_pipes
For future reference, if you want to move files about then don't do it
this way. The history info is lost.

Instead contact me first and tell me what you want moved and why. Then
I'll decide if we can do it while retaining the history info.
-
Andrew Tridgell
31dcb51e05 - cleanup some warnings
- redo the prototypes
-
Luke Leighton
5858cb97f5 blanked out these files, so that if someone does make proto, they don't
interfere with the files in the rpc_pipes/ directory.

andrew doesn't want to lose any cvs history by moving files around, so
he's going to look into that tomorrow.
-
Luke Leighton
a64ba16db6 added a client-side "set named pipe handle state" function. not known
exactly when you call this (before or after a bind).  can sort that out
later.
-
Luke Leighton
5335d5cdc4 storing pipe name state (from set named pipe handle state call) in the
pipes array.
-
Christopher R. Hertel
c6205dd45e Modified Files:
ubiqx/Makefile ubiqx/README.UBI

Added new modules to the Makefile.  Changed the text of the README to
reflect the directory change.

Added Files:
        ubiqx/ubi_AVLtree.c ubiqx/ubi_AVLtree.h
        ubiqx/ubi_BinTree.c ubiqx/ubi_BinTree.h
        ubiqx/ubi_SplayTree.c ubiqx/ubi_SplayTree.h
        ubiqx/ubi_StackQueue.c ubiqx/ubi_StackQueue.h
        ubiqx/ubi_sLinkList.c ubiqx/ubi_sLinkList.h

This is the remainder of the toolkit.  A quick rundown:
  sLinkList  = A simple singly-linked list.
  StackQueue = Implements both a stack and a queue.
  dLinkList  = (Not added 'cause it's already there.)  A doubly-linked list.

  BinTree    = Base level binary tree module.  (No height balancing, just
               the basics.)
  AVLtree    = Descendant type of BinTree.  Implements a height-balanced
               (AVL) binary tree.
  SplayTree  = Descendant type of BinTree.  Implements a splay-balanced
               binary tree.

Renamed Files:
        ubiqx/COPYING.LGPL ==> ubiqx/COPYING.LIB

This matches the naming that GNU suggests.
-
Luke Leighton
808a0b1be7 GLPL notice on the rpc_pipes/ directory -
Luke Leighton
ada256b5e3 Makefile:
simply adding pipes.o to SMBDOBJ3.

rpc_pipes/pipe_hnd.c :

	created pipe handles module.

pipes.c server.c :

	use of pipe_hnd functions in SMBopenX and SMBclose, on the IPC$ pipe.
-
Luke Leighton
93df2c62cc Makefiles for libraries. the dependencies aren't quite right, and i
don't know how to sort them.

make proto in each library directory.  over-ride the make proto for ubiqx,
so that it doesn't happen, but throws up a warning instead.
-
Andrew Tridgell
13d9025592 Chris will be pleased to know that mkproto.awk no longer runs on the
ubiqx files :-)
-
Andrew Tridgell
dc8998b1d3 moved ubi_ modules back into the ubiqx directory.
I've added a very simple (and portable) method for having separate
source directories.

This should also help when we add directories for the various ports. A
unix directory would make sense.
-
Samba Release Account
9212c93bee preparing for release of 1.9.18alpha9 -
Luke Leighton
be649198e6 updated documentation as chmodding files /tmp/lsarpc and /tmp/netlogon
is not needed any more.
-
Luke Leighton
33cce5fac0 removed mechanism that created actual files NETLOGON, lsarpc and the like,
which are pipes on the IPC$ connection.

created mechanism to record pipe names in a separate pipes_struct.  it
is planned to expand this, to return sensible things like interface
structures, and policy handles (RPC_IFACE and LSA_POL_HND).  and the like.
-
Luke Leighton
9dd2fcae78 update -
Samba Release Account
48548526e8 preparing for release of 1.9.18alpha8 -
Luke Leighton
4b54d22d59 byteorder.h :
have another go at reporting stuff the right way round (on SPARCs)

srvparse.c :

	copyright messages
-
Luke Leighton
c0137cd8fe zero data parameter being passed to smb_io_rpc_hdr(), which couldn't cope. -
Luke Leighton
4088683ee0 typecast in calls to print_asc() wrong -
Luke Leighton
420408ee83 ipc.c ntclientpipe.c:
response to Bind Acknowledgment needs a lookup table for the PIPE string
	(secondary address in RPC_HDR_BA structure).

smbparse.c util.c :

	interesting problem, i think caused by us typecasting a uint16* buffer
	to char*.  found on a SPARC.
-
Samba Release Account
dceace804e preparing for release of 1.9.18alpha7 -
Samba Release Account
8eae5cc0fd updated to current version number. -
Luke Leighton
89664898e2 called dump_data() from show_msg(). -
Luke Leighton
c2e2197e9d ipc.c :
bind ack should contain \PIPE\pipename not just pipename.

ntclientpipe.c :

	sanity in bind ack: pipe name checks; transfer syntax checks; reason checks.
-
Luke Leighton
50d7e4d6f6 split ntclient.c down into appropriate modules. -
Andrew Tridgell
2bbd8d2cbc damn. We need root privilages to do semaphore operations even if we
have done the semget() as root.  The problem is that become_root() and
unbecome_root() are so slow!

I've provided two options. The default is to set the semaphores (but
_not_ the shared memory) world writeable so that a become_root() isn't
needed. Otherwise you can define SECURE_SEMAPHORES and pay the
performance penalty.
-
Andrew Tridgell
68ad7b9199 - don't allow locking to initialise twice
- check that it is initialised before de-initialising it!
-
Andrew Tridgell
6b6f624b63 clean up the hash entry code a bit. Got rid of lp_shmem_hash_size()
and made it private to the 2 shmem implementations. Added new
shmops->hash_size() function.

Added code to handle the IPC system limits by looping decreasing the
size of the resources (semaphores and shared memory) that we request
until we get under the system limits, which can be quite low on some
systems!

Added checks that the creator of the IPC objects is root. Otherwise we
would be open to a security hole where someone pre-creates the shared
memory segment and attaches.
-
Luke Leighton
6b0e519294 added frag field to make_rpc_hdr() function -
Luke Leighton
21c89e2f17 byteorder.h :
added mode for printing debug array data as chars not uint8/16/32s.
	only really useful for (uint8) strings or (uint16) unicode strings

lsaparse.c smbparse.c smb.h :

	rpc bind and rpc bind ack structures and parsing and creation functions.

ipc.c pipes.c pipenetlog.c pipentlsa.c pipesrvsvc.c :

	using rpc bind / bind ack parsing routines instead of incorrect use of
	api_LsarpcTNP1 function.

ntclient.c :

	creation of do_rpc_bind() function.

THAT'S IT, FOLKS!
-
Jeremy Allison
6e9f817414 Utility code to produce printer definition files from MS files.
Part of code to support Windows 95 automated printer driver installs.
Written by Jean-Francois Micouleau <Jean-Francois.Micouleau@utc.fr>.
-
Jeremy Allison
c739de26c2 Added "printer driver location", "printer driver file" parameters.
Jeremy.
-
Jeremy Allison
02fc5e756d Adding PRINTER_DRIVER.txt docs. -
Jeremy Allison
9a5b42e6b3 Adding Windows 95 printer driver code donated by Jean-Francois.Micouleau@utc.fr.
New program, make_printerdef, plus two new parameters :

[global] "printer driver file"
[local] "printer driver location"

Jeremy.
-
Herb Lewis
9e51c248af mention that Perl is required for build scripts -
Herb Lewis
eb95385f65 removing Makefile and adding perl script to generate it form source tree -
Herb Lewis
ce65e1f4cc tired of updating Makefile - use perl script to generate it now -
Jeremy Allison
fb81a77a63 Adding printer drivers patch from Jean-Francois Micouleau
<Jean-Francois.Micouleau@utc.fr>. We can expand on this after
we have tested it out.
Jeremy.
-
Luke Leighton
9f2c4f1fee smb.h smbparse.c pipeutil.c :
added bind and bind ack structures and parsing functions.  restructured
	rpc header stuff.

ntclient.c pipenetlog.c pipentlsa.c pipesrvsvc.c :

	having to deal with restructuring above.
-
Andrew Tridgell
3480524e15 enable sysv ipc and fast share modes on OSF1 -
Andrew Tridgell
7d80e25bb4 need includes.h to compile on some systems (eg. sunos4) -
Andrew Tridgell
6ca96782ac fix for broken sunos4 includes (doesn't have SHM_R) -
Andrew Tridgell
af13f5e178 fix cast -
Andrew Tridgell
4db076e08b define semun for broken solaris sysvipc -
Andrew Tridgell
9f0be847fd lower the default hash size if SEMMSL isn't defined -
Andrew Tridgell
6388da22eb define USE_SYSV_IPC on sunos4 -
Andrew Tridgell
8f2366e57d define USE_SYSV_IPC on a bunch more systems.
Needs some testing though.
-
Andrew Tridgell
cc8fe0f062 SYSV IPC implementation of fast share modes.
It will try sysv IPC first, then if that fails it will try mmap(),
then after that it will try share files.

I have defined USE_SYSV_IPC for Linux, Solaris and HPUX at the
moment. Probably a lot more could have it defined. In fact, the vast
majority of systems support it. Need autoconf again :-)

It should actually be faster than the mmap() version, and doesn't need
any lock files. This means the problem of the share mem file being on
a NFS drive will be gone.
-
Andrew Tridgell
c63fee2b28 refuse pathworks type R connect (patch from Stephen Tweedie) -
Luke Leighton
2f3cca23e2 added LSA_Q_CLOSE and LSA_R_CLOSE (also to smb.h). implemented in smbclient.
updated Query Info Policy to report domain name and domain sid for info levels
3 and 5.
fixed bug in dom_sid_to_string (idauths decoded wrong).  fixed bug in DOM_SID:
subauths are 32 bit not 16.
-