android_kernel_lge_bullhead/net/netlabel
Paul Moore fb85c52515 netlabel: add address family checks to netlbl_{sock,req}_delattr()
commit 0e0e36774081534783aa8eeb9f6fbddf98d3c061 upstream.

It seems risky to always rely on the caller to ensure the socket's
address family is correct before passing it to the NetLabel kAPI,
especially since we see at least one LSM which didn't. Add address
family checks to the *_delattr() functions to help prevent future
problems.

Cc: <stable@vger.kernel.org>
Reported-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2016-08-27 11:40:37 +02:00
..
Kconfig [NETLABEL]: Fix build failure. 2006-11-05 16:44:06 -08:00
Makefile doc: Update the email address for Paul Moore in various source files 2011-08-01 17:58:33 -07:00
netlabel_addrlist.c net: use IS_ENABLED(CONFIG_IPV6) 2011-12-11 18:25:16 -05:00
netlabel_addrlist.h net: use IS_ENABLED(CONFIG_IPV6) 2011-12-11 18:25:16 -05:00
netlabel_cipso_v4.c netlink: Rename pid to portid to avoid confusion 2012-09-10 15:30:41 -04:00
netlabel_cipso_v4.h doc: Update the email address for Paul Moore in various source files 2011-08-01 17:58:33 -07:00
netlabel_domainhash.c netlabel: improve domain mapping validation 2013-05-19 14:49:55 -07:00
netlabel_domainhash.h net: use IS_ENABLED(CONFIG_IPV6) 2011-12-11 18:25:16 -05:00
netlabel_kapi.c netlabel: add address family checks to netlbl_{sock,req}_delattr() 2016-08-27 11:40:37 +02:00
netlabel_mgmt.c netlink: Rename pid to portid to avoid confusion 2012-09-10 15:30:41 -04:00
netlabel_mgmt.h doc: Update the email address for Paul Moore in various source files 2011-08-01 17:58:33 -07:00
netlabel_unlabeled.c netlabel: fix build problems when CONFIG_IPV6=n 2013-03-08 11:33:51 -05:00
netlabel_unlabeled.h doc: Update the email address for Paul Moore in various source files 2011-08-01 17:58:33 -07:00
netlabel_user.c userns: Convert the audit loginuid to be a kuid 2012-09-17 18:08:54 -07:00
netlabel_user.h doc: Update the email address for Paul Moore in various source files 2011-08-01 17:58:33 -07:00