summaryrefslogtreecommitdiffstats
path: root/sys/sys/osd.h
diff options
context:
space:
mode:
authorjamie <jamie@FreeBSD.org>2009-04-29 21:14:15 +0000
committerjamie <jamie@FreeBSD.org>2009-04-29 21:14:15 +0000
commit453b86f943612b273e23c7de9941d00149802f15 (patch)
tree22957bdb61dcda0f3a60d42b6e80866c9764e591 /sys/sys/osd.h
parent32a71137f08bc028578417de36a241d7e6011f58 (diff)
downloadFreeBSD-src-453b86f943612b273e23c7de9941d00149802f15.zip
FreeBSD-src-453b86f943612b273e23c7de9941d00149802f15.tar.gz
Introduce the extensible jail framework, using the same "name=value"
interface as nmount(2). Three new system calls are added: * jail_set, to create jails and change the parameters of existing jails. This replaces jail(2). * jail_get, to read the parameters of existing jails. This replaces the security.jail.list sysctl. * jail_remove to kill off a jail's processes and remove the jail. Most jail parameters may now be changed after creation, and jails may be set to exist without any attached processes. The current jail(2) system call still exists, though it is now a stub to jail_set(2). Approved by: bz (mentor)
Diffstat (limited to 'sys/sys/osd.h')
-rw-r--r--sys/sys/osd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/osd.h b/sys/sys/osd.h
index c0f17a5..63d536f 100644
--- a/sys/sys/osd.h
+++ b/sys/sys/osd.h
@@ -81,8 +81,8 @@ void osd_exit(u_int type, struct osd *osd);
#define osd_thread_exit(td) \
osd_exit(OSD_THREAD, &(td)->td_osd)
-#define osd_jail_register(destructor) \
- osd_register(OSD_JAIL, (destructor), NULL)
+#define osd_jail_register(destructor, methods) \
+ osd_register(OSD_JAIL, (destructor), (methods))
#define osd_jail_deregister(slot) \
osd_deregister(OSD_JAIL, (slot))
#define osd_jail_set(pr, slot, value) \
OpenPOWER on IntegriCloud