From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: "Camilo Y. Campo" <camilo@br.ibm.com>
Subject: Re: audit in /selinux directory
Date: Fri, 9 Mar 2007 15:23:47 -0500 [thread overview]
Message-ID: <200703091523.48070.sgrubb@redhat.com> (raw)
In-Reply-To: <1173468692.10746.11.camel@cyc>
On Friday 09 March 2007 14:31, Camilo Y. Campo wrote:
> The cat command failed and audit is saying "success". A bit strange for
> me. Could anybody clarify this point for me, please?
It works correctly for me:
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
open("/selinux/disable", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
write(2, "cat: ", 5cat: ) = 5
type=PATH msg=audit(03/09/2007 15:21:10.652:947) : item=0
name=/selinux/disable inode=13 dev=00:0e mode=file,200 ouid=root ogid=root
rdev=00:00 obj=system_u:object_r:security_t:s0
type=CWD msg=audit(03/09/2007 15:21:10.652:947) : cwd=/home/sgrubb
type=SYSCALL msg=audit(03/09/2007 15:21:10.652:947) : arch=i386 syscall=open
success=no exit=-13(Permission denied) a0=bfca4954 a1=8000 a2=0 a3=8000
items=1 ppid=4740 pid=4741 auid=sgrubb uid=sgrubb gid=sgrubb euid=sgrubb
suid=sgrubb fsuid=sgrubb egid=sgrubb sgid=sgrubb fsgid=sgrubb tty=pts0
comm=cat exe=/bin/cat subj=user_u:system_r:unconfined_t:s0 key=(null)
Try running with strace so you can see the open syscall.
-Steve
next prev parent reply other threads:[~2007-03-09 20:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-09 19:31 audit in /selinux directory Camilo Y. Campo
2007-03-09 20:23 ` Steve Grubb [this message]
2007-03-09 21:13 ` Stephen Smalley
2007-03-09 21:17 ` Stephen Smalley
2007-03-09 21:25 ` Stephen Smalley
2007-03-14 4:10 ` Camilo Y. Campo
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=200703091523.48070.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=camilo@br.ibm.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