]> granicus.if.org Git - icinga2/commit
* use dedicated permissions namespace for scriptframe in filterutility to allow prope...
authorElias Ohm <eohm@novomind.com>
Fri, 12 Apr 2019 06:10:57 +0000 (08:10 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 16 May 2019 14:12:21 +0000 (16:12 +0200)
commit8315ea86d79e978b08585f917fa393f89e86ad2f
treea3a6f30b72e75c59673c64fa8cd0630a900b8773
parent6e822672befbc8b25db4331dd4f7b6c96571c767
* use dedicated permissions namespace for scriptframe in filterutility to allow proper parallel execution
  * fixes issue https://github.com/Icinga/icinga2/issues/6785 where permission checks get wrong result because permissions checks are done within a shared namespaces without using only unique keys
  * mitigates issue https://github.com/Icinga/icinga2/issues/6874 where segmentation faults occur because of concurrent access to non threadsafe parts of namespace (a fix for thread safety of namespaces which would be an alternative approach to get rid of these segfaults is out of scope of this fix as 6785 needs to be fixed anyway and this is the straight-forwards) way to fix that
* do the same for eventqueue (not certain whether events can be processed in parallel but I expect it is the case)

(cherry picked from commit 1e7cd4afc821a0592b535e4270ebb2fdc387a207)
lib/remote/eventqueue.cpp
lib/remote/filterutility.cpp