All of lore.kernel.org
 help / color / mirror / Atom feed
* Logging failed open() calls on /var/log/audit/audit.log
@ 2006-06-27 20:43 Robert Giles
  2006-06-27 21:15 ` Amy Griffis
  0 siblings, 1 reply; 12+ messages in thread
From: Robert Giles @ 2006-06-27 20:43 UTC (permalink / raw)
  To: linux-audit

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed, Size: 1399 bytes --]

Howdy folks - I'm running audit-1.2.2 with the latest audit-current git 
tree (lspp.b20)...

The filesystem auditing seems to be working fine for all files *except* 
the audit.log file.

For example, I do this:
auditctl -w /etc/shadow
auditctl -w /var/log/audit/audit.log

The audit daemon generates audit events for both successful and failed 
open() calls to /etc/shadow, but only records *successful* accesses to 
/var/log/audit/audit.log.

So if I attempt to access /etc/shadow as a regular user, a "success=no" 
audit event is generated to indicate read failure - but if a regular user 
attempts to read /var/log/audit/audit.log, nothing happens (no audit event 
whatsoever is created).

*Successful* reads of /var/log/audit/audit.log (ie: as super-user) do 
indeed generate the appropriate audit event in audit.log ("success=yes").

Is this the way the audit daemon is supposed to work?  (some kind of race 
condition if the audit daemon fully audits its own audit trail?)

(this question may seem unusual, but we're trying to audit "unsuccessful 
attempts to access security-relevant objects"...  the audit trail itself 
constitutes a "security-relevant object").

Thanks again!

-----------------------------------------------------------
Robert Giles                     Group System Administrator
SPD/ARL:UT              (512) 835-3077 · Fax (512) 490-4244

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2006-06-29 18:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-27 20:43 Logging failed open() calls on /var/log/audit/audit.log Robert Giles
2006-06-27 21:15 ` Amy Griffis
2006-06-27 21:21   ` Steve Grubb
2006-06-27 21:32     ` Timothy R. Chavez
2006-06-27 23:10       ` Amy Griffis
2006-06-27 21:32     ` Amy Griffis
2006-06-27 21:36     ` Linda Knippers
2006-06-27 22:03       ` Alexander Viro
2006-06-27 22:16         ` Linda Knippers
2006-06-29 16:34   ` Klaus Weidner
2006-06-29 18:04     ` LC Bruzenak
2006-06-29 18:12     ` Robert Giles

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.