From: Stephen Quinney <squinney@inf.ed.ac.uk>
To: Steve Grubb <sgrubb@redhat.com>
Cc: linux-audit@redhat.com
Subject: Re: audit_ftype_to_name?
Date: Tue, 22 Oct 2013 21:58:05 +0100 [thread overview]
Message-ID: <20131022205805.GA2143@hogwood.inf.ed.ac.uk> (raw)
In-Reply-To: <22306526.QMWnzUdp8j@x2>
On Tue, Oct 22, 2013 at 01:59:32PM -0400, Steve Grubb wrote:
> On Friday, October 18, 2013 12:47:23 PM Stephen Quinney wrote:
>
> > I can't see any definition of the ftype_i2s function which is called
> > by audit_ftype_to_name so maybe this hasn't been implemented yet?
>
> Yes, it has been. However, its over in lib/libaudit.
>
I suspect I'm a little confused here, is libaudit provided separately
from the main audit code?
% tar zxf Downloads/audit-2.3.2.tar.gz
% grep -ri ftype_i2s audit-2.3.2/
audit-2.3.2/lib/lookup_table.c: return ftype_i2s(ftype);
So, I don't see the function definition, just the call.
> It seems to work fin on my system:
>
> #!/usr/bin/env python
> import sys
> import audit
>
> name = audit.audit_ftype_to_name(0140000)
> print '%s\n' % (name,),
> sys.exit(0)
>
So, I was trying to use it to translate the value returned by the
get_field_type function in auparse, should that work?
Stephen
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
next prev parent reply other threads:[~2013-10-22 20:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-18 11:47 audit_ftype_to_name? Stephen Quinney
2013-10-22 17:59 ` audit_ftype_to_name? Steve Grubb
2013-10-22 18:59 ` 12/31/1969 David Flatley
2013-10-22 20:48 ` 12/31/1969 Alexander Viro
2013-10-22 20:58 ` Stephen Quinney [this message]
2013-10-22 21:26 ` audit_ftype_to_name? 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=20131022205805.GA2143@hogwood.inf.ed.ac.uk \
--to=squinney@inf.ed.ac.uk \
--cc=linux-audit@redhat.com \
--cc=sgrubb@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