Skip to content

Commit 446fda4

Browse files
pcmooreDavid S. Miller
authored andcommitted
[NetLabel]: CIPSOv4 engine
Add support for the Commercial IP Security Option (CIPSO) to the IPv4 network stack. CIPSO has become a de-facto standard for trusted/labeled networking amongst existing Trusted Operating Systems such as Trusted Solaris, HP-UX CMW, etc. This implementation is designed to be used with the NetLabel subsystem to provide explicit packet labeling to LSM developers. The CIPSO/IPv4 packet labeling works by the LSM calling a NetLabel API function which attaches a CIPSO label (IPv4 option) to a given socket; this in turn attaches the CIPSO label to every packet leaving the socket without any extra processing on the outbound side. On the inbound side the individual packet's sk_buff is examined through a call to a NetLabel API function to determine if a CIPSO/IPv4 label is present and if so the security attributes of the CIPSO label are returned to the caller of the NetLabel API function. Signed-off-by: Paul Moore <paul.moore@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 11a03f7 commit 446fda4

4 files changed

Lines changed: 1647 additions & 0 deletions

File tree

‎include/linux/sysctl.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ enum
411411
NET_IPV4_TCP_WORKAROUND_SIGNED_WINDOWS=115,
412412
NET_TCP_DMA_COPYBREAK=116,
413413
NET_TCP_SLOW_START_AFTER_IDLE=117,
414+
NET_CIPSOV4_CACHE_ENABLE=118,
415+
NET_CIPSOV4_CACHE_BUCKET_SIZE=119,
416+
NET_CIPSOV4_RBM_OPTFMT=120,
417+
NET_CIPSOV4_RBM_STRICTVALID=121,
414418
};
415419

416420
enum {

‎net/ipv4/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ obj-$(CONFIG_TCP_CONG_VEGAS) += tcp_vegas.o
4747
obj-$(CONFIG_TCP_CONG_VENO) += tcp_veno.o
4848
obj-$(CONFIG_TCP_CONG_SCALABLE) += tcp_scalable.o
4949
obj-$(CONFIG_TCP_CONG_LP) += tcp_lp.o
50+
obj-$(CONFIG_NETLABEL) += cipso_ipv4.o
5051

5152
obj-$(CONFIG_XFRM) += xfrm4_policy.o xfrm4_state.o xfrm4_input.o \
5253
xfrm4_output.o

0 commit comments

Comments
 (0)