From: Linda Knippers <linda.knippers@hp.com>
To: Betty Man <man.bty@gmail.com>
Cc: linux-audit@redhat.com
Subject: Re: capture mount event in /var/log/audit/audit.log
Date: Sat, 07 Jul 2012 18:18:23 -0400 [thread overview]
Message-ID: <4FF8B5AF.9080007@hp.com> (raw)
In-Reply-To: <CAAiGyywu+X=L8kYn9TbJ637KrGyp6vAWdzpMKKgCptX18Jm-+A@mail.gmail.com>
Betty Man wrote:
> Hi Everyone,
>
> in RHEL 5.5 kernel 2.6.18-194.el5 audit-1.7.17-3.el5
>
> Have the following in the /etc/audit/audit.rules
> ## non-privilege users using mount command.
> -a exit,always -F arch=b32 -S mount -F auid>=500 -F auid!=4294967295 -k export
> -a exit,always -F arch=b64 -S mount -F auid>=500 -F auid!=4294967295 -k export
This audits the mount system call, rather than the mount command.
>
> from a general user account
>
> $ mount /dev/hdc /dev/cdrom
> mount: only root can do that
>
> but /var/log/audit/audit.log does not capture this event
>
> Any input is much appreciated!
My guess is that the mount command is doing its own check and is
failing before it attempts the mount system call. If you run
$ strace mount /dev/hdc /dev/cdrom
you'll see the system calls that are executed.
I suspect there is no mount system call in the output.
-- ljk
>
> Thanks in advance
>
> Betty
>
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit
prev parent reply other threads:[~2012-07-07 22:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-07 5:53 capture mount event in /var/log/audit/audit.log Betty Man
2012-07-07 22:18 ` Linda Knippers [this message]
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=4FF8B5AF.9080007@hp.com \
--to=linda.knippers@hp.com \
--cc=linux-audit@redhat.com \
--cc=man.bty@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox