diff --git a/[refs] b/[refs] index a3de16f830fd..b52fb9cb9bdc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a5db219f4cf9f67995eabd53b81a1232c82f5852 +refs/heads/master: d6ae3bae3d1bf7a8bf367e29f2cac0788dcd0db5 diff --git a/trunk/net/unix/af_unix.c b/trunk/net/unix/af_unix.c index dd419d286204..8d9bbba345a4 100644 --- a/trunk/net/unix/af_unix.c +++ b/trunk/net/unix/af_unix.c @@ -1475,6 +1475,12 @@ static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock, goto out_free; } + if (sk_filter(other, skb) < 0) { + /* Toss the packet but do not return any error to the sender */ + err = len; + goto out_free; + } + unix_state_lock(other); err = -EPERM; if (!unix_may_send(sk, other))