public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: 杨海 <hai.yang@magic-shield.com>
Cc: linux-audit <linux-audit@redhat.com>
Subject: Re: How to filter PROCTITLE events
Date: Thu, 25 Jul 2019 10:51:22 -0400	[thread overview]
Message-ID: <1899046.JkZJ7mvpU2@x2> (raw)
In-Reply-To: <tencent_51B48DB510141AD94C0292D1@qq.com>

On Thursday, July 25, 2019 1:44:07 AM EDT 杨海 wrote:
> Thanks Steve. It works :-)
> Meanwhile, for read/write system call, if they belongs to same pid and same
> fd, we are trying to suppress them into one msg. I guess it would not be
> able to filter using auditctl, is that right?

Technically you could suppress them. In practice, it's not feasible. You 
would need to have application specific rules to suppress. The more rules you 
have the more performance you lose.

But I would start by questioning whether you really need to monitor reads and 
writes? If a file is opened with O_WRONLY or O_RDWR, can it just be assumed 
that the file was written to?

-Steve



--
Linux-audit mailing list
Linux-audit@redhat.com
https://www.redhat.com/mailman/listinfo/linux-audit

  reply	other threads:[~2019-07-25 14:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-24  9:27 How to filter PROCTITLE events 杨海
2019-07-24 12:14 ` Steve Grubb
2019-07-25  5:44   ` 杨海
2019-07-25 14:51     ` Steve Grubb [this message]
2019-07-30 12:18       ` 杨海
2019-07-30 12:29         ` 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=1899046.JkZJ7mvpU2@x2 \
    --to=sgrubb@redhat.com \
    --cc=hai.yang@magic-shield.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