As you know, Linux Audit is not installed on Ubuntu Focal by default. I installed it, and my goal is to trace what containers do. I have this seccomp profile:
{
"defaultAction": "SCMP_ACT_LOG",
"architectures": [
"SCMP_ARCH_X86_64",
"SCMP_ARCH_X86",
"SCMP_ARCH_X32"
],
"syscalls": []
}
Then, in order to perform tracing, I start the container using the mentioned seccomp profile:
docker run --security-opt seccomp=seccomplog.json --rm -it ubuntu
I perform some operations, then get the trace from the container:
ausearch -m 1326
Everything good for now.
Then, I delete everything in /var/log/audit
in order to trace another container. However, after running the new container with the mentioned seccomp profile, there still is no file in the Audit folder, meaning there is no log.
Why is there no new Audit log file anymore?