feat(userspace): Add comments to explain "banned.h".

Fixes #1035

Signed-off-by: Vaibhav <vrongmeal@gmail.com>
This commit is contained in:
Vaibhav 2020-02-13 06:14:33 +05:30 committed by poiana
parent 7ed3e1d927
commit 03bf027e5c
19 changed files with 19 additions and 19 deletions

View File

@ -18,7 +18,7 @@ limitations under the License.
#include "config_falco_engine.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 = {
"Emergency",

View File

@ -32,7 +32,7 @@ extern "C" {
}
#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";

View File

@ -18,7 +18,7 @@ limitations under the License.
*/
#include "falco_utils.h"
#include "banned.h"
#include "banned.h" // This raises a compilation error when certain functions are used
namespace falco
{

View File

@ -18,7 +18,7 @@ limitations under the License.
#include "formats.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;

View File

@ -21,7 +21,7 @@ limitations under the License.
#include "falco_common.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 namespace std;

View File

@ -24,7 +24,7 @@ extern "C" {
}
#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 [] =
{

View File

@ -15,7 +15,7 @@ limitations under the License.
*/
#include "ruleset.h"
#include "banned.h"
#include "banned.h" // This raises a compilation error when certain functions are used
using namespace std;

View File

@ -20,7 +20,7 @@ limitations under the License.
#include "token_bucket.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(sinsp_utils::get_current_time_ns)

View File

@ -23,7 +23,7 @@ limitations under the License.
#include "configuration.h"
#include "logger.h"
#include "banned.h"
#include "banned.h" // This raises a compilation error when certain functions are used
using namespace std;

View File

@ -15,7 +15,7 @@ limitations under the License.
*/
#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():
m_num_syscall_evt_drops(0),

View File

@ -45,7 +45,7 @@ limitations under the License.
#include "statsfilewriter.h"
#include "webserver.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;

View File

@ -23,7 +23,7 @@ limitations under the License.
#include "formats.h"
#include "logger.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 falco::output;

View File

@ -17,7 +17,7 @@ limitations under the License.
#include <sstream>
#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):
m_ctx(ctx)

View File

@ -24,7 +24,7 @@ limitations under the License.
#include "grpc_server.h"
#include "grpc_request_context.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) \
std::vector<request_stream_context<svc, req, res>> rpc##_contexts(num); \

View File

@ -17,7 +17,7 @@ limitations under the License.
#include "config_falco.h"
#include "grpc_server_impl.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()
{

View File

@ -19,7 +19,7 @@ limitations under the License.
#include "chisel_api.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 [] =
{

View File

@ -18,7 +18,7 @@ limitations under the License.
#include <signal.h>
#include "statsfilewriter.h"
#include "banned.h"
#include "banned.h" // This raises a compilation error when certain functions are used
using namespace std;

View File

@ -15,7 +15,7 @@ limitations under the License.
*/
#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)
{

View File

@ -20,7 +20,7 @@ limitations under the License.
#include "falco_common.h"
#include "webserver.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 namespace std;