From: John Johansen Date: Sat, 9 Oct 2010 07:47:53 +0000 (-0700) Subject: AppArmor: Ensure the size of the copy is < the buffer allocated to hold it X-Git-Tag: v2.6.37-rc1~218^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ed02ada2a5e695e2fbb5e4a0008cfcb0f50feaa;p=pandora-kernel.git AppArmor: Ensure the size of the copy is < the buffer allocated to hold it Actually I think in this case the appropriate thing to do is to BUG as there is currently a case (remove) where the alloc_size needs to be larger than the copy_size, and if copy_size is ever greater than alloc_size there is a mistake in the caller code. Signed-off-by: John Johansen Acked-by: Kees Cook Signed-off-by: James Morris --- Reading git-diff-tree failed