public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: Assorted questions
Date: Fri, 10 Aug 2007 10:35:23 -0400	[thread overview]
Message-ID: <200708101035.23785.sgrubb@redhat.com> (raw)
In-Reply-To: <1186670046.6810.9.camel@localhost.localdomain>

On Thursday 09 August 2007 10:34:06 Matthew Booth wrote:
> Questions relate to RHEL4 (unless they don't).
>
> How can I programmatically translate an architecture into human, eg
> 40000003 => 'i686'?

>From ausearch source code, ausearch-report.c:

static void print_arch(const char *val)
{
        unsigned int ival;
        const char *ptr;

        errno = 0;
        ival = strtoul(val, NULL, 16);
        if (errno) {
                printf("conversion error(%s) ", val);
                return;
        }
        machine = audit_elf_to_machine(ival);
        if (machine < 0) {
                printf("unknown elf type(%s) ", val);
                return;
        }
        ptr = audit_machine_to_name(machine);
        printf("%s ", ptr);
}


> Is there a way of doing a syscall name lookup without having root?

You do not have to have root to call either of these functions:

extern int audit_name_to_syscall(const char *sc, int machine);
extern const char *audit_syscall_to_name(int sc, int machine);


> In RHEL5, what's the equivalent of 'auditctl -t'?

auditctl -t does not exist anymore.

-Steve

      parent reply	other threads:[~2007-08-10 14:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-09 14:34 Assorted questions Matthew Booth
2007-08-09 21:07 ` Debora Velarde
2007-08-10 14:35 ` Steve Grubb [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=200708101035.23785.sgrubb@redhat.com \
    --to=sgrubb@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