All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: RHEL 5 audit events
Date: Tue, 21 Aug 2007 10:09:20 -0400	[thread overview]
Message-ID: <200708211009.21227.sgrubb@redhat.com> (raw)
In-Reply-To: <200708210952.04506.sgrubb@redhat.com>

On Tuesday 21 August 2007 09:52:03 Steve Grubb wrote:
> > 1. su - "non_existent_account". Using the nispom.rules provided by
> > audit 1.5.6-1. Using various ausearch parameters, am unable to find a
> > corresponding failure when attempting to "su" to a non-existent
> > account.

On second thought...you were asking about su. This app has not been patched 
for auditing...although I think it should be. In the meantime, you can put a 
watch on the app:

-w /bin/su -p x -k su-used

[sgrubb src]$ su - badacct
su: user badacct does not exist

[root ~]# ausearch --start recent -k su-used -i
----
type=PATH msg=audit(08/21/2007 10:06:49.166:382) : item=1 name=(null) 
inode=13107250 dev=08:08 mode=file,755 ouid=root ogid=root rdev=00:00 
obj=system_u:object_r:ld_so_t:s0 
type=PATH msg=audit(08/21/2007 10:06:49.166:382) : item=0 name=/bin/su 
inode=24641546 dev=08:08 mode=file,suid,755 ouid=root ogid=root rdev=00:00 
obj=system_u:object_r:su_exec_t:s0 
type=CWD msg=audit(08/21/2007 10:06:49.166:382) :  
cwd=/home/sgrubb/working/BUILD/coreutils-5.97/src 
type=EXECVE msg=audit(08/21/2007 10:06:49.166:382) : a0="su" a1="-" 
a2="badacct" 
type=SYSCALL msg=audit(08/21/2007 10:06:49.166:382) : arch=x86_64 
syscall=execve success=yes exit=0 a0=18172cd0 a1=18186460 a2=18192880 a3=8 
items=2 ppid=6092 pid=6443 auid=sgrubb uid=sgrubb gid=sgrubb euid=root 
suid=root fsuid=root egid=sgrubb sgid=sgrubb fsgid=sgrubb tty=pts1 comm=su 
exe=/bin/su subj=user_u:system_r:unconfined_t:s0 key="su-used"

Hope this helps....

-Steve

      reply	other threads:[~2007-08-21 14:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-18 17:02 (no subject) Henning, Arthur C. (CSL)
2007-08-18 17:04 ` RHEL 5 audit events Henning, Arthur C. (CSL)
2007-08-21 13:52   ` Steve Grubb
2007-08-21 14:09     ` 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=200708211009.21227.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.