damn. We need root privilages to do semaphore operations even if we
authorAndrew Tridgell <tridge@samba.org>
Wed, 29 Oct 1997 02:59:22 +0000 (02:59 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 29 Oct 1997 02:59:22 +0000 (02:59 +0000)
commit2bbd8d2cbc5cf1901859a181bc9ec29822995e51
tree938447c1250559bf4c8a3468b03e721449f5db73
parent68ad7b91999216e5721207b5a79c3a66be7cf420
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.
source/locking/shmem_sysv.c
source/utils/status.c