All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Booth <mbooth@redhat.com>
To: Valdis.Kletnieks@vt.edu
Cc: linux-audit <linux-audit@redhat.com>
Subject: Re: Absolute path names in PATH records
Date: Mon, 02 Jul 2007 21:40:39 +0100	[thread overview]
Message-ID: <1183408839.4534.17.camel@localhost.localdomain> (raw)
In-Reply-To: <25655.1183408314@turing-police.cc.vt.edu>


[-- Attachment #1.1: Type: text/plain, Size: 1266 bytes --]

On Mon, 2007-07-02 at 16:31 -0400, Valdis.Kletnieks@vt.edu wrote:
> Probably quite a bit, especially if they traverse symlinks and the like.
> Additionally, you'd need to track *current* state of $CWD, as the absolute
> path will change each time a chdir() happens, or if somebody does something
> like 'mv . ../../foo'.  Particularly evil to track:
> 
> cd foo/bar/baz
> ./myprog &
> cd ../
> mv baz ..
> 
> Where's myprog's ../../bin pointing now?  And how would your post processor
> know that happened?

I don't think tracking CWD is an issue as it's already right there in
the same audit event as the PATH record. The question is one of
combining data that's already present in a manner which is easier to
process. E.g.:

type=CWD msg=audit(1183402887.758:2083):  cwd="/root"
type=PATH msg=audit(1183402887.758:2083): item=0 name="/etc/ld.so.cache"
inode=2362196 dev=fd:00 mode=0100644 ouid=0 ogid=0 
rdev=00:00 obj=system_u:object_r:ld_so_cache_t:s0

In this case, /etc/ld.so.cache is already absolute, but there's no
requirement for it to be.

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 --]



  reply	other threads:[~2007-07-02 20:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-02 19:44 Absolute path names in PATH records Matthew Booth
2007-07-02 20:31 ` Valdis.Kletnieks
2007-07-02 20:40   ` Matthew Booth [this message]
2007-07-02 20:43 ` John Dennis
2007-07-02 21:02   ` Matthew Booth
2007-07-02 21:22     ` John Dennis
2007-07-03 21:51   ` Steve Grubb
2007-07-03 21:44 ` 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=1183408839.4534.17.camel@localhost.localdomain \
    --to=mbooth@redhat.com \
    --cc=Valdis.Kletnieks@vt.edu \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.