OSDN Git Service

Smack: Inform peer that IPv6 traffic has been blocked
authorPiotr Sawicki <p.sawicki2@partner.samsung.com>
Thu, 19 Jul 2018 09:47:31 +0000 (11:47 +0200)
committerCasey Schaufler <casey@schaufler-ca.com>
Mon, 23 Jul 2018 20:00:03 +0000 (13:00 -0700)
commitd66a8acbda926fa2398ae930f50787e8663bce96
tree86c47de8e48fc66af59fc673c440d7895e08d6b0
parenta07ef9516477aef2d052d75129a48f9f94d3b3f3
Smack: Inform peer that IPv6 traffic has been blocked

In this patch we're sending an ICMPv6 message to a peer to
immediately inform it that making a connection is not possible.
In case of TCP connections, without this change, the peer
will be waiting until a connection timeout is exceeded.

Signed-off-by: Piotr Sawicki <p.sawicki2@partner.samsung.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c