aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/jail.h
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2009-08-13 10:26:34 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2009-08-13 10:26:34 +0000
commiteb79e1c76e18c7b72e7f16668319010d7e03ddae (patch)
treeda85107d22a96dc6fa0f87abc22d5684fb84f53c /sys/sys/jail.h
parent20b0cdb749a0a8e31a98f6624168d88de77b638f (diff)
downloadsrc-eb79e1c76e18c7b72e7f16668319010d7e03ddae.tar.gz
src-eb79e1c76e18c7b72e7f16668319010d7e03ddae.zip
Make it possible to change the vnet sysctl variables on jails
with their own virtual network stack. Jails only inheriting a network stack cannot change anything that cannot be changed from within a prison. Reviewed by: rwatson, zec Approved by: re (kib)
Notes
Notes: svn path=/head/; revision=196176
Diffstat (limited to 'sys/sys/jail.h')
-rw-r--r--sys/sys/jail.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/jail.h b/sys/sys/jail.h
index d7457bfd4272..cb26a64ec7d2 100644
--- a/sys/sys/jail.h
+++ b/sys/sys/jail.h
@@ -341,6 +341,7 @@ void getcredhostuuid(struct ucred *, char *, size_t);
void getcredhostid(struct ucred *, unsigned long *);
int prison_allow(struct ucred *, unsigned);
int prison_check(struct ucred *cred1, struct ucred *cred2);
+int prison_owns_vnet(struct ucred *);
int prison_canseemount(struct ucred *cred, struct mount *mp);
void prison_enforce_statfs(struct ucred *cred, struct mount *mp,
struct statfs *sp);