[RFC][PATCH] audit: Simplify by assuming the callers socket buffer is large enough

David Miller davem at davemloft.net
Wed Mar 5 00:21:52 UTC 2014


From: ebiederm at xmission.com (Eric W. Biederman)
Date: Tue, 04 Mar 2014 14:41:16 -0800

> If we really want the ability to always appened to the queue of skb's
> is to just have a version of netlink_send_skb that ignores the queued
> limits.  Of course an evil program then could force the generation of
> enough audit records to DOS the kernel, but we seem to be in that
> situation now.  Shrug.

There is never a valid reason to bypass the socket limits.

It protects the system from things going out of control.

Netlink packet sends can fail, and audit should cope with that
event instead of trying to bludgeon it into not happening.




More information about the Linux-audit mailing list