<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">4javier</b> <span dir="ltr"><<a href="mailto:4javiereg4@gmail.com">4javiereg4@gmail.com</a>></span><br>Date: 2011/6/2<br>
Subject: Re: Possible regression<br>To: Steve Grubb <<a href="mailto:sgrubb@redhat.com">sgrubb@redhat.com</a>><br><br><br>you're right...sorry for my fault...<br>I didn't use the -a switch. I read the man, but I cannot understand how this settings is able to fix the problem with O_CREAT.<br>
Could you explain that to me, please?<div><div></div><div class="h5"><br><br>
<div class="gmail_quote">2011/6/2 Steve Grubb <span dir="ltr"><<a href="mailto:sgrubb@redhat.com" target="_blank">sgrubb@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Thursday, June 02, 2011 08:48:30 AM 4javier wrote:<br>
> I'm noticing exactly the same problem mentioned into this old message<br>
> <a href="http://osdir.com/ml/linux.redhat.security.audit/2006-07/msg00036.html" target="_blank">http://osdir.com/ml/linux.redhat.security.audit/2006-07/msg00036.html</a><br>
> Workaround consisting into watching the whole directory containing the file<br>
> works too. I've found that into 2006 a patch was submitted to solve the<br>
> issue<br>
> <a href="http://www.mail-archive.com/linux-audit@redhat.com/msg00476.html" target="_blank">http://www.mail-archive.com/linux-audit@redhat.com/msg00476.html</a><br>
><br>
> Is this a recent regression, or is there something I don't know?<br>
<br>
</div>I just ran the test from that email and got the following:<br>
<br>
[root@localhost ~]# touch /tmp/test<br>
[root@localhost ~]# auditctl -a always,exit -F path=/tmp/test -F perm=rwa -k watch<br>
[root@localhost ~]#  echo "" > /tmp/test<br>
[root@localhost ~]# cat /tmp/test<br>
<br>
[root@localhost ~]# ausearch --start recent --key watch -i<br>
----<br>
type=CONFIG_CHANGE msg=audit(06/02/2011 09:15:49.790:124) : auid=sgrubb ses=2<br>
subj=unconfined_u:unconfined_r:auditctl_t:s0-s0:c0.c1023 op="add rule" key=watch<br>
list=exit res=1<br>
----<br>
type=PATH msg=audit(06/02/2011 09:15:56.970:125) : item=0 name=/tmp/test inode=164740<br>
dev=fd:01 mode=file,644 ouid=root ogid=root rdev=00:00<br>
obj=unconfined_u:object_r:user_tmp_t:s0<br>
type=CWD msg=audit(06/02/2011 09:15:56.970:125) :  cwd=/root<br>
type=SYSCALL msg=audit(06/02/2011 09:15:56.970:125) : arch=x86_64 syscall=open<br>
success=yes exit=3 a0=28cadd0 a1=241 a2=1b6 a3=0 items=1 ppid=1634 pid=1640<br>
auid=sgrubb uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root<br>
fsgid=root tty=pts1 ses=2 comm=bash exe=/bin/bash<br>
subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=watch<br>
----<br>
type=PATH msg=audit(06/02/2011 09:16:08.850:126) : item=0 name=/tmp/test inode=164740<br>
dev=fd:01 mode=file,644 ouid=root ogid=root rdev=00:00<br>
obj=unconfined_u:object_r:user_tmp_t:s0<br>
type=CWD msg=audit(06/02/2011 09:16:08.850:126) :  cwd=/root<br>
type=SYSCALL msg=audit(06/02/2011 09:16:08.850:126) : arch=x86_64 syscall=open<br>
success=yes exit=3 a0=7fffd7a8f943 a1=0 a2=0 a3=32d80819d0 items=1 ppid=1640 pid=1659<br>
auid=sgrubb uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root<br>
fsgid=root tty=pts1 ses=2 comm=cat exe=/bin/cat<br>
subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=watch<br>
[root@localhost ~]# uname -r<br>
2.6.38.6-26.rc1.fc15.x86_64<br>
<br>
We have 2 events. Are you getting this? Is something missing?<br>
<font color="#888888"><br>
-Steve<br>
</font></blockquote></div><br>
</div></div></div><br>