Skip to contentSkip to conversation

bsdjail module

RFC PATCH New Serge E. Hallyn 1 participant 1 message Oct 28, 2004 Security (LSM)

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 bsdjail module

Hi,

attached is the bsdjail module patch against today's rc1-bk7 snapshot. The tasklookup.patch and jail-doc.patch from sourceforge.net/projects/linuxjail still apply (mostly) cleanly, so I'm only sending bsdjail.

I am looking for suggestions about whether and how to improve the networking controls. The current approach hardcodes a single ipv4 and/or a single ipv6 address into the jail structure, and locks the jail users to those addresses if they've been specified. This approach seems to satisfy the uses I had in mind for bsdjail, but it had been suggested on this list that the networking support be generalized. Something like VRF (http://linux-vrf.sourceforge.net/) would be great, but it is still under development.

Is what is implemented here considered sufficient until vrf is ready? Are there other ideas for something which could be used immediately?

thanks,
-serge

security/Kconfig +11 -0
Index: linux-2.6.10-rc1-bk7/security/Kconfig
===================================================================
@@ -84,6 +84,17 @@
 
 	  If you are unsure how to answer this question, answer N.
 
+config SECURITY_BSDJAIL
+	tristate "BSD Jail LSM"
+	depends on SECURITY
+	select SECURITY_NETWORK
+	help
+	  Provides BSD Jail compartmentalization functionality.
+	  See Documentation/bsdjail.txt for more information and
+	  usage instructions.
+
+	  If you are unsure how to answer this question, answer N.
+
 source security/selinux/Kconfig
 
 endmenu
security/Makefile +1 -0
Index: linux-2.6.10-rc1-bk7/security/Makefile
===================================================================
@@ -17,3 +17,4 @@
 obj-$(CONFIG_SECURITY_CAPABILITIES)	+= commoncap.o capability.o
 obj-$(CONFIG_SECURITY_ROOTPLUG)		+= commoncap.o root_plug.o
 obj-$(CONFIG_SECURITY_SECLVL)		+= seclvl.o
+obj-$(CONFIG_SECURITY_BSDJAIL)		+= bsdjail.o
security/bsdjail.c +1365 -0

1,365 lines not on this page · raw message