aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/jail.h
diff options
context:
space:
mode:
authorJamie Gritton <jamie@FreeBSD.org>2009-05-29 21:27:12 +0000
committerJamie Gritton <jamie@FreeBSD.org>2009-05-29 21:27:12 +0000
commit76ca6f88dab430fe415094fb54beb7eaa010d22e (patch)
tree36c53629863ffb1eb32354e9a24549059dd6273f /sys/sys/jail.h
parent88812d9e1dfe430d3387fb39f958373f40b079f2 (diff)
downloadsrc-76ca6f88dab430fe415094fb54beb7eaa010d22e.tar.gz
src-76ca6f88dab430fe415094fb54beb7eaa010d22e.zip
Notes
Diffstat (limited to 'sys/sys/jail.h')
-rw-r--r--sys/sys/jail.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/jail.h b/sys/sys/jail.h
index 0ee5f940f816..815701c380ea 100644
--- a/sys/sys/jail.h
+++ b/sys/sys/jail.h
@@ -129,6 +129,8 @@ MALLOC_DECLARE(M_PRISON);
#include <sys/osd.h>
+#define HOSTUUIDLEN 64
+
/*
* This structure describes a prison. It is pointed to by all struct
* ucreds's of the inmates. pr_ref keeps track of them and is used to
@@ -166,12 +168,16 @@ struct prison {
int pr_prisoncount; /* (a) number of child jails */
unsigned pr_allow; /* (p) PR_ALLOW_* flags */
int pr_enforce_statfs; /* (p) statfs permission */
+ char pr_domain[MAXHOSTNAMELEN]; /* (p) jail domainname */
+ char pr_uuid[HOSTUUIDLEN]; /* (p) jail hostuuid */
+ unsigned long pr_hostid; /* (p) jail hostid */
};
#endif /* _KERNEL || _WANT_PRISON */
#ifdef _KERNEL
/* Flag bits set via options */
#define PR_PERSIST 0x00000001 /* Can exist without processes */
+#define PR_HOST 0x00000002 /* Virtualize hostname et al */
#define PR_IP4_USER 0x00000004 /* Virtualize IPv4 addresses */
#define PR_IP6_USER 0x00000008 /* Virtualize IPv6 addresses */