* A question about auditd_reply_list and auditd_consumer_data in Audit.c and Auditd-event.c
@ 2008-05-16 3:40 chuli
2008-05-19 17:27 ` Steve Grubb
0 siblings, 1 reply; 2+ messages in thread
From: chuli @ 2008-05-16 3:40 UTC (permalink / raw)
To: 'Steve Grubb'; +Cc: 'Linux Audit'
HI,
I have read source code in Audit-1.6.5 about auditd part. I looked up into functions equeue_event(),event_thread_main() in Auditd-event.c,get_reply(),send_audit_event() and main function in Auditd.c. I don't know why it must use a list (auditd_reply_list) here. It seems rep->next is never be used and it's null so that the else branch of if (consumer_data.head == NULL) in equeue_event() will never be reached.
I feel unsure about above codes. Am I wrong?
Regards
Chu Li
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: A question about auditd_reply_list and auditd_consumer_data in Audit.c and Auditd-event.c
2008-05-16 3:40 A question about auditd_reply_list and auditd_consumer_data in Audit.c and Auditd-event.c chuli
@ 2008-05-19 17:27 ` Steve Grubb
0 siblings, 0 replies; 2+ messages in thread
From: Steve Grubb @ 2008-05-19 17:27 UTC (permalink / raw)
To: chuli; +Cc: 'Linux Audit'
On Thursday 15 May 2008 11:40:55 pm chuli wrote:
> I have read source code in Audit-1.6.5 about auditd part. I looked up into
> functions equeue_event(),event_thread_main() in
> Auditd-event.c,get_reply(),send_audit_event() and main function in
> Auditd.c. I don't know why it must use a list (auditd_reply_list) here.
As the code stands today, it does not need it. I keep the project's future
development needs/goals in a TODO file at the top directory in the source
tarball. I have a goal of making an internal queue between the listener and
disk writing threads. What I wanted to do was get it working in audispd and
then backport that same queue mechanism into auditd. But I wanted it to get
tested out before pulling it into the more critical auditd code. I plan to
add this internal queue in the 2.0 series which should start in the next
month or two.
-Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-19 17:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-16 3:40 A question about auditd_reply_list and auditd_consumer_data in Audit.c and Auditd-event.c chuli
2008-05-19 17:27 ` Steve Grubb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox