mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-08 01:34:03 +00:00
feat(userspace): Add comments to explain "banned.h".
Fixes #1035 Signed-off-by: Vaibhav <vrongmeal@gmail.com>
This commit is contained in:
parent
7ed3e1d927
commit
03bf027e5c
@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
#include "config_falco_engine.h"
|
#include "config_falco_engine.h"
|
||||||
#include "falco_common.h"
|
#include "falco_common.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
std::vector<std::string> falco_common::priority_names = {
|
std::vector<std::string> falco_common::priority_names = {
|
||||||
"Emergency",
|
"Emergency",
|
||||||
|
@ -32,7 +32,7 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
|
|
||||||
string lua_on_event = "on_event";
|
string lua_on_event = "on_event";
|
||||||
|
@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "falco_utils.h"
|
#include "falco_utils.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
namespace falco
|
namespace falco
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "falco_engine.h"
|
#include "falco_engine.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
|
|
||||||
sinsp* falco_formats::s_inspector = NULL;
|
sinsp* falco_formats::s_inspector = NULL;
|
||||||
|
@ -21,7 +21,7 @@ limitations under the License.
|
|||||||
|
|
||||||
#include "falco_common.h"
|
#include "falco_common.h"
|
||||||
#include "json_evt.h"
|
#include "json_evt.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -24,7 +24,7 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#include "falco_engine.h"
|
#include "falco_engine.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
const static struct luaL_reg ll_falco_rules [] =
|
const static struct luaL_reg ll_falco_rules [] =
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ruleset.h"
|
#include "ruleset.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ limitations under the License.
|
|||||||
|
|
||||||
#include "token_bucket.h"
|
#include "token_bucket.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
token_bucket::token_bucket():
|
token_bucket::token_bucket():
|
||||||
token_bucket(sinsp_utils::get_current_time_ns)
|
token_bucket(sinsp_utils::get_current_time_ns)
|
||||||
|
@ -23,7 +23,7 @@ limitations under the License.
|
|||||||
|
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "event_drops.h"
|
#include "event_drops.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
syscall_evt_drop_mgr::syscall_evt_drop_mgr():
|
syscall_evt_drop_mgr::syscall_evt_drop_mgr():
|
||||||
m_num_syscall_evt_drops(0),
|
m_num_syscall_evt_drops(0),
|
||||||
|
@ -45,7 +45,7 @@ limitations under the License.
|
|||||||
#include "statsfilewriter.h"
|
#include "statsfilewriter.h"
|
||||||
#include "webserver.h"
|
#include "webserver.h"
|
||||||
#include "grpc_server.h"
|
#include "grpc_server.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
typedef function<void(sinsp* inspector)> open_t;
|
typedef function<void(sinsp* inspector)> open_t;
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ limitations under the License.
|
|||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "falco_output_queue.h"
|
#include "falco_output_queue.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace falco::output;
|
using namespace falco::output;
|
||||||
|
@ -17,7 +17,7 @@ limitations under the License.
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include "grpc_context.h"
|
#include "grpc_context.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
falco::grpc::context::context(::grpc::ServerContext* ctx):
|
falco::grpc::context::context(::grpc::ServerContext* ctx):
|
||||||
m_ctx(ctx)
|
m_ctx(ctx)
|
||||||
|
@ -24,7 +24,7 @@ limitations under the License.
|
|||||||
#include "grpc_server.h"
|
#include "grpc_server.h"
|
||||||
#include "grpc_request_context.h"
|
#include "grpc_request_context.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
#define REGISTER_STREAM(req, res, svc, rpc, impl, num) \
|
#define REGISTER_STREAM(req, res, svc, rpc, impl, num) \
|
||||||
std::vector<request_stream_context<svc, req, res>> rpc##_contexts(num); \
|
std::vector<request_stream_context<svc, req, res>> rpc##_contexts(num); \
|
||||||
|
@ -17,7 +17,7 @@ limitations under the License.
|
|||||||
#include "config_falco.h"
|
#include "config_falco.h"
|
||||||
#include "grpc_server_impl.h"
|
#include "grpc_server_impl.h"
|
||||||
#include "falco_output_queue.h"
|
#include "falco_output_queue.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
bool falco::grpc::server_impl::is_running()
|
bool falco::grpc::server_impl::is_running()
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
#include "chisel_api.h"
|
#include "chisel_api.h"
|
||||||
|
|
||||||
#include "falco_common.h"
|
#include "falco_common.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
const static struct luaL_reg ll_falco [] =
|
const static struct luaL_reg ll_falco [] =
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "statsfilewriter.h"
|
#include "statsfilewriter.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
void falco::utils::read(const std::string& filename, std::string& data)
|
void falco::utils::read(const std::string& filename, std::string& data)
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@ limitations under the License.
|
|||||||
#include "falco_common.h"
|
#include "falco_common.h"
|
||||||
#include "webserver.h"
|
#include "webserver.h"
|
||||||
#include "json_evt.h"
|
#include "json_evt.h"
|
||||||
#include "banned.h"
|
#include "banned.h" // This raises a compilation error when certain functions are used
|
||||||
|
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
Loading…
Reference in New Issue
Block a user