aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/jail/jail.c
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2018-08-15 18:35:42 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2018-08-15 18:35:42 +0000
commitf6c0e63bf7a29a4436513797b9e10b8a596ddea0 (patch)
tree73643df398fc19259233238da14606ff4593cec6 /usr.sbin/jail/jail.c
parentdad19de0e6685ea176c82d57c79803954d706760 (diff)
downloadsrc-f6c0e63bf7a29a4436513797b9e10b8a596ddea0.tar.gz
src-f6c0e63bf7a29a4436513797b9e10b8a596ddea0.zip
- Add exec hook "exec.created". This is called when the jail is
created and before exec.start is called. [1] - Bump __FreeBSD_version. This allows to attach ZFS datasets and various other things to be done before any command/service/rc-script is started in the new jail. PR: 228066 [1] Reviewed by: jamie [1] Submitted by: Stefan Grönke <stefan@gronke.net> [1] Differential Revision: https://reviews.freebsd.org/D15330 [1]
Notes
Notes: svn path=/head/; revision=337863
Diffstat (limited to 'usr.sbin/jail/jail.c')
-rw-r--r--usr.sbin/jail/jail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c
index c5f04fe8b9aa..ee0bb7c4212f 100644
--- a/usr.sbin/jail/jail.c
+++ b/usr.sbin/jail/jail.c
@@ -98,6 +98,7 @@ static const enum intparam startcommands[] = {
IP_MOUNT_PROCFS,
IP_EXEC_PRESTART,
IP__OP,
+ IP_EXEC_CREATED,
IP_VNET_INTERFACE,
IP_EXEC_START,
IP_COMMAND,