From 87ea4b93ecde16a4156c9c307ad477537a837ef4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 29 Oct 1997 02:59:22 +0000 Subject: 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/utils/status.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/utils/status.c') diff --git a/source3/utils/status.c b/source3/utils/status.c index f124d79939..1a05f2b1af 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -58,6 +58,7 @@ unsigned int Ucrit_IsActive = 0; /* added by OH */ void unbecome_root(BOOL restore_dir) {} connection_struct Connections[MAX_CONNECTIONS]; files_struct Files[MAX_OPEN_FILES]; +struct current_user current_user; static void print_share_mode(share_mode_entry *e, char *fname) -- cgit