Fix remaining falco_rules.conf references.

Did a find looking for references to falco_rules.conf. Renamed to falco_rules.yaml.
This commit is contained in:
Mark Stemm 2016-05-10 16:12:32 -07:00
parent 5263181b15
commit 13fc4ca77a
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ container.
Falco is configured via a rules file defining the behaviors and events to Falco is configured via a rules file defining the behaviors and events to
watch for, and a general configuration file. Rules are expressed in a watch for, and a general configuration file. Rules are expressed in a
high-level, human-readable language. We've provided a sample rule file high-level, human-readable language. We've provided a sample rule file
`./rules/falco_rules.conf` as a starting point - you can (and will likely `./rules/falco_rules.yaml` as a starting point - you can (and will likely
want!) to adapt it to your environment. want!) to adapt it to your environment.
When developing rules, one helpful feature is Falco's ability to read trace When developing rules, one helpful feature is Falco's ability to read trace
@ -54,7 +54,7 @@ A Falco rules file is comprised of two kinds of elements: rules and macro defini
#### Conditions #### Conditions
The key part of a rule is the _condition_ field. A condition is simply a boolean predicate on sysdig events. The key part of a rule is the _condition_ field. A condition is simply a boolean predicate on sysdig events.
Conditions are expressed using the Sysdig [filter syntax](http://www.sysdig.org/wiki/sysdig-user-guide/#filtering). Any Sysdig filter is a valid Falco condition (with the caveat of certain excluded system calls, discussed below). In addition, Falco expressions can contain _macro_ terms, which are not present in Sysdig syntax. Conditions are expressed using the Sysdig [filter syntax](http://www.sysdig.org/wiki/sysdig-user-guide/#filtering). Any Sysdig filter is a valid Falco condition (with the caveat of certain excluded system calls, discussed below). In addition, Falco expressions can contain _macro_ terms, which are not present in Sysdig syntax.
Here's an example of a condition that alerts whenever a bash shell is run inside a container: Here's an example of a condition that alerts whenever a bash shell is run inside a container:
@ -254,7 +254,7 @@ To load the locally built version, assuming you are in the `build` dir, use:
Assuming you are in the `build` dir, you can run Falco as: Assuming you are in the `build` dir, you can run Falco as:
`$ sudo ./userspace/falco/falco -c ../falco.yaml -r ../rules/falco_rules.conf` `$ sudo ./userspace/falco/falco -c ../falco.yaml -r ../rules/falco_rules.yaml`
Or instead you can try using some of the simpler rules files in `rules`. Or to get started, try creating a file with this: Or instead you can try using some of the simpler rules files in `rules`. Or to get started, try creating a file with this:

View File

@ -45,7 +45,7 @@ static void usage()
" -d, --daemon Run as a daemon\n" " -d, --daemon Run as a daemon\n"
" -p, --pidfile <pid_file> When run as a daemon, write pid to specified file\n" " -p, --pidfile <pid_file> When run as a daemon, write pid to specified file\n"
" -e <events_file> Read the events from <events_file> (in .scap format) instead of tapping into live.\n" " -e <events_file> Read the events from <events_file> (in .scap format) instead of tapping into live.\n"
" -r <rules_file> Rules file (defaults to value set in configuration file, or /etc/falco_rules.conf).\n" " -r <rules_file> Rules file (defaults to value set in configuration file, or /etc/falco_rules.yaml).\n"
"\n" "\n"
); );
} }