From: Paul Moore Date: Sun, 13 Apr 2008 02:07:52 +0000 (-0700) Subject: LSM: Make the Labeled IPsec hooks more stack friendly X-Git-Tag: v2.6.26-rc1~1138^2~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e1ad7b5d871d4189b1da3125c2f12d1b5f7d0b;p=pandora-kernel.git LSM: Make the Labeled IPsec hooks more stack friendly The xfrm_get_policy() and xfrm_add_pol_expire() put some rather large structs on the stack to work around the LSM API. This patch attempts to fix that problem by changing the LSM API to require only the relevant "security" pointers instead of the entire SPD entry; we do this for all of the security_xfrm_policy*() functions to keep things consistent. Signed-off-by: Paul Moore Acked-by: James Morris Signed-off-by: David S. Miller --- Reading git-diff-tree failed