[Top] [All Lists]

Re: [PATCH] Add audit uid to netlink credentials

To: Patrick McHardy <kaber@xxxxxxxxx>
Subject: Re: [PATCH] Add audit uid to netlink credentials
From: Stephen Smalley <sds@xxxxxxxxxxxxxx>
Date: Wed, 09 Feb 2005 13:53:44 -0500
Cc: Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx>, Linux Audit Discussion <linux-audit@xxxxxxxxxx>, "Serge E. Hallyn" <serue@xxxxxxxxxx>, netdev@xxxxxxxxxxx, davem@xxxxxxxxxxxxx
In-reply-to: <420A5BE1.4000003@xxxxxxxxx>
Organization: National Security Agency
References: <20050204165840.GA2320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.62.0502080658310.32526@xxxxxxxxxxxxxxxxxx> <1107956079.17568.42.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20050209141945.GA28864@xxxxxxxxxxxxxxx> <20050209164929.GA30007@xxxxxxxxxxxxxxx> <420A5BE1.4000003@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Wed, 2005-02-09 at 13:52, Patrick McHardy wrote:
> Could you explain how this can happen ? From what I can see whenever data
> is queued to the receive queue the input function is called immediately
> through sk->sk_data_ready() -> netlink_data_ready() -> nlk->data_ready()
> and processes all queued packets, except in the case you pointed out,
> when audit_netlink_sem is already taken.

More packets may be queued by another sender while audit_receive() is
still processing the original one, so it will process them too.

Stephen Smalley <sds@xxxxxxxxxxxxxx>
National Security Agency

<Prev in Thread] Current Thread [Next in Thread>