commit | 3ed02ada2a5e695e2fbb5e4a0008cfcb0f50feaa | [log] [tgz] |
---|---|---|
author | John Johansen <john.johansen@canonical.com> | Sat Oct 09 00:47:53 2010 -0700 |
committer | James Morris <jmorris@namei.org> | Thu Oct 21 10:12:46 2010 +1100 |
tree | 8b01e83cfa6b18fe8b83b342733931d5f98bc1b2 | |
parent | 9f1c1d426b0402b25cd0d7ca719ffc8e20e46d5f [diff] |
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 <john.johansen@canonical.com> Acked-by: Kees Cook <kees.cook@canonical.com> Signed-off-by: James Morris <jmorris@namei.org>