diff options
author | Jamie Gritton <jamie@FreeBSD.org> | 2009-05-29 21:27:12 +0000 |
---|---|---|
committer | Jamie Gritton <jamie@FreeBSD.org> | 2009-05-29 21:27:12 +0000 |
commit | 76ca6f88dab430fe415094fb54beb7eaa010d22e (patch) | |
tree | 36c53629863ffb1eb32354e9a24549059dd6273f /sys/sys/jail.h | |
parent | 88812d9e1dfe430d3387fb39f958373f40b079f2 (diff) | |
download | src-76ca6f88dab430fe415094fb54beb7eaa010d22e.tar.gz src-76ca6f88dab430fe415094fb54beb7eaa010d22e.zip |
Notes
Diffstat (limited to 'sys/sys/jail.h')
-rw-r--r-- | sys/sys/jail.h | 6 |
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 */ |