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)
commit6b6f624b63137d4750200e8cb4961b1402513632
tree895f19bb2b9ec55cb22b3aba8d647aaf5c93a61a
parent6b0e51929495582bc48a4d5fba24aa7c1f7caaf6
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.
source/include/proto.h
source/include/smb.h
source/locking/locking_shm.c
source/locking/shmem.c
source/locking/shmem_sysv.c
source/param/loadparm.c