From 644f017b2abaf74ccd84af2afead194bbfca1534 Mon Sep 17 00:00:00 2001 From: Mark Stemm Date: Fri, 7 Oct 2016 10:51:25 -0700 Subject: [PATCH] Add license comments to all source code. Add comment blocks to all source code w/ our gpl copyright notice. --- docker/event-generator/event_generator.cpp | 18 ++++++++++++++++++ userspace/engine/config_falco_engine.h.in | 18 ++++++++++++++++++ userspace/engine/falco_common.cpp | 18 ++++++++++++++++++ userspace/engine/falco_common.h | 18 ++++++++++++++++++ userspace/engine/falco_engine.cpp | 18 ++++++++++++++++++ userspace/engine/falco_engine.h | 18 ++++++++++++++++++ userspace/engine/lua/compiler.lua | 17 +++++++++++++++++ userspace/engine/lua/parser.lua | 17 +++++++++++++++++ userspace/engine/lua/rule_loader.lua | 17 +++++++++++++++++ userspace/engine/rules.cpp | 18 ++++++++++++++++++ userspace/engine/rules.h | 18 ++++++++++++++++++ userspace/falco/configuration.cpp | 18 ++++++++++++++++++ userspace/falco/configuration.h | 18 ++++++++++++++++++ userspace/falco/falco.cpp | 18 ++++++++++++++++++ userspace/falco/falco_outputs.cpp | 17 +++++++++++++++++ userspace/falco/falco_outputs.h | 18 ++++++++++++++++++ userspace/falco/formats.cpp | 18 ++++++++++++++++++ userspace/falco/formats.h | 18 ++++++++++++++++++ userspace/falco/logger.cpp | 18 ++++++++++++++++++ userspace/falco/logger.h | 18 ++++++++++++++++++ userspace/falco/lua/output.lua | 18 ++++++++++++++++++ userspace/falco/lua/test.lua | 17 +++++++++++++++++ 22 files changed, 391 insertions(+) diff --git a/docker/event-generator/event_generator.cpp b/docker/event-generator/event_generator.cpp index 266eeaebaa8..8d62a9903e4 100644 --- a/docker/event-generator/event_generator.cpp +++ b/docker/event-generator/event_generator.cpp @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #include #include #include diff --git a/userspace/engine/config_falco_engine.h.in b/userspace/engine/config_falco_engine.h.in index a0481911191..56ad150867d 100644 --- a/userspace/engine/config_falco_engine.h.in +++ b/userspace/engine/config_falco_engine.h.in @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #pragma once #define FALCO_ENGINE_LUA_DIR "${CMAKE_INSTALL_PREFIX}/${FALCO_SHARE_DIR}/lua/" diff --git a/userspace/engine/falco_common.cpp b/userspace/engine/falco_common.cpp index 1e2361ec186..974dd23b3ec 100644 --- a/userspace/engine/falco_common.cpp +++ b/userspace/engine/falco_common.cpp @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #include #include "config_falco_engine.h" diff --git a/userspace/engine/falco_common.h b/userspace/engine/falco_common.h index d08a274da39..075e18fc1a4 100644 --- a/userspace/engine/falco_common.h +++ b/userspace/engine/falco_common.h @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #pragma once #include diff --git a/userspace/engine/falco_engine.cpp b/userspace/engine/falco_engine.cpp index c3a391b2150..e7dfcacc2da 100644 --- a/userspace/engine/falco_engine.cpp +++ b/userspace/engine/falco_engine.cpp @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #include #include #include diff --git a/userspace/engine/falco_engine.h b/userspace/engine/falco_engine.h index 30223c99ffc..7b6c097140b 100644 --- a/userspace/engine/falco_engine.h +++ b/userspace/engine/falco_engine.h @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #pragma once #include diff --git a/userspace/engine/lua/compiler.lua b/userspace/engine/lua/compiler.lua index 7c84bdc95f1..98c7fcc263c 100644 --- a/userspace/engine/lua/compiler.lua +++ b/userspace/engine/lua/compiler.lua @@ -1,3 +1,20 @@ +-- +-- Copyright (C) 2016 Draios inc. +-- +-- This file is part of falco. +-- +-- falco is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License version 2 as +-- published by the Free Software Foundation. +-- +-- falco is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with falco. If not, see . + local parser = require("parser") local compiler = {} diff --git a/userspace/engine/lua/parser.lua b/userspace/engine/lua/parser.lua index b19fbca7596..b13ca81ea2c 100644 --- a/userspace/engine/lua/parser.lua +++ b/userspace/engine/lua/parser.lua @@ -1,3 +1,20 @@ +-- +-- Copyright (C) 2016 Draios inc. +-- +-- This file is part of falco. +-- +-- falco is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License version 2 as +-- published by the Free Software Foundation. +-- +-- falco is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with falco. If not, see . + --[[ Falco grammar and parser. diff --git a/userspace/engine/lua/rule_loader.lua b/userspace/engine/lua/rule_loader.lua index 4bc39db850e..c207b1c9c22 100644 --- a/userspace/engine/lua/rule_loader.lua +++ b/userspace/engine/lua/rule_loader.lua @@ -1,3 +1,20 @@ +-- +-- Copyright (C) 2016 Draios inc. +-- +-- This file is part of falco. +-- +-- falco is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License version 2 as +-- published by the Free Software Foundation. +-- +-- falco is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with falco. If not, see . + --[[ Compile and install falco rules. diff --git a/userspace/engine/rules.cpp b/userspace/engine/rules.cpp index 8e0ecad4535..8b14a1c3556 100644 --- a/userspace/engine/rules.cpp +++ b/userspace/engine/rules.cpp @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #include "rules.h" #include "logger.h" diff --git a/userspace/engine/rules.h b/userspace/engine/rules.h index 75c617ca443..da2e7b0630f 100644 --- a/userspace/engine/rules.h +++ b/userspace/engine/rules.h @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #pragma once #include diff --git a/userspace/falco/configuration.cpp b/userspace/falco/configuration.cpp index e41a9cda3d0..63716d729d4 100644 --- a/userspace/falco/configuration.cpp +++ b/userspace/falco/configuration.cpp @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #include "configuration.h" #include "logger.h" diff --git a/userspace/falco/configuration.h b/userspace/falco/configuration.h index 2076b5aa60a..3bf3d8ffee7 100644 --- a/userspace/falco/configuration.h +++ b/userspace/falco/configuration.h @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #pragma once #include diff --git a/userspace/falco/falco.cpp b/userspace/falco/falco.cpp index 7e9864875aa..b0847d30a58 100644 --- a/userspace/falco/falco.cpp +++ b/userspace/falco/falco.cpp @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #define __STDC_FORMAT_MACROS #include diff --git a/userspace/falco/falco_outputs.cpp b/userspace/falco/falco_outputs.cpp index d16cbdda1a6..03f6b8a7bd2 100644 --- a/userspace/falco/falco_outputs.cpp +++ b/userspace/falco/falco_outputs.cpp @@ -1,3 +1,20 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ #include "falco_outputs.h" diff --git a/userspace/falco/falco_outputs.h b/userspace/falco/falco_outputs.h index 28da94d671e..247d837c831 100644 --- a/userspace/falco/falco_outputs.h +++ b/userspace/falco/falco_outputs.h @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #pragma once #include "falco_common.h" diff --git a/userspace/falco/formats.cpp b/userspace/falco/formats.cpp index 48b9a1a0af6..d3ef1f00e77 100644 --- a/userspace/falco/formats.cpp +++ b/userspace/falco/formats.cpp @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #include #include "formats.h" diff --git a/userspace/falco/formats.h b/userspace/falco/formats.h index 4a71c926ec3..83a3609cb12 100644 --- a/userspace/falco/formats.h +++ b/userspace/falco/formats.h @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #pragma once #include "sinsp.h" diff --git a/userspace/falco/logger.cpp b/userspace/falco/logger.cpp index 86af8207df9..aa60fb27bd8 100644 --- a/userspace/falco/logger.cpp +++ b/userspace/falco/logger.cpp @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #include #include "logger.h" #include "chisel_api.h" diff --git a/userspace/falco/logger.h b/userspace/falco/logger.h index 971a134d74d..e0f0e2bf79b 100644 --- a/userspace/falco/logger.h +++ b/userspace/falco/logger.h @@ -1,3 +1,21 @@ +/* +Copyright (C) 2016 Draios inc. + +This file is part of falco. + +falco is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +falco is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with falco. If not, see . +*/ + #pragma once #include "sinsp.h" diff --git a/userspace/falco/lua/output.lua b/userspace/falco/lua/output.lua index 1ff631ab3fe..bd757916e36 100644 --- a/userspace/falco/lua/output.lua +++ b/userspace/falco/lua/output.lua @@ -1,3 +1,21 @@ +-- +-- Copyright (C) 2016 Draios inc. +-- +-- This file is part of falco. +-- +-- falco is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License version 2 as +-- published by the Free Software Foundation. +-- +-- falco is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with falco. If not, see . + + local mod = {} levels = {"Emergency", "Alert", "Critical", "Error", "Warning", "Notice", "Informational", "Debug"} diff --git a/userspace/falco/lua/test.lua b/userspace/falco/lua/test.lua index ae986dcec9d..95868f17ea5 100644 --- a/userspace/falco/lua/test.lua +++ b/userspace/falco/lua/test.lua @@ -1,3 +1,20 @@ +-- +-- Copyright (C) 2016 Draios inc. +-- +-- This file is part of falco. +-- +-- falco is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License version 2 as +-- published by the Free Software Foundation. +-- +-- falco is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with falco. If not, see . + local parser = require "parser" if #arg ~= 1 then