Skip to content

guestagent: consolidate audit event monitor to eBPF tracepoint monitor #4083

@AkihiroSuda

Description

@AkihiroSuda

if msg.Type == auparse.AUDIT_NETFILTER_CFG {

// See /sys/kernel/debug/tracing/available_events for the list of available tracepoints
tracepoints := []string{"syscalls:sys_exit_bind"}

We have been monitoring audit event AUDIT_NETFILTER_CFG for monitoring potential iptable changes, and eBPF tracepoint syscalls:sys_exit_bind for potential /proc/net/tcp changes.

Ideally we should only monitor eBPF tracepoints if feasible.
/sys/kernel/debug/tracing/available_events doesn't seem to contain an equivalent of AUDIT_NETFILTER_CFG though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions