@@ -133,7 +133,8 @@ int modsecurity_init(msc_engine *msce, apr_pool_t *mp) {
133133 curl_global_init (CURL_GLOBAL_ALL );
134134#endif
135135 /* Serial audit log mutext */
136- rc = apr_global_mutex_create (& msce -> auditlog_lock , NULL , APR_LOCK_DEFAULT , mp );
136+ tmpnam (auditlog_lock_name );
137+ rc = apr_global_mutex_create (& msce -> auditlog_lock , auditlog_lock_name , APR_LOCK_DEFAULT , mp );
137138 if (rc != APR_SUCCESS ) {
138139 //ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, "mod_security: Could not create modsec_auditlog_lock");
139140 //return HTTP_INTERNAL_SERVER_ERROR;
@@ -154,7 +155,8 @@ int modsecurity_init(msc_engine *msce, apr_pool_t *mp) {
154155 }
155156#endif /* SET_MUTEX_PERMS */
156157
157- rc = apr_global_mutex_create (& msce -> geo_lock , NULL , APR_LOCK_DEFAULT , mp );
158+ tmpnam (geo_lock_name );
159+ rc = apr_global_mutex_create (& msce -> geo_lock , geo_lock_name , APR_LOCK_DEFAULT , mp );
158160 if (rc != APR_SUCCESS ) {
159161 return -1 ;
160162 }
@@ -171,7 +173,8 @@ int modsecurity_init(msc_engine *msce, apr_pool_t *mp) {
171173#endif /* SET_MUTEX_PERMS */
172174
173175#ifdef GLOBAL_COLLECTION_LOCK
174- rc = apr_global_mutex_create (& msce -> dbm_lock , NULL , APR_LOCK_DEFAULT , mp );
176+ tmpnam (dbm_lock_name );
177+ rc = apr_global_mutex_create (& msce -> dbm_lock , dbm_lock_name , APR_LOCK_DEFAULT , mp );
175178 if (rc != APR_SUCCESS ) {
176179 return -1 ;
177180 }
0 commit comments