Linux-audit Archive on lore.kernel.org
 help / color / mirror / Atom feed
* watching files in selinuxfs
@ 2006-09-27 21:26 Debora Velarde
  2006-09-27 21:46 ` Linda Knippers
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Debora Velarde @ 2006-09-27 21:26 UTC (permalink / raw)
  To: linux-audit

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


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-09-28 20:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27 21:26 watching files in selinuxfs Debora Velarde
2006-09-27 21:46 ` Linda Knippers
2006-09-27 22:11   ` Klaus Weidner
2006-09-27 22:18     ` Linda Knippers
2006-09-28  1:59       ` Valdis.Kletnieks
2006-09-28 15:33         ` Casey Schaufler
2006-09-28 13:34 ` Stephen Smalley
2006-09-28 18:39   ` Debora Velarde
2006-09-28 20:33 ` Steve Grubb
2006-09-28 20:42   ` Stephen Smalley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox