From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linda Knippers Subject: Re: watching files in selinuxfs Date: Wed, 27 Sep 2006 17:46:52 -0400 Message-ID: <451AF14C.9080908@hp.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k8RLlqgT006924 for ; Wed, 27 Sep 2006 17:47:52 -0400 Received: from atlrel7.hp.com (atlrel7.hp.com [156.153.255.213]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k8RLlfOC022731 for ; Wed, 27 Sep 2006 17:47:41 -0400 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: Debora Velarde Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com Debora Velarde wrote: > When in enforcing mode, I am only able to audit files in selinuxfs by > inode, not by path. I am running as auditadm_r. > > /* Try adding audit rule with -F path */ > # auditctl -a exit,always -S open -F path=/selinux/enforce > Error sending add rule request (Permission denied) > > # auditctl -l > No rules > > /* Try adding audit rule with -w path syntax */ > # auditctl -w /selinux/enforce > Error sending add rule request (Permission denied) > > /* Try adding audit rule with -F inode */ > # ls -i /selinux/enforce > 4 /selinux/enforce > > # auditctl -a exit,always -S open -F inode=4 > # auditctl -l > LIST_RULES: exit,always inode=4 (0x4) syscall=open I wonder what this is actually doing. An inode number without a file system isn't very interesting. Should this rule even be accepted? > > Since it is possible to audit the files, this might only require a > documentation change. Perhaps adding a comment to the auditctl man page > would be sufficient? > > -debbie > > > -- > Linux-audit mailing list > Linux-audit@redhat.com > https://www.redhat.com/mailman/listinfo/linux-audit