selinux: Consolidate sockcreate_sid logic
authorPaul Moore <paul.moore@hp.com>
Thu, 22 Apr 2010 18:46:18 +0000 (14:46 -0400)
committerJames Morris <jmorris@namei.org>
Mon, 2 Aug 2010 05:34:37 +0000 (15:34 +1000)
commitd4f2d97841827cb876da8b607df05a3dab812416
tree8d3128128f465e23dbfc5ee4ccc50d9bc489f7d7
parent4d1e24514d80cb266231d0c1b6c02161970ad019
selinux: Consolidate sockcreate_sid logic

Consolidate the basic sockcreate_sid logic into a single helper function
which allows us to do some cleanups in the related code.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/hooks.c