From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: Decoding arguments passed to system calls
Date: Wed, 4 Jul 2007 11:03:30 -0400 [thread overview]
Message-ID: <200707041103.31289.sgrubb@redhat.com> (raw)
In-Reply-To: <1183473485.12218.263.camel@moss-spartans.epoch.ncsc.mil>
On Tuesday 03 July 2007 10:38:05 am Stephen Smalley wrote:
> One caveat though - auditing of write() won't catch all possible ways of
> modifying the file data, e.g. one could mmap() the file with MAP_SHARED
> and then write to the memory, followed by msync or munmap.
Agreed. And another gotcha is programs that could pass a descriptor across
af_unix sockets where it is then mmap'ed. There is also sendfile which could
send the file away to be viewed by other people and there is splice() &
tee(2). Don't forget the *at() syscalls, too. IOW, I think the problem is
trickier than it might initially appear.
Based on your requirements, you might want to consider putting in place some
SE Linux policy to control the different ways that a file can be accessed to
keep apps honest. Then you don't need to worry about all the sneak paths that
could subvert the audit system.
-Steve
next prev parent reply other threads:[~2007-07-04 15:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-02 21:46 Decoding arguments passed to system calls Darryl Dixon - Winterhouse Consulting
2007-07-02 22:27 ` Matthew Booth
2007-07-02 22:48 ` Darryl Dixon - Winterhouse Consulting
2007-07-02 23:23 ` Matthew Booth
2007-07-03 11:57 ` Stephen Smalley
2007-07-03 14:38 ` Stephen Smalley
2007-07-04 15:03 ` Steve Grubb [this message]
2007-07-03 13:04 ` Wieprecht, Karen M.
2007-07-04 14:29 ` Steve Grubb
2007-07-04 14:23 ` 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=200707041103.31289.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 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.