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)
commit87ea4b93ecde16a4156c9c307ad477537a837ef4
treec377ec3ee10eb8093cb8159348820d2b291442e2
parentcb6941a19390113cbe61f436e74c9d969afd00d0
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.
(This used to be commit 2bbd8d2cbc5cf1901859a181bc9ec29822995e51)
source3/locking/shmem_sysv.c
source3/utils/status.c