Skip to content

Container plugin: container.liveness_probe is always NONE #1017

@wangwillian0

Description

@wangwillian0

The fields container.healthcheck, container.liveness_probe and container.readiness_probe are always NONE. In this case I created a rule that uses these fields in the output. The event type is filtered by evt.type in (execve, execveat).

I captured the process spawning for a few minutes, so it's not a delayed initialization or something like that.

pod:

apiVersion: v1
kind: Pod
metadata:
  name: debugging
spec:
  containers:
  - name: netshoot
    image: nicolaka/netshoot
    command: ["/bin/bash", "-c", "while true; do sleep 100; ls; done"]
    livenessProbe:
      exec:
        command:
        - "ls"
        - "-111"
      initialDelaySeconds: 5
      periodSeconds: 10
  - name: alpine
    command: ["/bin/sh", "-c", "while true; do sleep 100; ls; done"]
    image: alpine
  restartPolicy: Always

falco.yaml:

plugins:
  - init_config: ""
    library_path: libjson.so
    name: json
  - init_config:
      engines:
        bpm:
          enabled: false
        containerd:
          enabled: true
          sockets:
            - /run/containerd/containerd.sock
        cri:
          enabled: true # need to enable it too for some reason (maybe bug?)
          sockets:
            - /run/crio/crio.sock
        docker:
          enabled: false
          sockets:
            - /var/run/docker.sock
        libvirt_lxc:
          enabled: false
        lxc:
          enabled: false
        podman:
          enabled: false
          sockets:
            - /run/podman/podman.sock
      hooks:
        - create
      label_max_len: 100
      with_size: false
    library_path: libcontainer.so
    name: container

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions