From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: audit@vger.kernel.org, Rinat Gadelshin <rgadelsh@gmail.com>
Subject: Re: Auditd doesn't receive syscalls after installation for the current shell.
Date: Wed, 24 May 2023 10:45:04 -0400 [thread overview]
Message-ID: <2151809.irdbgypaU6@x2> (raw)
In-Reply-To: <b5e87a11-7605-6745-516a-8004569bbe5d@gmail.com>
On Wednesday, May 24, 2023 7:37:27 AM EDT Rinat Gadelshin wrote:
> Hello there.
>
> It seems that the kernel doesn't send messages for syscalls of the shell
> process from which auditd is installed.
>
> Reproducing steps (performed on Ubuntu 22.04 x86_64 on virtual box by
> `root`):
>
> step #1: $ apt install auditd
> step #2: $ auditctl -a always,exit -F arch=b64 -S openat,renameat2,unlinkat
> step #3: $ echo t>delme;echo t2>>delme;cat delme;mv delme d;mv d
> delme;rm delme
> step #4: $ service auditd stop
> step #5: $ ausearch -f delme
>
> There are syscalls from /usr/bin/cat, /usr/bin/mv, /usr/bin/rm but there
> are no any syscalls (openat expected)
> for /usr/bin/bash (current shell process) for the file.
>
> If step #3 is performed from another tty, then openat syscalls
> (CREATE for the first echo and NORMAL for the second one)
> is logged for the /usr/bin/bash process.
>
> `uname -a` returns: Linux grin-vb-ubuntu-22-0-4 5.19.0-41-generic
> #42~22.04.01-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2 x86_64
> x86_64 x86_64 GNU/Linux
>
> Should I open an issue for the case at
> https://github.com/linux-audit/audit-kernel ?
Are you booting with audit=1 ? If not, the install process and any before it
are not auditable. You will only get events for processes started after audit
enabled = 1.
-Steve
WARNING: multiple messages have this Message-ID (diff)
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: audit@vger.kernel.org, Rinat Gadelshin <rgadelsh@gmail.com>
Subject: Re: Auditd doesn't receive syscalls after installation for the current shell.
Date: Wed, 24 May 2023 10:45:04 -0400 [thread overview]
Message-ID: <2151809.irdbgypaU6@x2> (raw)
In-Reply-To: <b5e87a11-7605-6745-516a-8004569bbe5d@gmail.com>
On Wednesday, May 24, 2023 7:37:27 AM EDT Rinat Gadelshin wrote:
> Hello there.
>
> It seems that the kernel doesn't send messages for syscalls of the shell
> process from which auditd is installed.
>
> Reproducing steps (performed on Ubuntu 22.04 x86_64 on virtual box by
> `root`):
>
> step #1: $ apt install auditd
> step #2: $ auditctl -a always,exit -F arch=b64 -S openat,renameat2,unlinkat
> step #3: $ echo t>delme;echo t2>>delme;cat delme;mv delme d;mv d
> delme;rm delme
> step #4: $ service auditd stop
> step #5: $ ausearch -f delme
>
> There are syscalls from /usr/bin/cat, /usr/bin/mv, /usr/bin/rm but there
> are no any syscalls (openat expected)
> for /usr/bin/bash (current shell process) for the file.
>
> If step #3 is performed from another tty, then openat syscalls
> (CREATE for the first echo and NORMAL for the second one)
> is logged for the /usr/bin/bash process.
>
> `uname -a` returns: Linux grin-vb-ubuntu-22-0-4 5.19.0-41-generic
> #42~22.04.01-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2 x86_64
> x86_64 x86_64 GNU/Linux
>
> Should I open an issue for the case at
> https://github.com/linux-audit/audit-kernel ?
Are you booting with audit=1 ? If not, the install process and any before it
are not auditable. You will only get events for processes started after audit
enabled = 1.
-Steve
--
Linux-audit mailing list
Linux-audit@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-audit
next prev parent reply other threads:[~2023-05-24 14:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-24 11:37 Auditd doesn't receive syscalls after installation for the current shell Rinat Gadelshin
2023-05-24 11:37 ` Rinat Gadelshin
2023-05-24 14:45 ` Steve Grubb [this message]
2023-05-24 14:45 ` Steve Grubb
2023-05-24 14:53 ` Paul Moore
2023-05-24 14:53 ` Paul Moore
2023-05-24 19:12 ` Rinat Gadelshin
2023-05-24 19:12 ` Rinat Gadelshin
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=2151809.irdbgypaU6@x2 \
--to=sgrubb@redhat.com \
--cc=audit@vger.kernel.org \
--cc=linux-audit@redhat.com \
--cc=rgadelsh@gmail.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.