Skip to content

Commit

Permalink
Add containerd related flags
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Krum <[email protected]>

sysdig-CLA-1.0-contributing-entity: International Business Machines
sysdig-CLA-1.0-signed-off-by: Spencer Krum <[email protected]>
  • Loading branch information
nibalizer committed Apr 25, 2019
1 parent 05bb4a8 commit 61291b7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions userspace/falco/falco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ int falco_init(int argc, char **argv)
bool list_flds = false;
string list_flds_source = "";
bool print_support = false;
string cri_socket_path;

// Used for writing trace files
int duration_seconds = 0;
Expand Down Expand Up @@ -604,6 +605,13 @@ int falco_init(int argc, char **argv)
printf("falco version %s\n", FALCO_VERSION);
return EXIT_SUCCESS;
}
else if (string(long_options[long_index].name) == "cri")
{
cri_socket_path = optarg;
}
// else if (string(long_options[long_index].name) == "cri-timeout")
// {
// }
else if (string(long_options[long_index].name) == "list")
{
list_flds = true;
Expand Down Expand Up @@ -631,6 +639,12 @@ int falco_init(int argc, char **argv)
inspector = new sinsp();
inspector->set_buffer_format(event_buffer_format);

// If required, set the CRI path
if(!cri_socket_path.empty())
{
inspector->set_cri_socket_path(cri_socket_path);
}

//
// If required, set the snaplen
//
Expand Down

0 comments on commit 61291b7

Please sign in to comment.