Smack: IPv6 casting error fix for 3.11
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 5 Aug 2013 20:21:22 +0000 (13:21 -0700)
committerChanho Park <parkch98@gmail.com>
Fri, 23 Jan 2015 14:23:47 +0000 (23:23 +0900)
commit0e11cd7d686c68859cf5213b95a04009913da017
tree7fda662d27dc72475a920782a617c284950409b1
parent0e388e782c7e57dd42cdfc4f48f340ccf9e6f5dd
Smack: IPv6 casting error fix for 3.11

The original implementation of the Smack IPv6 port based
local controls works most of the time using a sockaddr as
a temporary variable, but not always as it overflows in
some circumstances. The correct data is a sockaddr_in6.
A struct sockaddr isn't as large as a struct sockaddr_in6.
There would need to be casting one way or the other. This
patch gets it the right way.

Change-Id: Iac627fa0ddb77e3ff4b8c9c81bd838141a5638e9
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
security/smack/smack_lsm.c