public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: LC Bruzenak <lenny@magitekltd.com>
To: Linux Audit <linux-audit@redhat.com>
Subject: plugin auditing approach question
Date: Mon, 23 Jun 2008 12:27:25 -0500	[thread overview]
Message-ID: <1214242045.6564.25.camel@homeserver> (raw)

In our system we need to supply some specialized plugins to, for example
evolution, which will be doing things that we desire to audit. However,
we don't want to assign CAP_AUDIT_WRITE to evolution.

I have an approach on which I wanted to get some feedback.

I would create a library call and matching executable audit proxy. I'd
give CAP_AUDIT_WRITE to the proxy. Then, the library call would
fork/exec the audit proxy child, create a socket pair, and give each
side their half of the pair.

The sockets would persist until an explicit close (another library call,
so that it told the proxy client to shut down through the socket
interface) happened, so subsequent audits could use the interface.
Also the child proxy would exit on socket close, etc. I can include the
parent PID in the audit info. 

So if anyone has already done this or there is some reason for not
choosing this path I'd appreciate comments.

Thx,
Lenny Bruzenak.

-- 
LC (Lenny) Bruzenak
lenny@magitekltd.com

             reply	other threads:[~2008-06-23 17:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-23 17:27 LC Bruzenak [this message]
2008-06-23 17:36 ` plugin auditing approach question Steve Grubb
2008-06-23 17:53   ` LC Bruzenak

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=1214242045.6564.25.camel@homeserver \
    --to=lenny@magitekltd.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox