<feed xmlns='http://www.w3.org/2005/Atom'>
<title>procd/jail/seccomp-trace.c, branch master</title>
<subtitle>OpenWrt service / process manager</subtitle>
<id>https://git.openwrt.org/project/procd/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/procd/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/'/>
<updated>2026-08-21T04:31:30Z</updated>
<entry>
<title>jail: add seccomp trace, audit and complain modes</title>
<updated>2026-08-21T04:31:30Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-08-21T04:31:30Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=ef2d5fc5e09d72d6d40e2c1bb2d8db00c85afd16'/>
<id>urn:sha1:ef2d5fc5e09d72d6d40e2c1bb2d8db00c85afd16</id>
<content type='text'>
Add a ptrace-based syscall tracer, selected via -m (enforce, trace, audit
or complain) with -M naming an NDJSON log. Trace records every syscall,
classifying each into a startup phase (linker, init, app) resolved from
entry-point and libc breakpoints, so a generated profile can cover the
application phase alone. Audit and complain run the real seccomp filter
but rewrite its returns to SECCOMP_RET_TRACE, logging every denial; audit
then enforces (errno or kill, including the two-stop errno arches), while
complain permits and only records. Events stream to a udebug ring and, as
a fallback, to the NDJSON file.

procd's instance config gains seccomp_mode and seccomp_log, passed
through to ujail as -m and -M.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
</feed>
