* Re: Rules mysteriously flushed
[not found] <CAJ7B0t_Zau0hvrnSJwW2vkhMTT0CAuZ3MnWGJN3gq6K69jd_1A@mail.gmail.com>
@ 2013-05-20 13:58 ` Steve Grubb
2013-05-20 14:38 ` John Barnes
0 siblings, 1 reply; 2+ messages in thread
From: Steve Grubb @ 2013-05-20 13:58 UTC (permalink / raw)
To: John Barnes; +Cc: linux-audit
On Monday, May 20, 2013 11:04:30 AM John Barnes wrote:
> I set up 4 simple audit rules using audictl:
>
> auditctl -w "/path/to/my/bin0" -p x
> auditctl -w "/path/to/my/bin1" -p x
>
> The rules were applied and show in auditctl -l. I tested them and
> they successfully log the execution of both binaries.
>
> However the rules were mysteriously flushed with only
> the following available in ausearch -m CONFIG_CHANGE:
>
> time->Sat May 18 00:03:19 2013
>
> type=CONFIG_CHANGE msg=audit(1368831799.081:466947): auid=4294967295
> ses=4294967295 op="remove rule" path="/path/to/my/bin0" key=(null) list=4
> res=1
>
> time->Sat May 18 00:03:19 2013
>
> type=CONFIG_CHANGE msg=audit(1368831799.081:466948): auid=4294967295
> ses=4294967295 op="remove rule" path="/path/to/my/bin1" key=(null) list=4
> res=1
>
> The uid doesn't match any known user so I presume these are initiated by
> the kernel.
Yes, these are -1, which is unset. This event is created by the kernel.
> The system wasn't under any pressure at the time (mem/load
> average fine), there was plenty of disk space available in all volumes, and
> the auditd was not restarted and the logs were not rotated.
>
> Is there anything that can cause the rules to be flushed in this way? It's
> a little concerning that they've just disappeared.
I think if your file is deleted, then it removes the associated rule.
-Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Rules mysteriously flushed
2013-05-20 13:58 ` Rules mysteriously flushed Steve Grubb
@ 2013-05-20 14:38 ` John Barnes
0 siblings, 0 replies; 2+ messages in thread
From: John Barnes @ 2013-05-20 14:38 UTC (permalink / raw)
To: Steve Grubb; +Cc: linux-audit
[-- Attachment #1.1: Type: text/plain, Size: 1733 bytes --]
Steve,
Thanks for the prompt reply.
For anyone else who may find this useful, the files were served over NFS
using automount. When the mounts are dropped, the rules get deleted.
Cheers
John
On Mon, May 20, 2013 at 2:58 PM, Steve Grubb <sgrubb@redhat.com> wrote:
> On Monday, May 20, 2013 11:04:30 AM John Barnes wrote:
> > I set up 4 simple audit rules using audictl:
> >
> > auditctl -w "/path/to/my/bin0" -p x
> > auditctl -w "/path/to/my/bin1" -p x
> >
> > The rules were applied and show in auditctl -l. I tested them and
> > they successfully log the execution of both binaries.
> >
> > However the rules were mysteriously flushed with only
> > the following available in ausearch -m CONFIG_CHANGE:
> >
> > time->Sat May 18 00:03:19 2013
> >
> > type=CONFIG_CHANGE msg=audit(1368831799.081:466947): auid=4294967295
> > ses=4294967295 op="remove rule" path="/path/to/my/bin0" key=(null) list=4
> > res=1
> >
> > time->Sat May 18 00:03:19 2013
> >
> > type=CONFIG_CHANGE msg=audit(1368831799.081:466948): auid=4294967295
> > ses=4294967295 op="remove rule" path="/path/to/my/bin1" key=(null) list=4
> > res=1
> >
> > The uid doesn't match any known user so I presume these are initiated by
> > the kernel.
>
> Yes, these are -1, which is unset. This event is created by the kernel.
>
>
> > The system wasn't under any pressure at the time (mem/load
> > average fine), there was plenty of disk space available in all volumes,
> and
> > the auditd was not restarted and the logs were not rotated.
> >
> > Is there anything that can cause the rules to be flushed in this way?
> It's
> > a little concerning that they've just disappeared.
>
> I think if your file is deleted, then it removes the associated rule.
>
> -Steve
>
[-- Attachment #1.2: Type: text/html, Size: 2591 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-20 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAJ7B0t_Zau0hvrnSJwW2vkhMTT0CAuZ3MnWGJN3gq6K69jd_1A@mail.gmail.com>
2013-05-20 13:58 ` Rules mysteriously flushed Steve Grubb
2013-05-20 14:38 ` John Barnes
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.