* Error deleting rule during shutdown with -e 2
@ 2011-10-12 15:12 Daniel Neuberger
2011-10-12 15:27 ` Steve Grubb
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Neuberger @ 2011-10-12 15:12 UTC (permalink / raw)
To: linux-audit
All,
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?
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.
Any other ideas?
Thanks.
- Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error deleting rule during shutdown with -e 2
2011-10-12 15:12 Error deleting rule during shutdown with -e 2 Daniel Neuberger
@ 2011-10-12 15:27 ` Steve Grubb
2011-10-12 16:01 ` Daniel Neuberger
0 siblings, 1 reply; 3+ messages in thread
From: Steve Grubb @ 2011-10-12 15:27 UTC (permalink / raw)
To: linux-audit
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error deleting rule during shutdown with -e 2
2011-10-12 15:27 ` Steve Grubb
@ 2011-10-12 16:01 ` Daniel Neuberger
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Neuberger @ 2011-10-12 16:01 UTC (permalink / raw)
To: linux-audit
On 10/12/2011 11:27 AM, Steve Grubb wrote:
> You would normally modify /etc/sysconfig/auditd to adjust this setting. This is
> considered a config file that rpm will not overwrite.
Awesome! That works. Thanks!
- Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-12 16:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-12 15:12 Error deleting rule during shutdown with -e 2 Daniel Neuberger
2011-10-12 15:27 ` Steve Grubb
2011-10-12 16:01 ` Daniel Neuberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox