Aegis-BPF

Policy Format (v1)

Policy files are line-oriented and ASCII-only. Lines starting with # are comments. Blank lines are ignored.

The header is a set of key=value pairs before any section.

Required:

Example:

version=1

Sections

[deny_path]

One path per line. The path must exist when applying the policy because the agent resolves the inode for enforcement. Relative paths are allowed but discouraged.

[deny_inode]

One entry per line in dev:ino format. These are enforced only when BPF LSM is enabled (tracepoint fallback does not match inodes).

[allow_cgroup]

One entry per line. Use a cgroup path (preferred) or cgid:<id> when a path is not available.

CLI lifecycle

Environment variables:

Example

version=1

[deny_path]
/etc/shadow
/var/log/auth.log

[deny_inode]
2049:123456

[allow_cgroup]
/sys/fs/cgroup/my_service
cgid:10243