sctp: label accepted/peeled off sockets
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Wed, 23 Dec 2015 18:44:09 +0000 (16:44 -0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Dec 2015 05:18:47 +0000 (00:18 -0500)
commit3538a5c8ffa37c715029af4a2e384c077558eb18
treead231d72e2e789a9140d4f49563212a88df0b84e
parent9ba0b9636dc07a328ad3bffe9b22edb4cbb2901b
sctp: label accepted/peeled off sockets

Accepted or peeled off sockets were missing a security label (e.g.
SELinux) which means that socket was in "unlabeled" state.

This patch clones the sock's label from the parent sock and resolves the
issue (similar to AF_BLUETOOTH protocol family).

Cc: Paul Moore <pmoore@redhat.com>
Cc: David Teigland <teigland@redhat.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c