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

From: David Miller
Date: Tue Mar 04 2014 - 19:22:06 EST


From: ebiederm@xxxxxxxxxxxx (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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/