From mboxrd@z Thu Jan 1 00:00:00 1970 From: "chuli" Subject: A question about auditd_reply_list and auditd_consumer_data in Audit.c and Auditd-event.c Date: Fri, 16 May 2008 11:40:55 +0800 Message-ID: <003001c8b706$a5c2c130$548da70a@truly> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: 'Steve Grubb' Cc: 'Linux Audit' List-Id: linux-audit@redhat.com HI, I have read source code in Audit-1.6.5 about auditd part. I looked up in= to functions equeue_event(),event_thread_main() in Auditd-event.c,get_rep= ly(),send_audit_event() and main function in Auditd.c. I don't know why i= t must use a list (auditd_reply_list) here. It seems rep->next is never b= e used and it's null so that the else branch of if (consumer_data.head =3D= =3D NULL) in equeue_event() will never be reached. I feel unsure about above codes. Am I wrong?=20 Regards Chu Li