summaryrefslogtreecommitdiffstats
path: root/usr.sbin/jail/state.c
Commit message (Collapse)AuthorAgeFilesLines
* Improvements in error messages:jamie2012-02-081-6/+9
| | | | | | | | | | | | | | 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.
* Update copyright dates and other whitespacey stuff.jamie2011-06-171-1/+1
|
* Change cfstrings from an STAILQ into a TAILQ to allow commands to bejamie2011-06-171-2/+2
| | | | traversed in reverse order.
* run_command (mostly) cleanup:jamie2010-12-101-5/+5
| | | | | | | | | | | | | | | | | | Make the parallelism limit a global instead of always passing it to run_command and finish_command. In the case of an empty command string, try to run any other strings the command may have. Replace JF_BACKGROUND with its sort-of opposite JF_SLEEPQ. Change j->comstring earlier to render JF_RUNQ unncessary. Change the if-else series to a more readable switch statement. Treat IP_STOP_TIMEOUT like a command, calling run_command which then calls term_procs. When the IP_STOP_TIMEOUT "command" finishes, it shouldn't mess with the parallelism limit. Make sufficient checks in finish_command and run_command so that the nonintuitive j->comstring null check isn't necessary to run them. Rename the "waiting" queue to "depend", because the "sleeping" and "runnable" queues are also used to wait for something.
* Initial work on the new jail(8). There are more features to add, and somejamie2010-10-201-0/+466
cleaning up to do on existing features, but this is pretty much what the final product will look like.
OpenPOWER on IntegriCloud