selinux: reconcile security_netlbl_secattr_to_sid() and mls_import_netlbl_cat()
authorPaul Moore <pmoore@redhat.com>
Tue, 17 Feb 2015 20:30:23 +0000 (15:30 -0500)
committerPaul Moore <pmoore@redhat.com>
Tue, 7 Apr 2015 00:15:55 +0000 (20:15 -0400)
commitda8026fa0f9154b1c571c4d160dd51a7b8c34495
tree494595cd52c3506580be0f1f08bbe20069fd6f71
parent83d4a806ae46397f606de7376b831524bd3a21e5
selinux: reconcile security_netlbl_secattr_to_sid() and mls_import_netlbl_cat()

Move the NetLabel secattr MLS category import logic into
mls_import_netlbl_cat() where it belongs, and use the
mls_import_netlbl_cat() function in security_netlbl_secattr_to_sid().

Reported-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/ss/mls.c
security/selinux/ss/services.c