From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: Converting relative path to absolute path
Date: Fri, 06 Dec 2013 12:33:39 -0500 [thread overview]
Message-ID: <9697051.UYjdAXRdsh@x2> (raw)
In-Reply-To: <CALnj_=6PgsFEYh0qhxiwHgmKNjR6S19rWypW-yhgMsGQJO9gpA@mail.gmail.com>
On Friday, December 06, 2013 08:42:44 AM Peter Moody wrote:
> > If I access a file with relative path, the PATH audit message would be
> > a relative path as well.
> >
> > I wonder if I can change this behavior without modifying the kernel?
>
> IIUC, there should be a CWD message to go along with the PATH message.
> You should be able to use that to find the absolute path
That is correct. What I do is take the cwd field and concatenate path and then
run it through realpath(3) to finalize it.
-Steve
prev parent reply other threads:[~2013-12-06 17:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-06 3:35 Converting relative path to absolute path Aaron Lewis
2013-12-06 16:42 ` Peter Moody
2013-12-06 17:33 ` 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=9697051.UYjdAXRdsh@x2 \
--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