]> git.baikalelectronics.ru Git - kernel.git/commit
cipso: Add support for native local labeling and fixup mapping names
authorPaul Moore <paul.moore@hp.com>
Fri, 10 Oct 2008 14:16:34 +0000 (10:16 -0400)
committerPaul Moore <paul.moore@hp.com>
Fri, 10 Oct 2008 14:16:34 +0000 (10:16 -0400)
commitd3417f8857c1ef1ae5d881a4faaac8bb0bd9e743
tree46037ccd3f3c83cb140abdf5d10af73888bdd362
parent3b28458941ddc128e5ed7e5f39ff72635190dcd7
cipso: Add support for native local labeling and fixup mapping names

This patch accomplishes three minor tasks: add a new tag type for local
labeling, rename the CIPSO_V4_MAP_STD define to CIPSO_V4_MAP_TRANS and
replace some of the CIPSO "magic numbers" with constants from the header
file.  The first change allows CIPSO to support full LSM labels/contexts,
not just MLS attributes.  The second change brings the mapping names inline
with what userspace is using, compatibility is preserved since we don't
actually change the value.  The last change is to aid readability and help
prevent mistakes.

Signed-off-by: Paul Moore <paul.moore@hp.com>
include/net/cipso_ipv4.h
net/ipv4/cipso_ipv4.c
net/ipv4/ip_options.c
net/netlabel/netlabel_cipso_v4.c
net/netlabel/netlabel_cipso_v4.h
net/netlabel/netlabel_kapi.c