aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/syscallsubr.h
diff options
context:
space:
mode:
authorJamie Gritton <jamie@FreeBSD.org>2009-04-29 21:14:15 +0000
committerJamie Gritton <jamie@FreeBSD.org>2009-04-29 21:14:15 +0000
commitb38ff370e42160ae27588ba153f3a80d6f07d969 (patch)
tree22957bdb61dcda0f3a60d42b6e80866c9764e591 /sys/sys/syscallsubr.h
parent33cde13046eaba762428c55bb5d5e07c1a7c5f33 (diff)
downloadsrc-b38ff370e42160ae27588ba153f3a80d6f07d969.tar.gz
src-b38ff370e42160ae27588ba153f3a80d6f07d969.zip
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)
Notes
Notes: svn path=/head/; revision=191673
Diffstat (limited to 'sys/sys/syscallsubr.h')
-rw-r--r--sys/sys/syscallsubr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index c7d4a238a235..1dcc8022cfe5 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -105,6 +105,8 @@ int kern_getsockname(struct thread *td, int fd, struct sockaddr **sa,
int kern_getsockopt(struct thread *td, int s, int level, int name,
void *optval, enum uio_seg valseg, socklen_t *valsize);
int kern_ioctl(struct thread *td, int fd, u_long com, caddr_t data);
+int kern_jail_get(struct thread *td, struct uio *options, int flags);
+int kern_jail_set(struct thread *td, struct uio *options, int flags);
int kern_kevent(struct thread *td, int fd, int nchanges, int nevents,
struct kevent_copyops *k_ops, const struct timespec *timeout);
int kern_kldload(struct thread *td, const char *file, int *fileid);