update(userspace/engine): avoid relying on leaked std namespace

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2022-12-02 19:24:37 +00:00
committed by poiana
parent 01ae266332
commit 54f117141b
9 changed files with 20 additions and 21 deletions

View File

@@ -52,7 +52,7 @@ struct falco_exception : std::exception
namespace falco_common
{
const string syscall_source = "syscall";
const std::string syscall_source = "syscall";
// Same as numbers/indices into the above vector
enum priority_type

View File

@@ -150,7 +150,7 @@ public:
// add k8s/mesos/container information to outputs when
// available.
//
void set_extra(string &extra, bool replace_container_info);
void set_extra(std::string &extra, bool replace_container_info);
// Represents the result of matching an event against a set of
// rules.
@@ -284,7 +284,7 @@ private:
stats_manager m_rule_stats_manager;
uint16_t m_next_ruleset_id;
std::map<string, uint16_t> m_known_rulesets;
std::map<std::string, uint16_t> m_known_rulesets;
falco_common::priority_type m_min_priority;
//

View File

@@ -33,7 +33,7 @@ public:
const std::string &level, const std::string &format, std::set<std::string> &tags,
const std::string &hostname) const;
map<string, string> get_field_values(gen_event *evt, const std::string &source,
std::map<std::string, std::string> get_field_values(gen_event *evt, const std::string &source,
const std::string &format) const ;
protected:

View File

@@ -67,7 +67,7 @@ public:
std::string& out) const;
private:
atomic<uint64_t> m_total;
std::vector<std::unique_ptr<atomic<uint64_t>>> m_by_priority;
std::vector<std::unique_ptr<atomic<uint64_t>>> m_by_rule_id;
std::atomic<uint64_t> m_total;
std::vector<std::unique_ptr<std::atomic<uint64_t>>> m_by_priority;
std::vector<std::unique_ptr<std::atomic<uint64_t>>> m_by_rule_id;
};