From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: Richard Young <ryoung1@us.ibm.com>
Subject: Re: Excluding selected CRYPTO_KEY_USER events
Date: Sat, 09 Jan 2016 14:35:08 -0500 [thread overview]
Message-ID: <7375597.LqIF3JQDdF@x2> (raw)
In-Reply-To: <201601091626.u09GQVCl006045@d01av01.pok.ibm.com>
On Saturday, January 09, 2016 10:26:06 AM Richard Young wrote:
> I know I could exclude all msgtype CRYPTO_KEY_USER audit events, but would
> like to exclude just specific ones.
> I would like to exclude ones for a specific UID, hostname, or IP.
>
> There are many example of how to exclude specific files, directory events,
> or syscall events.
>
> Can somebody suggest a way to suppress specific CRYPTO_KEY_USER events by
> UID, hostname, or IP?
I opened a bz to ask for this capability a little over a month ago:
https://bugzilla.redhat.com/show_bug.cgi?id=1287745
Unfortunately, I don't think you can do anything until that lands.
This particular event comes from user space. So, the kernel cannot filter on IP
address. And specifically, the kernel can never really filter on IP address
because its typically not an argument to any but 2 or 3 syscalls.
There is a chance that you might be able to use the USER filter if the selinux
type is unique to whatever you wanted to remove.
-a never,user -F subj_type=httpd_t
-Steve
prev parent reply other threads:[~2016-01-09 19:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-09 16:26 Excluding selected CRYPTO_KEY_USER events Richard Young
2016-01-09 19:35 ` Steve Grubb [this message]
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=7375597.LqIF3JQDdF@x2 \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
--cc=ryoung1@us.ibm.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