From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: "Todd, Charles" <CTODD@ball.com>
Subject: Re: stime(2) auditing on x86_64
Date: Sat, 27 Oct 2007 10:55:27 -0400 [thread overview]
Message-ID: <200710271055.28054.sgrubb@redhat.com> (raw)
In-Reply-To: <C482FF98AE985A47B8C982FD429C9E3401370F5A@daytonmsg2k3.AERO.BALL.COM>
On Saturday 27 October 2007 12:29:39 am Todd, Charles wrote:
> I was trying to get my system to pass a System Readiness Review (SRR)
> from disa.mil and it would appear that stime(2) is not audited under
> x86_64, either in v1.0.15 or v1.2.1 of auditd.
That is because x86_64 does not have that syscall. It uses settimeofday for
the same functionality. But, it does exist in the 32 bit compatibility layer.
So, you would need to qualify that with b32 to tell it that it should be
confined to 32 bit processes.
[root ~]# auditctl -a always,exit -F arch=b32 -S stime
[root ~]# auditctl -l
LIST_RULES: exit,always arch=1073741827 (0x40000003) syscall=stime
I believe that arch is the only -F option that can be allowed before the -S
option and its to tell auditctl which syscall table to use for the syscall
lookup.
> Is this on purpose or is there something deeper? The full line of what
> DISA expected me to configure is
> -a exit,always -S stime -S acct -S reboot -S swapon
Be careful on bi-arch systems. There are several syscalls that change their
syscall number between 32 & 64 bit, so you may need 2 sets of rules, one
with -F arch=b32 and the other with b64. But there are differences between
arches so that some syscalls have another name on 64 as compared with 32 bit.
> A careful observer will note that the CAPP suggested configuration
> already captures adjtimex and settimeofday. I just want to pass my
> test, but is there overlap here that I should push back on?
Not really, I think DISA is telling you the intent and that needs to be
interpretted/extended to cover bi-arch systems. I should probably update the
man pages to clarify things regarding bi-arch systems. I think Matt Booth
pointed out something similar a week or two ago.
-Steve
next prev parent reply other threads:[~2007-10-27 14:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-27 4:29 stime(2) auditing on x86_64 Todd, Charles
2007-10-27 14:55 ` Steve Grubb [this message]
2007-10-28 21:51 ` Todd, Charles
2007-10-28 22:46 ` Matthew Booth
2007-10-29 13:11 ` Steve Grubb
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=200710271055.28054.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=CTODD@ball.com \
--cc=linux-audit@redhat.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