Thread (7 messages) 7 messages, 4 authors, 2011-01-19

Re: [PATCH] af_unix: implement socket filter

flat view

From: David Miller <davem@davemloft.net>
Date: 2011-01-19 05:32:56
Also in: lkml

From: Ian Molton <redacted>
Date: Tue, 18 Jan 2011 16:39:15 +0000
From: Alban Crequy <redacted>

Linux Socket Filters can already be successfully attached and detached on unix
sockets with setsockopt(sockfd, SOL_SOCKET, SO_{ATTACH,DETACH}_FILTER, ...).
See: Documentation/networking/filter.txt

But the filter was never used in the unix socket code so it did not work. This
patch uses sk_filter() to filter buffers before delivery.

This short program demonstrates the problem on SOCK_DGRAM.
...
Signed-off-by: Alban Crequy <redacted>
Reviewed-by: Ian Molton <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help