diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2018-08-15 18:35:42 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2018-08-15 18:35:42 +0000 |
commit | f6c0e63bf7a29a4436513797b9e10b8a596ddea0 (patch) | |
tree | 73643df398fc19259233238da14606ff4593cec6 /usr.sbin/jail/command.c | |
parent | dad19de0e6685ea176c82d57c79803954d706760 (diff) | |
download | src-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/command.c')
-rw-r--r-- | usr.sbin/jail/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/jail/command.c b/usr.sbin/jail/command.c index 330328accfb8..53f4f80862ce 100644 --- a/usr.sbin/jail/command.c +++ b/usr.sbin/jail/command.c @@ -147,8 +147,8 @@ next_command(struct cfjail *j) } if (j->comstring == NULL || j->comstring->len == 0 || (create_failed && (comparam == IP_EXEC_PRESTART || - comparam == IP_EXEC_START || comparam == IP_COMMAND || - comparam == IP_EXEC_POSTSTART))) + comparam == IP_EXEC_CREATED || comparam == IP_EXEC_START || + comparam == IP_COMMAND || comparam == IP_EXEC_POSTSTART))) continue; switch (run_command(j)) { case -1: |