BACKPORT: Smack: Local IPv6 port based controls
authorCasey Schaufler <casey@schaufler-ca.com>
Thu, 23 May 2013 01:42:56 +0000 (18:42 -0700)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 30 Jun 2016 12:57:24 +0000 (14:57 +0200)
commit9f918d06afd2c87587fe5805dddad704086893c2
tree765c2f68ba2d4bcf79e203006c43184d834d29ed
parente4cd7de6e249783eb14df7f517f7ddc6b0758ee2
BACKPORT: Smack: Local IPv6 port based controls

Smack does not provide access controls on IPv6 communications.
This patch introduces a mechanism for maintaining Smack lables
for local IPv6 communications. It is based on labeling local ports.
The behavior should be compatible with any future "real" IPv6
support as it provides no interfaces for users to manipulate
the labeling. Remote IPv6 connections use the ambient label
the same way that unlabeled IPv4 packets are treated.

Targeted for git://git.gitorious.org/smack-next/kernel.git

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
(cherry-picked from upstream c673944347edfd4362b10eea11ac384a582b1cf5)
security/smack/smack.h
security/smack/smack_lsm.c