All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Paris <eparis@redhat.com>
To: aviro@redhat.com
Cc: linux-audit@redhat.com
Subject: Re: OBJ_PID records
Date: Thu, 27 Sep 2007 14:40:45 -0400	[thread overview]
Message-ID: <1190918445.3591.29.camel@localhost.localdomain> (raw)
In-Reply-To: <200709211506.56322.sgrubb@redhat.com>

Started playing with this today, with no audit rules i was unable to
trigger the OBJ_PID issue.  With a single syscall audit rule 

-a entry,always -S adjtimex -S settimeofday -k time-change

i was unable to trigger the problem (might have just not left it long
enough, going back and trying again).  With a single file watch I was
able to trigger the problem.

[root@dhcp59-192 audit]# auditctl -l
LIST_RULES: exit,always watch=/etc/localtime perm=wa key=time-change
[root@dhcp59-192 audit]# for i in `seq 1 500`; do load_policy; done &
[1] 17639
[root@dhcp59-192 audit]# for i in `seq 1 50`; do sleep 5; ausearch -m OBJ_PID; done &
[2] 17644
[root@dhcp59-192 audit]# <no matches>
<no matches>
<no matches>
<no matches>
<no matches>
<no matches>
<no matches>
<no matches>
----
time->Fri Sep 28 06:02:50 2007
type=OBJ_PID msg=audit(1190973770.581:4409): opid=1956  obj=system_u:system_r:syslogd_t:s0
type=SYSCALL msg=audit(1190973770.581:4409): arch=c000003e syscall=1 success=yes exit=3893128 a0=4 a1=2ae984eee000 a2=3b6788 a3=0 items=0 ppid=17639 pid=17686 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 comm="load_policy" exe="/usr/sbin/load_policy" subj=root:system_r:unconfined_t:s0-s0:c0.c1023 key=(null)
type=MAC_POLICY_LOAD msg=audit(1190973770.581:4409): policy loaded auid=4294967295

Interestingly on this machine the opid has ALWAYS been 1956 with
obj=syslogd_t.  I don't however think there is anything special about
syslog though as that wasn't the obj in the messages sgrubb was getting,
although i do wonder if it was the same opid every time.....

-Eric


On Fri, 2007-09-21 at 15:06 -0400, Steve Grubb wrote:
> Hi,
> 
> I was noticing that I'm seeing OBJ_PID records sometimes when there is 
> MAC_POLICY_LOAD event. I didn't think these two would go together. I'm seeing 
> this:
> 
> type=OBJ_PID msg=audit(09/18/2007 06:26:21.236:216) : opid=3211  
> obj=user_u:system_r:unconfined_t:s0 
> type=SYSCALL msg=audit(09/18/2007 06:26:21.236:216) : arch=x86_64 
> syscall=write success=yes exit=1592854 a0=4 a1=2aaaaaae2000 a2=184e16 a3=0 
> items=0 ppid=3333 pid=3334 auid=sgrubb uid=root gid=root euid=root suid=root 
> fsuid=root egid=root sgid=root fsgid=root tty=pts0 comm=load_policy 
> exe=/usr/sbin/load_policy subj=user_u:system_r:load_policy_t:s0 key=(null) 
> type=MAC_POLICY_LOAD msg=audit(09/18/2007 06:26:21.236:216) : policy loaded 
> auid=sgrubb 
> 
> Shouldn't these only come out when kill (or its friends) is in effect? The 
> above syscall was a write. I don't think the current syscall is being taken 
> into account in audit_match_signal.
> 
> -Steve
> 
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit

  parent reply	other threads:[~2007-09-27 18:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-21 19:06 OBJ_PID records Steve Grubb
2007-09-21 19:21 ` Linda Knippers
2007-09-21 19:29   ` Steve Grubb
2007-09-27 18:40 ` Eric Paris [this message]
2007-09-27 18:49   ` Steve Grubb
2007-09-28  3:21     ` Alexander Viro
2007-09-28 13:31       ` Steve Grubb
2007-09-28 13:39         ` Steve Grubb
2007-10-01 18:52           ` Alexander Viro
2007-10-01 20:04             ` Eric Paris
2007-10-02 20:20             ` Steve Grubb
2007-09-28  3:25   ` Alexander Viro

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=1190918445.3591.29.camel@localhost.localdomain \
    --to=eparis@redhat.com \
    --cc=aviro@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.