Skip to content

Commit 8e4ed0c

Browse files
kyrofapoiana
authored andcommitted
rules: add support for k3s to containerd_activities macro
K3s is a stripped down version of Kubernetes that bundles dependencies within it, including containerd. It puts containerd files (sockets, tmpmounts, snapshotter overlayfs, etc.) in namespaced, non-standard locations in an attempt to not interfere with a system-wide containerd installation. As a result, the "Clear Log Activities" rule triggers warnings for the bundled containerd. Fix that by including K3s' non-standard paths in the containerd_activities macro. Signed-off-by: Kyle Fazzari <[email protected]>
1 parent 1d2c6b1 commit 8e4ed0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rules/falco_rules.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,9 @@
919919

920920
- macro: containerd_activities
921921
condition: (proc.name=containerd and (fd.name startswith "/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/" or
922-
fd.name startswith "/var/lib/containerd/tmpmounts/"))
922+
fd.name startswith "/var/lib/rancher/k3s/agent/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots" or
923+
fd.name startswith "/var/lib/containerd/tmpmounts/" or
924+
fd.name startswith "/var/lib/rancher/k3s/agent/containerd/tmpmounts/"))
923925

924926
- rule: Clear Log Activities
925927
desc: >

0 commit comments

Comments
 (0)