#
48c738b0 |
| 19-Nov-2024 |
Mark Johnston <markj@FreeBSD.org> |
jail: Let a couple of parameter types be specified as lists
vnet.interface and zfs.dataset can be used to specify multiple interfaces/datasets in jail.conf, but not on the command-line, which is a b
jail: Let a couple of parameter types be specified as lists
vnet.interface and zfs.dataset can be used to specify multiple interfaces/datasets in jail.conf, but not on the command-line, which is a bit surprising. Extend the handling of ip(4|6).addr to those parameters, update the description of vnet.interface in jail.8, and add a rudimentary regression test.
Reviewed by: zlei, jamie MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47651
show more ...
|
Revision tags: release/13.4.0, release/14.1.0 |
|
#
d50685b3 |
| 17-Mar-2024 |
Jamie Gritton <jamie@FreeBSD.org> |
jail: add the -C flag to clean up after a partially removed jail
Differential Revision: https://reviews.freebsd.org/D42670
|
#
83550d02 |
| 04-Mar-2024 |
Hartmut Brandt <harti@FreeBSD.org> |
Add a missing space in a warning.
|
Revision tags: release/13.3.0 |
|
#
e0dfe185 |
| 17-Jan-2024 |
Alexander Leidinger <netchild@FreeBSD.org> |
jail(8): add support for ZFS datasets
Add zfs.dataset to jail(8) to add a list of ZFS datasets. Bump FreeBSD version for jail managers to switch to native dataset support.
Datasets are attached to
jail(8): add support for ZFS datasets
Add zfs.dataset to jail(8) to add a list of ZFS datasets. Bump FreeBSD version for jail managers to switch to native dataset support.
Datasets are attached to the jail after the jail creation and before the execution of any start command. Unlike current implementations in jail managers which attach datasets after the start command, this allows the zfs rc.d script to mount the datasets on start.
Discussed with: jamie
show more ...
|
#
51e72763 |
| 30-Nov-2023 |
Jamie Gritton <jamie@FreeBSD.org> |
Unbreak build from ed31b3f4a146 (misapplied diff).
Differential Revision: <https://reviews.freebsd.org/D28150
|
#
ed31b3f4 |
| 30-Nov-2023 |
Jamie Gritton <jamie@FreeBSD.org> |
jail: Don't allow jail_set(2) to resurrect dying jails.
Currently, a prison in "dying" state (removed but still holding resources) can be brought back to alive state via "jail -d", or the JAIL_DYING
jail: Don't allow jail_set(2) to resurrect dying jails.
Currently, a prison in "dying" state (removed but still holding resources) can be brought back to alive state via "jail -d", or the JAIL_DYING flag to jail_set(2). This seemed like a good idea at the time.
Its main use was to improve support for specifying the jid when creating a jail, which also seemed like a good idea at the time. But resurrecting a jail that was partway through thr process of shutting down is trouble waiting to happen.
This patch deprecates that flag, leaving it as a no-op for creating jails (but still useful for looking at dying jails). It sill allows creating a new jail with the same jid as a dying one, but will renumber the old one in that case. That's imperfect, but allows for current behavior.
Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D28150
show more ...
|
#
4d65a7c6 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
usr.sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
#
6000d46f |
| 18-Nov-2023 |
Jamie Gritton <jamie@FreeBSD.org> |
Move "jail -e" out of the rest of jail(8) flow.
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
a9cce232 |
| 07-Jul-2023 |
Alfonso Gregory <gfunni234@gmail.com> |
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dea
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
show more ...
|
#
086e0149 |
| 04-Jun-2023 |
Jamie Gritton <jamie@FreeBSD.org> |
jail: Use re-entrant versions of lex & yacc, and lex's yylineno
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0 |
|
#
8f154378 |
| 26-Mar-2022 |
Jamie Gritton <jamie@FreeBSD.org> |
jail: handle jailsys parameters in modification permission test
Avoid a null dereference when a value-less jailsys parameter is passed to "jail -m". There was already code to handle boolean paramet
jail: handle jailsys parameters in modification permission test
Avoid a null dereference when a value-less jailsys parameter is passed to "jail -m". There was already code to handle boolean parameters, but in reality any parameter could be passed without a value.
show more ...
|
Revision tags: release/12.3.0, release/13.0.0 |
|
#
8c1d956f |
| 04-Apr-2021 |
Jamie Gritton <jamie@FreeBSD.org> |
jail: fix jail(8) synposis and usage message to match reality.
Reported by: yuri PR: 254741 MFC after: 5 days
|
Revision tags: release/12.2.0, release/11.4.0 |
|
#
66005c45 |
| 15-May-2020 |
Ryan Moeller <freqlabs@FreeBSD.org> |
jail: Add exec.prepare and exec.release command hooks
This change introduces new jail command hooks that run before and after any other actions.
The exec.prepare hook can be used for example to inv
jail: Add exec.prepare and exec.release command hooks
This change introduces new jail command hooks that run before and after any other actions.
The exec.prepare hook can be used for example to invoke a script that checks if the jail's root exists, creating it if it does not. Since arbitrary variables in jail.conf can be passed to the command, it can be pretty useful for templating jails.
An example use case for exec.release would be to remove the filesystem of an ephemeral jail.
The names "prepare" and "release" are borrowed from the names of similar hooks in libvirt.
Reviewed by: jamie, manpages, mmacy Approved by: mmacy (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D24829
show more ...
|
#
4e49fbcd |
| 17-Apr-2020 |
Eugene Grosbein <eugen@FreeBSD.org> |
jail(8): improve manual and usage information with more clear description for "jail -e" mode to show that it does not take additional jail name argument.
Reported by: David Marec <david.marec@daven
jail(8): improve manual and usage information with more clear description for "jail -e" mode to show that it does not take additional jail name argument.
Reported by: David Marec <david.marec@davenulle.org> MFC after: 3 days
show more ...
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0 |
|
#
9b5cb2f6 |
| 12-Nov-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r340235 through r340367.
|
#
1e1a4743 |
| 10-Nov-2018 |
Eugene Grosbein <eugen@FreeBSD.org> |
jail(8): introduce new command option -e to exhibit a list of configured non-wildcard jails with their parameters, no matter running or not.
The option -e takes separator argument that is used to se
jail(8): introduce new command option -e to exhibit a list of configured non-wildcard jails with their parameters, no matter running or not.
The option -e takes separator argument that is used to separate printed parameters. It will be used with following additions to system periodic scripts to differentiate parts of directory tree belonging jails as opposed to host's.
MFC after: 1 month
show more ...
|
#
3611ec60 |
| 18-Aug-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r337646 through r338014.
|
#
07ebf3dd |
| 16-Aug-2018 |
Jamie Gritton <jamie@FreeBSD.org> |
security.jail.enforce_statfs is handled by jail_set(2), so handling it in userspace jail(8) is redundant.
Differential Revision: D14791
|
#
92bceb97 |
| 15-Aug-2018 |
Jamie Gritton <jamie@FreeBSD.org> |
Don't let clobber jailparam values when checking for modification of init-only parameters.
Compare string parameter values with strncmp, not memcmp.
PR: 230487 Reported by: Jason Mader MFC after:
Don't let clobber jailparam values when checking for modification of init-only parameters.
Compare string parameter values with strncmp, not memcmp.
PR: 230487 Reported by: Jason Mader MFC after: 3 days
show more ...
|
#
f6c0e63b |
| 15-Aug-2018 |
Alexander Leidinger <netchild@FreeBSD.org> |
- 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
- 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]
show more ...
|
Revision tags: release/11.2.0 |
|
#
1de7b4b8 |
| 27-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended.
show more ...
|
#
55b1c6e7 |
| 15-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325663 through r325841.
|
#
72130735 |
| 10-Nov-2017 |
Ed Maste <emaste@FreeBSD.org> |
Strip EOL whitespace in usr.sbin/{jail,jexec}
|