diff options
author | Paul Moore <pmoore@redhat.com> | 2013-05-17 09:08:50 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-27 10:34:32 -0700 |
commit | 54ba13b9018c810664923626be5b22d220a955e8 (patch) | |
tree | 89a7b707bdfff37256ef436918e1f18f7450731d /net/netlabel/Makefile | |
parent | 8410e49bf36d9adf4aba8a5cb8e1540da6aec862 (diff) | |
download | kernel_samsung_aries-54ba13b9018c810664923626be5b22d220a955e8.zip kernel_samsung_aries-54ba13b9018c810664923626be5b22d220a955e8.tar.gz kernel_samsung_aries-54ba13b9018c810664923626be5b22d220a955e8.tar.bz2 |
netlabel: improve domain mapping validation
[ Upstream commit 6b21e1b77d1a3d58ebfd513264c885695e8a0ba5 ]
The net/netlabel/netlabel_domainhash.c:netlbl_domhsh_add() function
does not properly validate new domain hash entries resulting in
potential problems when an administrator attempts to add an invalid
entry. One such problem, as reported by Vlad Halilov, is a kernel
BUG (found in netlabel_domainhash.c:netlbl_domhsh_audit_add()) when
adding an IPv6 outbound mapping with a CIPSO configuration.
This patch corrects this problem by adding the necessary validation
code to netlbl_domhsh_add() via the newly created
netlbl_domhsh_validate() function.
Ideally this patch should also be pushed to the currently active
-stable trees.
Reported-by: Vlad Halilov <vlad.halilov@gmail.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/netlabel/Makefile')
0 files changed, 0 insertions, 0 deletions