Skip to content

audit: add restricted capability read-only netlink multicast socket

Richard Guy Briggs lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6audit: refactor hold queue flushkernel/audit.c+40 -220 replies
2/6audit: flatten kauditd_thread wait queue codekernel/audit.c+13 -130 replies
3/6audit: move kaudit thread start from auditd registration to kaudit initkernel/audit.c+4 -100 replies
4/6netlink: add send and receive capability requirement and capability flagsinclude/linux/netlink.h net/netlink/af_netlink.c+33 -60 replies
5/6audit: add restricted capability read-only netlink multicast socketinclude/uapi/linux/audit.h include/uapi/linux/capability.h kernel/audit.c +1 more+53 -20 replies
6/6audit: send multicast messages only if there are listenerskernel/audit.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] audit: add restricted capability read-only netlink multicast socket

From: Richard Guy Briggs <[email protected]>

Hi,

This is a patch set Eric Paris and I have been working on to add a restricted capability read-only netlink multicast socket to kaudit to enable userspace clients such as systemd to consume audit logs, in addition to the bidirectional auditd userspace client.

Currently, auditd has the CAP_AUDIT_CONTROL and CAP_AUDIT_WRITE capabilities (bot uses CAP_NET_ADMIN). The CAP_AUDIT_READ capability will be added for use by read-only AUDIT_NLGRP_READLOG multicast group clients to the kaudit subsystem.

https://bugzilla.redhat.com/show_bug.cgi?id=887992

Feedback please!

Richard Guy Briggs (6):
audit: refactor hold queue flush
audit: flatten kauditd_thread wait queue code
audit: move kaudit thread start from auditd registration to kaudit
init
netlink: add send and receive capability requirement and capability
flags
audit: add the first netlink multicast socket group
audit: send multicast messages only if there are listeners

 include/linux/netlink.h             |   4 +
 include/uapi/linux/audit.h          |   8 ++
 include/uapi/linux/capability.h     |   5 +-
 kernel/audit.c                      | 142 +++++++++++++++++++++++++-----------
 net/netlink/af_netlink.c            |  35 +++++++--
 security/selinux/include/classmap.h |   2 +-
 6 files changed, 144 insertions(+), 52 deletions(-)
Signature · 1 line
1.8.0.2