]> git.baikalelectronics.ru Git - kernel.git/commit
AppArmor: Ensure the size of the copy is < the buffer allocated to hold it
authorJohn Johansen <john.johansen@canonical.com>
Sat, 9 Oct 2010 07:47:53 +0000 (00:47 -0700)
committerJames Morris <jmorris@namei.org>
Wed, 20 Oct 2010 23:12:46 +0000 (10:12 +1100)
commit0001b5b7457716bdbf2a84d4c2c4b72a2c6a4903
tree8b01e83cfa6b18fe8b83b342733931d5f98bc1b2
parent99fa8ce376bc8ae7ab74303d404ed3654e837b90
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>
security/apparmor/apparmorfs.c