aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2012-02-09 10:22:08 +0000
committerMartin Matuska <mm@FreeBSD.org>2012-02-09 10:22:08 +0000
commit0cc207a6f57ca1a42f27e6dbf4d70d331c2f9bb9 (patch)
tree3bd31b4e43a04f06056c6c020a90c80e37e4b08c /usr.sbin
parent14d060a6b80ef0a9817e8735f16e7a07debdcfe6 (diff)
downloadsrc-0cc207a6f57ca1a42f27e6dbf4d70d331c2f9bb9.tar.gz
src-0cc207a6f57ca1a42f27e6dbf4d70d331c2f9bb9.zip
Add support for mounting devfs inside jails.
A new jail(8) option "devfs_ruleset" defines the ruleset enforcement for mounting devfs inside jails. A value of -1 disables mounting devfs in jails, a value of zero means no restrictions. Nested jails can only have mounting devfs disabled or inherit parent's enforcement as jails are not allowed to view or manipulate devfs(8) rules. Utilizes new functions introduced in r231265. Reviewed by: jamie MFC after: 1 month
Notes
Notes: svn path=/head/; revision=231267
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/jail/jail.813
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8
index c5a2245b0a3d..5cd77fc705c3 100644
--- a/usr.sbin/jail/jail.8
+++ b/usr.sbin/jail/jail.8
@@ -34,7 +34,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 23, 2011
+.Dd February 9, 2012
.Dt JAIL 8
.Os
.Sh NAME
@@ -301,6 +301,17 @@ A jail never has a lower securelevel than the default system, but by
setting this parameter it may have a higher one.
If the system securelevel is changed, any jail securelevels will be at
least as secure.
+.It Va devfs_ruleset
+The number of the devfs ruleset that is enforced for mounting devfs in
+this jail and its descendants. A value of zero means no ruleset is enforced
+or if set inside a jail for a descendant jail, the parent jails's devfs
+ruleset enforcement is inherited. A value of -1 (default) means mounting a
+devfs filesystem is not allowed. Mounting devfs inside a jail is possible
+only if the
+.Va allow.mount
+permission is effective and
+.Va enforce_statfs
+is set to a value lower than 2.
.It Va children.max
The number of child jails allowed to be created by this jail (or by
other jails under this jail).