selinux: Fix check for xfrm selinux context algorithm
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 23 Feb 2011 11:54:33 +0000 (12:54 +0100)
committerEric Paris <eparis@redhat.com>
Fri, 25 Feb 2011 20:00:44 +0000 (15:00 -0500)
commit8f82a6880d8d03961181d973388e1df2772a8b24
treeb2eb1374f143610dbf06a686fcfee6b77bff110b
parent4916ca401e3051dad326ddd69765bd0e3f32fb9b
selinux: Fix check for xfrm selinux context algorithm

selinux_xfrm_sec_ctx_alloc accidentally checks the xfrm domain of
interpretation against the selinux context algorithm. This patch
fixes this by checking ctx_alg against the selinux context algorithm.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/xfrm.c