public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* When do audit log calls fail?
@ 2013-09-18  6:48 Kenan Avdic
  2013-09-18 17:50 ` Steve Grubb
  0 siblings, 1 reply; 4+ messages in thread
From: Kenan Avdic @ 2013-09-18  6:48 UTC (permalink / raw)
  To: linux-audit


[-- Attachment #1.1: Type: text/plain, Size: 1158 bytes --]

Hello,

We've recently started using audit instead of syslog for reliability 
purposes (acknowledged logging). I'm trying to establish when the 
various audit_log_* system calls fail, particularly audit_log_user_message.

Basically what we're after is a way of being sure that a message that 
was sent for logging is "comitted", and react in some way if it is not. 
We're using audit_log_user_message but this function never fails (i.e. 
returns <=0, per manpage), even e.g. if the audit daemon is down. From 
reading the source code it seems the only way for it to fail is when the 
kernel is lacking support for auditing (or is too old or similar).

My conclusion, given the above assumption, is that these functions do 
not provide a way to ascertain that a message is actually logged from 
the system call, and that decisions about failed logging have to be made 
by the daemon. Is there any other way to check what happens with a log 
message once its sent using e.g. audit_log_user_message?


Thanks,
/Kenan

-- 
Kenan Avdic
link22 AB
Brigadgatan 1
587 58 Linköping, Sweden

kenan.avdic@link22.se
tel: +46 707 75 77 61


[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2266 bytes --]

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



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

end of thread, other threads:[~2013-09-19 21:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-18  6:48 When do audit log calls fail? Kenan Avdic
2013-09-18 17:50 ` Steve Grubb
2013-09-19  9:43   ` Kenan Avdic
2013-09-19 21:23     ` Steve Grubb

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