clean up the hash entry code a bit. Got rid of lp_shmem_hash_size()
authorAndrew Tridgell <tridge@samba.org>
Wed, 29 Oct 1997 01:59:54 +0000 (01:59 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 29 Oct 1997 01:59:54 +0000 (01:59 +0000)
commit4fd96fddd2b13f60c4eb13263bac2a62a2795dcc
tree93c269b25da65f647dcca036b8d3682021142d68
parentb925b3d20c8e85c7b65a0ad599248443ae12905c
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.
(This used to be commit 6b6f624b63137d4750200e8cb4961b1402513632)
source3/include/proto.h
source3/include/smb.h
source3/locking/locking_shm.c
source3/locking/shmem.c
source3/locking/shmem_sysv.c
source3/param/loadparm.c