Functions | |
| std::string | trim (std::string s) |
| std::string | digest_file (const std::string &path, const EVP_MD *(*algo)()) |
| std::string | to_lower (std::string s) |
| std::string | normalize_operand (std::string op) |
| std::vector< std::string > | field_values (const bsc::model::Connection &c, const std::string &operand) |
| bool | parse_ipv4 (const std::string &ip, std::uint32_t &out) |
| bool | parse_ipv6 (const std::string &ip, in6_addr &out) |
| bool | ip_in_cidr (const std::string &ip, const std::string &cidr) |
| std::optional< std::pair< unsigned long long, unsigned long long > > | parse_range (const std::string &data) |
| std::unordered_set< std::string > | load_simple_list_file (const fs::path &path, bool sensitive) |
| Operator | parse_operator (const json &j) |
| json | to_json_op (const Operator &op) |
Variables | |
| std::map< std::string, std::vector< std::string > > | g_aliases |
| std::string bsc::rule::anonymous_namespace{Rule.cpp}::digest_file | ( | const std::string & | path, |
| const EVP_MD * | algo (*)() ) |
Definition at line 30 of file Rule.cpp.
References digest_file().
Referenced by digest_file(), and field_values().
| std::vector< std::string > bsc::rule::anonymous_namespace{Rule.cpp}::field_values | ( | const bsc::model::Connection & | c, |
| const std::string & | operand ) |
Definition at line 80 of file Rule.cpp.
References digest_file(), bsc::model::Connection::dst_host, bsc::model::Connection::dst_ip, bsc::model::Connection::dst_port, field_values(), normalize_operand(), bsc::model::Connection::process_args, bsc::model::Connection::process_checksums, bsc::model::Connection::process_comm, bsc::model::Connection::process_cwd, bsc::model::Connection::process_env, bsc::model::Connection::process_id, bsc::model::Connection::process_path, bsc::model::Connection::process_tree, bsc::model::Connection::protocol, bsc::model::Connection::src_ip, bsc::model::Connection::src_port, and bsc::model::Connection::user_id.
Referenced by field_values().
| bool bsc::rule::anonymous_namespace{Rule.cpp}::ip_in_cidr | ( | const std::string & | ip, |
| const std::string & | cidr ) |
Definition at line 142 of file Rule.cpp.
References ip_in_cidr(), parse_ipv4(), parse_ipv6(), and to_lower().
Referenced by ip_in_cidr().
| std::unordered_set< std::string > bsc::rule::anonymous_namespace{Rule.cpp}::load_simple_list_file | ( | const fs::path & | path, |
| bool | sensitive ) |
Definition at line 176 of file Rule.cpp.
References load_simple_list_file(), and to_lower().
Referenced by load_simple_list_file().
| std::string bsc::rule::anonymous_namespace{Rule.cpp}::normalize_operand | ( | std::string | op | ) |
Definition at line 56 of file Rule.cpp.
References normalize_operand().
Referenced by field_values(), normalize_operand(), and parse_operator().
| bool bsc::rule::anonymous_namespace{Rule.cpp}::parse_ipv4 | ( | const std::string & | ip, |
| std::uint32_t & | out ) |
Definition at line 133 of file Rule.cpp.
References AF_INET, and parse_ipv4().
Referenced by ip_in_cidr(), and parse_ipv4().
| bool bsc::rule::anonymous_namespace{Rule.cpp}::parse_ipv6 | ( | const std::string & | ip, |
| in6_addr & | out ) |
Definition at line 139 of file Rule.cpp.
References AF_INET6, and parse_ipv6().
Referenced by ip_in_cidr(), and parse_ipv6().
Definition at line 192 of file Rule.cpp.
References bsc::rule::Operator::data, bsc::rule::List, bsc::rule::Operator::list, bsc::rule::Lists, bsc::rule::Network, normalize_operand(), bsc::rule::Operator::operand, parse_operator(), bsc::rule::Range, bsc::rule::Regexp, bsc::rule::Operator::sensitive, bsc::rule::Simple, and bsc::rule::Operator::type.
Referenced by parse_operator().
| std::optional< std::pair< unsigned long long, unsigned long long > > bsc::rule::anonymous_namespace{Rule.cpp}::parse_range | ( | const std::string & | data | ) |
Definition at line 165 of file Rule.cpp.
References parse_range().
Referenced by parse_range().
Definition at line 213 of file Rule.cpp.
References bsc::rule::Operator::data, bsc::rule::List, bsc::rule::Operator::list, bsc::rule::Lists, bsc::rule::Network, bsc::rule::Operator::operand, bsc::rule::Range, bsc::rule::Regexp, bsc::rule::Operator::sensitive, bsc::rule::Simple, to_json_op(), and bsc::rule::Operator::type.
Referenced by to_json_op().
| std::string bsc::rule::anonymous_namespace{Rule.cpp}::to_lower | ( | std::string | s | ) |
Definition at line 52 of file Rule.cpp.
References to_lower().
Referenced by ip_in_cidr(), load_simple_list_file(), and to_lower().
| std::string bsc::rule::anonymous_namespace{Rule.cpp}::trim | ( | std::string | s | ) |