-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Split this off from #32, leaving that issue for addressing namespace identifiers in audit records, should they be deemed necessary.
Implement an audit container identifier.
Add the ability to identify a task's assigned container using an audit container identifier. The registration process involves writing a u64 to file audit_containerid in the /proc filesystem under the PID of the target container task. This will result in a CONTAINER_ID record to log the event. Subsequent audit events that involve this task will have an auxiliary record CONTAINER to identify the container involved.
Depends: linux-audit/audit-userspace#51
See: https://github.com/linux-audit/audit-kernel/wiki/RFE-Audit-Container-ID
History:
- Here's a patchset from David Howells that makes an attempt at a kernel container object that would have been useful for our use case:
https://lkml.org/lkml/2017/5/22/645 - The LWN article reviewing it:
https://lwn.net/Articles/723561/ - Posted Audit Kernel Container identifier proposal v1 upstream:
https://www.redhat.com/archives/linux-audit/2017-September/msg00082.html
https://lkml.org/lkml/2017/9/13/383 - Posted RFC(v2): Audit Kernel Container IDs proposal
https://lkml.org/lkml/2017/10/12/354 - "non-Cc:" fork https://lkml.org/lkml/2017/10/17/689
- LWN coverage: https://lwn.net/Articles/740621/
- Posted RFC(v3): Audit Kernel Container identifiers proposal
https://www.redhat.com/archives/linux-audit/2018-January/msg00014.html
https://lkml.org/lkml/2018/1/9/347 - Posted RFC v1 patchset upstream:
https://lkml.org/lkml/2018/3/1/813
https://www.redhat.com/archives/linux-audit/2018-March/msg00004.html - Posted RFC v1 userspace patch for auditctl containerid filter support:
https://www.redhat.com/archives/linux-audit/2018-March/msg00030.html
https://lkml.org/lkml/2018/3/5/82 - Posted v2 patchset upstream:
https://www.redhat.com/archives/linux-audit/2018-March/msg00110.html
https://lkml.org/lkml/2018/3/16/191 - Posted v2 userspace patchset upstream:
https://www.redhat.com/archives/linux-audit/2018-March/msg00124.html
https://lkml.org/lkml/2018/3/16/210
larry-cableJAORMX