Thread (72 messages) flat view 72 messages, 5 authors, 2019-12-17

Re: [PATCH ghak90 V7 16/21] audit: add support for contid set/get by netlink

From: Paul Moore <paul@paul-moore.com>
Date: 2019-10-11 00:40:55
Also in: linux-fsdevel, lkml, netdev, netfilter-devel

On Wed, Sep 18, 2019 at 9:26 PM Richard Guy Briggs [off-list ref] wrote:
Add the ability to get and set the audit container identifier using an
audit netlink message using message types AUDIT_SET_CONTID 1023 and
AUDIT_GET_CONTID 1022 in addition to using the proc filesystem.  The
message format includes the data structure:

struct audit_contid_status {
       pid_t   pid;
       u64     id;
};

Signed-off-by: Richard Guy Briggs <redacted>
---
 include/uapi/linux/audit.h |  2 ++
 kernel/audit.c             | 40 ++++++++++++++++++++++++++++++++++++++++
 kernel/audit.h             |  5 +++++
 3 files changed, 47 insertions(+)
I'm not a fan of having multiple interfaces to do one thing if it can
be avoided.  Presumably the argument for the netlink API is the
container folks don't want to have to mount /proc inside containers
which are going to host nested orchestrators?  Can you reasonably run
a fully fledged orchestrator without a valid /proc?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help