svn commit: r194842 - head/sys/sys
Jamie Gritton
jamie at FreeBSD.org
Wed Jun 24 15:32:59 UTC 2009
Author: jamie
Date: Wed Jun 24 15:32:57 2009
New Revision: 194842
URL: http://svn.freebsd.org/changeset/base/194842
Log:
Clean up struct prison, with the recent fields in more logical places,
and room for future expansion.
Approved by: bz (mentor)
Modified:
head/sys/sys/jail.h
Modified: head/sys/sys/jail.h
==============================================================================
--- head/sys/sys/jail.h Wed Jun 24 15:29:36 2009 (r194841)
+++ head/sys/sys/jail.h Wed Jun 24 15:32:57 2009 (r194842)
@@ -149,30 +149,32 @@ struct prison {
int pr_ref; /* (p) refcount */
int pr_uref; /* (p) user (alive) refcount */
unsigned pr_flags; /* (p) PR_* flags */
- char pr_path[MAXPATHLEN]; /* (c) chroot path */
- struct cpuset *pr_cpuset; /* (p) cpuset */
- struct vnode *pr_root; /* (c) vnode to rdir */
- char pr_hostname[MAXHOSTNAMELEN]; /* (p) jail hostname */
- char pr_name[MAXHOSTNAMELEN]; /* (p) admin jail name */
+ LIST_HEAD(, prison) pr_children; /* (a) list of child jails */
+ LIST_ENTRY(prison) pr_sibling; /* (a) next in parent's list */
struct prison *pr_parent; /* (c) containing jail */
- int pr_securelevel; /* (p) securelevel */
- struct task pr_task; /* (d) destroy task */
struct mtx pr_mtx;
+ struct task pr_task; /* (d) destroy task */
struct osd pr_osd; /* (p) additional data */
+ struct cpuset *pr_cpuset; /* (p) cpuset */
+ struct vnet *pr_vnet; /* (c) network stack */
+ struct vnode *pr_root; /* (c) vnode to rdir */
int pr_ip4s; /* (p) number of v4 IPs */
- struct in_addr *pr_ip4; /* (p) v4 IPs of jail */
int pr_ip6s; /* (p) number of v6 IPs */
+ struct in_addr *pr_ip4; /* (p) v4 IPs of jail */
struct in6_addr *pr_ip6; /* (p) v6 IPs of jail */
- LIST_HEAD(, prison) pr_children; /* (a) list of child jails */
- LIST_ENTRY(prison) pr_sibling; /* (a) next in parent's list */
+ void *pr_sparep[4];
int pr_childcount; /* (a) number of child jails */
+ int pr_childmax; /* (p) maximum child jails */
unsigned pr_allow; /* (p) PR_ALLOW_* flags */
+ int pr_securelevel; /* (p) securelevel */
int pr_enforce_statfs; /* (p) statfs permission */
+ int pr_spare[5];
+ unsigned long pr_hostid; /* (p) jail hostid */
+ char pr_name[MAXHOSTNAMELEN]; /* (p) admin jail name */
+ char pr_path[MAXPATHLEN]; /* (c) chroot path */
+ char pr_hostname[MAXHOSTNAMELEN]; /* (p) jail hostname */
char pr_domainname[MAXHOSTNAMELEN]; /* (p) jail domainname */
char pr_hostuuid[HOSTUUIDLEN]; /* (p) jail hostuuid */
- unsigned long pr_hostid; /* (p) jail hostid */
- struct vnet *pr_vnet; /* (c) network stack */
- int pr_childmax; /* (p) maximum child jails */
};
#endif /* _KERNEL || _WANT_PRISON */
More information about the svn-src-all
mailing list