History log of /freebsd/usr.sbin/jail/command.c (Results 51 – 75 of 80)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/8.4.0
# 69e6d7b7 12-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

sync from head


# bea2eefc 28-Mar-2013 Jamie Gritton <jamie@FreeBSD.org>

Reverse the order of some implicit commands (FS mounts and ifconfigs)
when stopping jails. This matters particularly for nested filesystem
mounts.

PR: kern/177325
Submitted by: Harald Schmalzbauer

Reverse the order of some implicit commands (FS mounts and ifconfigs)
when stopping jails. This matters particularly for nested filesystem
mounts.

PR: kern/177325
Submitted by: Harald Schmalzbauer
MFC after: 3 days

show more ...


# d241a0e6 26-Feb-2013 Xin LI <delphij@FreeBSD.org>

IFC @247348.


# e5935495 14-Feb-2013 Jamie Gritton <jamie@FreeBSD.org>

Handle (ignore) when a process disappears before it can be tracked.


Revision tags: release/9.1.0
# b652778e 11-Jul-2012 Peter Grehan <grehan@FreeBSD.org>

IFC @ r238370


# 9f4d4e5e 04-Jun-2012 Gleb Smirnoff <glebius@FreeBSD.org>

Merge head r233826 through r236557.


# 2d5e7d2e 30-May-2012 Will Andrews <will@FreeBSD.org>

IFC @ r236291.
Diff reductions to the enclosure driver made in r235911.


# a6486f60 28-May-2012 Jamie Gritton <jamie@FreeBSD.org>

When writing the jid via the -i flag, do it right when the jail is created,
before any commands run. /etc/rc.d/jail depends on this.


# 31ccd489 28-May-2012 Gleb Smirnoff <glebius@FreeBSD.org>

Merge head r233826 through r236168.


# 8632fa3e 25-May-2012 Jamie Gritton <jamie@FreeBSD.org>

Don't try to set a null TERM environment.

Submitted by: Mateusz Guzik <mjguzik gmail.com>


# 6a068746 15-May-2012 Alexander Motin <mav@FreeBSD.org>

MFC


# 6fcbac3c 03-May-2012 Jamie Gritton <jamie@FreeBSD.org>

Add a meta-parameter IP__NULL to enum intparam, instead of mixing
enum values and zeroes. This keeps clang happy (and is just good form).

Submitted by: dim


# 3d328873 30-Apr-2012 Gleb Smirnoff <glebius@FreeBSD.org>

Merge head r233826 through r234834.


# 91b24c18 26-Apr-2012 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, ultimately to replace the work
currently done by /etc/rc.d/jail.

MFC after: 3 months


Revision tags: release/8.3.0_cvs, release/8.3.0
# 0c4d49e9 27-Feb-2012 Jamie Gritton <jamie@FreeBSD.org>

Use the defvs_ruleset paramater when mounting a jail's /dev,
instead of a mount.devfs.ruleset pseudo-parameter.


# 1ca35de4 09-Feb-2012 Jamie Gritton <jamie@FreeBSD.org>

Improvements in error messages:

Some errors printed the jail name for unnamed (command line) jails.

Attempting to create an already-existing jail from the command line
returned with no error (even

Improvements in error messages:

Some errors printed the jail name for unnamed (command line) jails.

Attempting to create an already-existing jail from the command line
returned with no error (even for non-root) due to bad logic in
start_state.

Ignore kvm_proc errors, which are typically caused by permission
problems. Instead, stop ignoring permission errors when removing
a jail (but continue to silently ignore other errors, i.e. the
jail no longer existing). This makes non-root attempts at removing
a jail give a clearer error message.

show more ...


Revision tags: release/9.0.0
# eadec913 06-Jul-2011 Jamie Gritton <jamie@FreeBSD.org>

Don't report errors for the exit status of processes that are killed
as part of jail removal (IP_STOP_TIMEOUT).

Note a jail as "removed" even if it wasn't jail_remove() that did
the deed, e.g. if it

Don't report errors for the exit status of processes that are killed
as part of jail removal (IP_STOP_TIMEOUT).

Note a jail as "removed" even if it wasn't jail_remove() that did
the deed, e.g. if it already went away because all its processes
were killed.

show more ...


# 60080230 22-Jun-2011 Jamie Gritton <jamie@FreeBSD.org>

Advance to the next command before running anything, so errors found in
finish_command can be processed properly.
Call failed() once in next_command() instead of multiple times in
run_command().
Co

Advance to the next command before running anything, so errors found in
finish_command can be processed properly.
Call failed() once in next_command() instead of multiple times in
run_command().
Continue processing commands when a no-wait operation (IP__OP or background
command) succeeds.

show more ...


# c6eff841 21-Jun-2011 Jamie Gritton <jamie@FreeBSD.org>

Fix a couple of NULL dereferences.


# 5fb611c2 21-Jun-2011 Jamie Gritton <jamie@FreeBSD.org>

Following r222465:

Check for IPv4 or IPv6 to be available by the kernel to not
provoke errors trying to query options not available.
Make it possible to compile out INET or INET6 only parts.


# e16fb8fb 20-Jun-2011 Jamie Gritton <jamie@FreeBSD.org>

Linty stuff.


# 2b00f7ba 18-Jun-2011 Jamie Gritton <jamie@FreeBSD.org>

Move the actual create/remove (IP__OP) handling into run_command,
and the cost of an ugly single-use global variable.


# d8352076 17-Jun-2011 Jamie Gritton <jamie@FreeBSD.org>

Update copyright dates and other whitespacey stuff.


# 3b40332c 17-Jun-2011 Jamie Gritton <jamie@FreeBSD.org>

Split run_command up into an outer function (next_command) that chooses
a single command string to run, and an inner function (run_command) that
runs that single string.
Move the list of start/stop

Split run_command up into an outer function (next_command) that chooses
a single command string to run, and an inner function (run_command) that
runs that single string.
Move the list of start/stop commands to run from a switch statement into
an array, with a new placeholder parameter IP__OP for actually creating
or removing the jail.
When jail creation fails, revert all non-exec commands in reverse order.

show more ...


# 2a194551 17-Jun-2011 Jamie Gritton <jamie@FreeBSD.org>

Change cfstrings from an STAILQ into a TAILQ to allow commands to be
traversed in reverse order.


1234