All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: [PATCH 0/2] audit: log binding and unbinding to netlink multicast socket
Date: Thu, 23 Jul 2015 16:45:05 -0400	[thread overview]
Message-ID: <1470011.Rp6MUNe0GI@x2> (raw)

Hello,

I am resurrecting this old patch. Its been cleaned up by adding a simple task 
logging function which should, in the future, serve almost all kernel logging 
needs. The cleaned up bind and unbind functions call it to create the preamble 
and then finish with specific data items for bind/unbinding.

In essence, this patch logs connecting and unconnecting to the audit netlink 
multicast socket. This is needed so that during investigations a security 
officer can tell who or what had access to the audit trail. This helps to meet 
the FAU_SAR.2 SFR for Common Criteria.

Sample output:

type=UNKNOWN[1329] msg=audit(1437683193.897:725): pid=10068 uid=0 auid=4325 
tty=pts0 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 
comm="test" exe="/home/sgrubb/test/multicast/test" nlnk-grp=1 op=connect res=1
type=UNKNOWN[1329] msg=audit(1437683308.055:741): pid=10068 uid=0 auid=4325 
tty=pts0 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 
comm="test" exe=(null) nlnk-grp=1 op=disconnect res=1

Signed-off-by: Steve Grubb <sgrubb@redhat.com>

---

             reply	other threads:[~2015-07-23 20:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-23 20:45 Steve Grubb [this message]
2015-07-24 22:42 ` [PATCH 0/2] audit: log binding and unbinding to netlink multicast socket Paul Moore
2016-11-30 19:23 Steve Grubb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470011.Rp6MUNe0GI@x2 \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.