From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: auditctl: how do I remove a watch? Date: Mon, 8 Nov 2010 16:20:21 -0500 Message-ID: <201011081620.22180.sgrubb@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Monday, November 08, 2010 12:27:47 pm Michael Convey wrote: > # auditctl -l > LIST_RULES: exit,always watch=/etc/hosts perm=rwa key=hosts-file > LIST_RULES: exit,always watch=/etc/resolv.conf perm=wa key=resolv > # auditctl -W /etc/hosts > Error sending delete rule data request (No such file or directory) > > What am I doing wrong? You have to match each field in the rule: [root ~]# auditctl -w /etc/hosts -p wa -k hosts-file [root ~]# auditctl -l LIST_RULES: exit,always watch=/etc/hosts perm=wa key=hosts-file [root ~]# auditctl -W /etc/hosts -p wa -k hosts-file [root ~]# auditctl -l No rules -Steve