mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-28 15:47:25 +00:00
new(userspace): print enabled sources when falco starts
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
This commit is contained in:
parent
baf5540c30
commit
74b6186f7d
@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
#include "application.h"
|
#include "application.h"
|
||||||
|
|
||||||
using namespace falco::app;
|
using namespace falco::app;
|
||||||
@ -89,6 +91,13 @@ application::run_result application::init_falco_engine()
|
|||||||
return run_result::fatal("At least one event source needs to be enabled");
|
return run_result::fatal("At least one event source needs to be enabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Print all enabled sources. */
|
||||||
|
std::ostringstream os;
|
||||||
|
std::copy(m_state->enabled_sources.begin(), m_state->enabled_sources.end(), std::ostream_iterator<std::string>(os, ","));
|
||||||
|
std::string result = os.str();
|
||||||
|
result.pop_back();
|
||||||
|
falco_logger::log(LOG_INFO, "Enabled sources: " + result + "\n");
|
||||||
|
|
||||||
m_state->engine->set_min_priority(m_state->config->m_min_priority);
|
m_state->engine->set_min_priority(m_state->config->m_min_priority);
|
||||||
|
|
||||||
return run_result::ok();
|
return run_result::ok();
|
||||||
|
Loading…
Reference in New Issue
Block a user