diff options
author | Jim Jagielski <jim@apache.org> | 2003-03-29 03:18:43 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2003-03-29 03:18:43 +0100 |
commit | 0deed15fe7d5d902f4b7b59f83e256c75817d4c4 (patch) | |
tree | 3076db74249a208445f217a2d97b76d95f9471dc /modules/ssl/ssl_engine_mutex.c | |
parent | keep changes in sync ... (diff) | |
download | apache2-0deed15fe7d5d902f4b7b59f83e256c75817d4c4.tar.xz apache2-0deed15fe7d5d902f4b7b59f83e256c75817d4c4.zip |
Because SSL's child init is run *after* we change uid/gid. So we need to ensure that file-based
locks have the correct perms so that the child process
can access them
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99104 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | modules/ssl/ssl_engine_mutex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/ssl/ssl_engine_mutex.c b/modules/ssl/ssl_engine_mutex.c index e51849eddf..2e3efca15d 100644 --- a/modules/ssl/ssl_engine_mutex.c +++ b/modules/ssl/ssl_engine_mutex.c @@ -88,6 +88,8 @@ int ssl_mutex_init(server_rec *s, apr_pool_t *p) "Cannot create SSLMutex"); return FALSE; } + if (mc->szMutexFile && mc->ChownMutexFile == TRUE) + chown(mc->szMutexFile, unixd_config.user_id, -1); #if APR_USE_SYSVSEM_SERIALIZE rv = unixd_set_global_mutex_perms(mc->pMutex); |