From: Yuichi Nakamura <ynakam@hitachisoft.jp>
To: Steve Grubb <sgrubb@redhat.com>
Cc: linux-audit@redhat.com, SELinux@tycho.nsa.gov
Subject: Re: [RFC] Obtaining PATH entry without audit userland
Date: Fri, 11 Jan 2008 09:27:18 +0900 [thread overview]
Message-ID: <20080111092505.FCD4.YNAKAM@hitachisoft.jp> (raw)
In-Reply-To: <200801101040.19032.sgrubb@redhat.com>
On Thu, 10 Jan 2008 10:40:18 -0500
Steve Grubb wrote:
> On Thursday 10 January 2008 10:32:37 Alexander Viro wrote:
> > On Thu, Jan 10, 2008 at 10:19:50AM -0500, Steve Grubb wrote:
> > > I was under the impression that Al Viro has already sent a patch allowing
> > > for PATH in all AVC messages. Al?
> >
> > In the mainline for quite a while...
>
> That's what I thought.
>
> Yuichi, what kernel are you testing against that is having the problem? Is
> there a simple test case that shows the problem so we can check the kernel to
> make sure its working properly?
I am using 2.6.22.1 and 2.6.24.rc1, and enabling syscall audit.
One example of AVC message in 2.6.24.rc1 is below.
#Type is broken for testing, do not warry about that :)
audit(946684824.060:5): avc: denied { read } for pid=796 comm="httpd" name="index.html" dev=sda1 ino=61906
scontext=system_u:system_r:httpd_t tcontext=system_u:object_r:etc_shadow_t tclass=file
audit(946684824.060:5): arch=2a syscall=5 per=800000 success=yes exit=5 a0=48d490 a1=0 a2=1b6 a3=1b6 items=1
ppid=795 pid=796 auid=4294967295 uid=99 gid=99 euid=99 suid=99 fsuid=99 egid=99 sgid=99 fsgid=99 tty=(none) comm="httpd"
exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t key=(null)
File name appears as name="index.html".
By applying my patch or registering some audit rule,
following will appear.
audit(946684824.060:5): cwd="/"
audit(946684824.060:5): item=0 name="/var/www/htdocs/index.html" inode=61906 dev=08:01 mode=0100644
ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:etc_shadow_t
Here, fullpath "/var/www/htdocs/index.html" is reported.
Regards,
--
Yuichi Nakamura
Hitachi Software Engineering Co., Ltd.
Japan SELinux Users Group(JSELUG): http://www.selinux.gr.jp/
SELinux Policy Editor: http://seedit.sourceforge.net/
WARNING: multiple messages have this Message-ID (diff)
From: Yuichi Nakamura <ynakam@hitachisoft.jp>
To: Steve Grubb <sgrubb@redhat.com>
Cc: ynakam@hitachisoft.jp, Alexander Viro <aviro@redhat.com>,
linux-audit@redhat.com, SELinux@tycho.nsa.gov
Subject: Re: [RFC] Obtaining PATH entry without audit userland
Date: Fri, 11 Jan 2008 09:27:18 +0900 [thread overview]
Message-ID: <20080111092505.FCD4.YNAKAM@hitachisoft.jp> (raw)
In-Reply-To: <200801101040.19032.sgrubb@redhat.com>
On Thu, 10 Jan 2008 10:40:18 -0500
Steve Grubb wrote:
> On Thursday 10 January 2008 10:32:37 Alexander Viro wrote:
> > On Thu, Jan 10, 2008 at 10:19:50AM -0500, Steve Grubb wrote:
> > > I was under the impression that Al Viro has already sent a patch allowing
> > > for PATH in all AVC messages. Al?
> >
> > In the mainline for quite a while...
>
> That's what I thought.
>
> Yuichi, what kernel are you testing against that is having the problem? Is
> there a simple test case that shows the problem so we can check the kernel to
> make sure its working properly?
I am using 2.6.22.1 and 2.6.24.rc1, and enabling syscall audit.
One example of AVC message in 2.6.24.rc1 is below.
#Type is broken for testing, do not warry about that :)
audit(946684824.060:5): avc: denied { read } for pid=796 comm="httpd" name="index.html" dev=sda1 ino=61906
scontext=system_u:system_r:httpd_t tcontext=system_u:object_r:etc_shadow_t tclass=file
audit(946684824.060:5): arch=2a syscall=5 per=800000 success=yes exit=5 a0=48d490 a1=0 a2=1b6 a3=1b6 items=1
ppid=795 pid=796 auid=4294967295 uid=99 gid=99 euid=99 suid=99 fsuid=99 egid=99 sgid=99 fsgid=99 tty=(none) comm="httpd"
exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t key=(null)
File name appears as name="index.html".
By applying my patch or registering some audit rule,
following will appear.
audit(946684824.060:5): cwd="/"
audit(946684824.060:5): item=0 name="/var/www/htdocs/index.html" inode=61906 dev=08:01 mode=0100644
ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:etc_shadow_t
Here, fullpath "/var/www/htdocs/index.html" is reported.
Regards,
--
Yuichi Nakamura
Hitachi Software Engineering Co., Ltd.
Japan SELinux Users Group(JSELUG): http://www.selinux.gr.jp/
SELinux Policy Editor: http://seedit.sourceforge.net/
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2008-01-11 0:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-10 8:42 [RFC] Obtaining PATH entry without audit userland Yuichi Nakamura
2008-01-10 8:42 ` Yuichi Nakamura
2008-01-10 15:19 ` Steve Grubb
2008-01-10 15:19 ` Steve Grubb
2008-01-10 15:32 ` Alexander Viro
2008-01-10 15:40 ` Steve Grubb
2008-01-10 15:40 ` Steve Grubb
2008-01-10 16:42 ` Stephen Smalley
2008-01-10 16:42 ` Stephen Smalley
2008-01-11 0:27 ` Yuichi Nakamura [this message]
2008-01-11 0:27 ` Yuichi Nakamura
2008-01-11 0:32 ` Steve Grubb
2008-01-11 0:32 ` Steve Grubb
2008-01-11 1:11 ` Yuichi Nakamura
2008-01-11 1:11 ` Yuichi Nakamura
2008-01-11 13:40 ` Stephen Smalley
2008-01-11 13:40 ` Stephen Smalley
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=20080111092505.FCD4.YNAKAM@hitachisoft.jp \
--to=ynakam@hitachisoft.jp \
--cc=SELinux@tycho.nsa.gov \
--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 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.