mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-08 10:09:40 +00:00
fix(userspace/engine): guard lua state into falco engine
Co-authored-by: Lorenzo Fontana <lo@linux.com> Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
committed by
Lorenzo Fontana
parent
f0cd3344a2
commit
8a6c0b796c
@@ -21,6 +21,7 @@ limitations under the License.
|
||||
|
||||
#include <string>
|
||||
#include <exception>
|
||||
#include <mutex>
|
||||
|
||||
extern "C" {
|
||||
#include "lua.h"
|
||||
@@ -94,11 +95,10 @@ public:
|
||||
protected:
|
||||
lua_State *m_ls;
|
||||
|
||||
std::mutex m_ls_semaphore;
|
||||
|
||||
sinsp *m_inspector;
|
||||
|
||||
private:
|
||||
void add_lua_path(std::string &path);
|
||||
};
|
||||
|
||||
|
||||
|
||||
};
|
Reference in New Issue
Block a user