summaryrefslogtreecommitdiffstats
path: root/usr.sbin/jail/config.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r269522smh2014-08-111-1/+11
| | | | | | | | | | | | Added support for extra ifconfig args to jail ip4.addr & ip6.addr params This allows for CARP interfaces to be used in jails e.g. ip4.addr = "em0|10.10.1.20/32 vhid 1 pass MyPass advskew 100" r269340 will not be MFC'ed as mentioned due to the slim window and the amount of additional commits required to support it. Sponsored by: Multiplay
* MFC 256385:hrs2013-10-121-0/+1
| | | | | | | | | | | - Add mount.fdescfs parameter to jail(8). This is similar to mount.devfs but mounts fdescfs. The mount happens just after mount.devfs. - rc.d/jail now displays whole error message from jail(8) when a jail fails to start. Approved by: re (gjb)
* Reverse the order of some implicit commands (FS mounts and ifconfigs)jamie2013-03-281-4/+4
| | | | | | | | | when stopping jails. This matters particularly for nested filesystem mounts. PR: kern/177325 Submitted by: Harald Schmalzbauer MFC after: 3 days
* Move properly to the next parameter when jailparam_init failsjamie2012-10-041-0/+1
| | | | (i.e. on an unknown parameter), to avoid freeing bogus pointers.
* Partially roll back r239601 - keep parameter strings both length-delimitedjamie2012-08-231-4/+5
| | | | | | | | and null-terminated at the same time, because they're later passed to libjail as null-terminated. That means I also need to add a nul byte when comma-combining array parameters. MFC after: 6 days
* Remember that I'm using length-defined strings in parameters:jamie2012-08-231-5/+3
| | | | | | | | | | | Remove a bogus null terminator when stripping the netmask from IP addresses. This was causing later addresses in a comma-separated string to disappear. Use memcpy instead of strcpy. This could just cause Bad Things. PR: 170832 MFC after: 1 week
* Fix world after byacc import:bapt2012-05-221-0/+2
| | | | | | | | - old yacc(1) use to magicially append stdlib.h, while new one don't - new yacc(1) do declare yyparse by itself, fix redundant declaration of 'yyparse' Approved by: des (mentor)
* Add a meta-parameter IP__NULL to enum intparam, instead of mixingjamie2012-05-031-4/+4
| | | | | | enum values and zeroes. This keeps clang happy (and is just good form). Submitted by: dim
* Use the defvs_ruleset paramater when mounting a jail's /dev,jamie2012-02-271-1/+1
| | | | instead of a mount.devfs.ruleset pseudo-parameter.
* Following r222465:jamie2011-06-201-49/+72
| | | | | | 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.
* Linty stuff.jamie2011-06-201-2/+1
|
* Update copyright dates and other whitespacey stuff.jamie2011-06-171-1/+1
|
* Split run_command up into an outer function (next_command) that choosesjamie2011-06-171-0/+1
| | | | | | | | | 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.
* Change cfstrings from an STAILQ into a TAILQ to allow commands to bejamie2011-06-171-33/+32
| | | | traversed in reverse order.
* Reads the mount.fstab file, and put its lines separately into thejamie2010-11-041-2/+39
| | | | IP__MOUNT_FROM_FSTAB internal parameter.
* Combine check_intparams() and ip_params(), JF_CHECKINT and JF_IPPARAMS.jamie2010-11-011-48/+41
|
* Use a little more "ifdef INET6".jamie2010-10-271-6/+16
|
* Keep all internal/known parameter names in one place, and usejamie2010-10-271-117/+100
| | | | enum constants everywhere else.
* Initial work on the new jail(8). There are more features to add, and somejamie2010-10-201-0/+786
cleaning up to do on existing features, but this is pretty much what the final product will look like.
OpenPOWER on IntegriCloud