From: Steve Grubb <sgrubb@redhat.com>
To: Rakesh <raksac@yahoo.com>
Cc: "linux-audit@redhat.com" <linux-audit@redhat.com>
Subject: Re: audit watch rules and docker containers
Date: Mon, 5 Mar 2018 23:53:27 +0100 [thread overview]
Message-ID: <20180305235327.1843aef2@ivy-bridge> (raw)
In-Reply-To: <1356488798.9756685.1520219204924@mail.yahoo.com>
On Mon, 5 Mar 2018 03:06:44 +0000 (UTC)
Rakesh <raksac@yahoo.com> wrote:
> Hi Steve,
> Thanks for taking the time to look at it. I have been following the
> conversation on adding container support to audit, however I am not
> looking for container id in the event. I did some more tests and find
> it works as expected for syscalls - -a always,exit -F arch=b64 -S
> connect -F exit!=-ENOENT -F key=connect
>
> and the audit event in log is -
> arch=c000003e syscall=42 success=yes exit=0 a0=1 a1=5562d1bb40f8
> a2=16 a3=7ffd9db76460 items=1 ppid=2 pid=60470 auid=4294967295 uid=0
> gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none)
> ses=4294967295 comm="systemd-cgroups"
> exe="/lib/systemd/systemd-cgroups-agent" key="connect"
>
> Bit it's the watch events which are not working.
Watches are a convenience that changes a human path into a device and
inode. That is really what is watched. I think that if you have a watch
on /etc/passwd, and a container has its own /etc/passwd, then you will
have a different inode if not device.
Hopefully this is being taken into account with the redesign or at
least the ability to express that you want them all somehow.
-Steve
next prev parent reply other threads:[~2018-03-05 22:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2039210969.8919376.1520042001277.ref@mail.yahoo.com>
[not found] ` <2039210969.8919376.1520042001277@mail.yahoo.com>
[not found] ` <1702143807.8978259.1520067124126@mail.yahoo.com>
2018-03-04 13:00 ` audit watch rules and docker containers Steve Grubb
[not found] ` <1356488798.9756685.1520219204924@mail.yahoo.com>
2018-03-05 22:53 ` Steve Grubb [this message]
2018-03-05 7:09 ` Richard Guy Briggs
[not found] ` <1781337126.10358091.1520285973596@mail.yahoo.com>
2018-03-07 8:57 ` Richard Guy Briggs
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=20180305235327.1843aef2@ivy-bridge \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
--cc=raksac@yahoo.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