All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: Error deleting rule during shutdown with -e 2
Date: Wed, 12 Oct 2011 11:27:26 -0400	[thread overview]
Message-ID: <201110121127.26467.sgrubb@redhat.com> (raw)
In-Reply-To: <j74apn$gi2$1@dough.gmane.org>

On Wednesday, October 12, 2011 11:12:55 AM Daniel Neuberger wrote:
> When stopping auditd during a system shutdown, I see the following error:
> 
> Error deleting rule (Operation not permitted)
> 
> My audit.rules file looks like:
> ------------------------
> -D
> [trimmed]
> -a always,exit -F arch=b32 -S open -S openat -F exit=-EPERM -k access4
> -w /etc/sudoers -p wa -k actions  -p wax
> [trimmed]
> -e 2
> ------------------------
> 
> The only ways I've found to fix this is to remove the -e 2 option, but
> we need our rules to be immutable?

Right. If its immutable, you cannot delete the rule. I suppose I could add some code 
here so that it succeed but outputs the reason why it cannot honor the request.


> Also based on looking at the auditd init script, setting
> AUDITD_CLEAN_STOP=no during shutdown would work, but I don't want to
> modify the script.

You would normally modify /etc/sysconfig/auditd  to adjust this setting. This is 
considered a config file that rpm will not overwrite.

-Steve

  reply	other threads:[~2011-10-12 15:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-12 15:12 Error deleting rule during shutdown with -e 2 Daniel Neuberger
2011-10-12 15:27 ` Steve Grubb [this message]
2011-10-12 16:01   ` Daniel Neuberger

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=201110121127.26467.sgrubb@redhat.com \
    --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.