From: Matthew Booth <mbooth@redhat.com>
To: linux-audit@redhat.com
Subject: RE: stime(2) auditing on x86_64
Date: Sun, 28 Oct 2007 22:46:36 +0000 [thread overview]
Message-ID: <1193611596.6385.6.camel@localhost.localdomain> (raw)
In-Reply-To: <C482FF98AE985A47B8C982FD429C9E3401370F5D@daytonmsg2k3.AERO.BALL.COM>
[-- Attachment #1.1: Type: text/plain, Size: 1744 bytes --]
On Sun, 2007-10-28 at 17:51 -0400, Todd, Charles wrote:
> > -----Original Message-----
> > From: Steve Grubb
> > Sent: Saturday, October 27, 2007 10:55 AM
> > Subject: Re: stime(2) auditing on x86_64
> >
> > 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.
>
> Okay, I understand the bi-arch thing except one thing: does that mean
> the 32-bit compatability layer is ultimately calling the 64-bit version?
> If I audit settimeofday(), will it grab both the 64-bit version as well
> as the brokered 32-bit stime() call? My gut tells me yes, but I wanted
> to ask just to be sure.
No, it will not do this. In fact, it'll do something quite bizarre
instead.
Assuming you didn't explicitly specify an architecture, settimeofday()
will be translated into a syscall number for the default architecture
for x86_64: 164. This will cause an audit record to be generated for any
system call with number 164, namely 64 bit settimeofday() calls, or 32
bit setresuid() calls. This is unlikely to be what you want.
In short, on x86_64 you need to filter on architecture for every rule,
and you need to specify them all twice.
Matt
--
Matthew Booth, RHCA, RHCSS
Red Hat, Global Professional Services
M: +44 (0)7977 267231
GPG ID: D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2007-10-28 22:46 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
2007-10-28 21:51 ` Todd, Charles
2007-10-28 22:46 ` Matthew Booth [this message]
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=1193611596.6385.6.camel@localhost.localdomain \
--to=mbooth@redhat.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