| #
58107867
|
| 15-Jan-2026 |
Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org> |
jexec: Add -e parameter to customize the environment
Currently, to define a new environment variable or modify an existing one, we need to use env(1), which may or may not be available inside the ja
jexec: Add -e parameter to customize the environment
Currently, to define a new environment variable or modify an existing one, we need to use env(1), which may or may not be available inside the jail, especially in OCI containers created with the scratch layer (i.e., those containers that are only a single static binary, plus configuration files and related stuff). With this option, we can specify environment variables of arbitrary length for the specified process running inside the jail.
Reviewed by: jamie@ Approved by: jamie@ Differential Revision: https://reviews.freebsd.org/D54660
show more ...
|
| #
d56f3b05
|
| 05-Mar-2025 |
Jamie Gritton <jamie@FreeBSD.org> |
jail: add jexec -d, to specify a working directory PR: 283170 Submitted by: DtxdF at disroot.org
|
| #
5cf70549
|
| 12-Aug-2024 |
Jamie Gritton <jamie@FreeBSD.org> |
jail: only chdir to user's home directory when user is specified
jail(8) with the "exec.clean" parameter not only cleans the enviromnent variables before running commands, but also changes to the us
jail: only chdir to user's home directory when user is specified
jail(8) with the "exec.clean" parameter not only cleans the enviromnent variables before running commands, but also changes to the user's home directory. While this makes sense when auser is specified (via one of the exec.*_user parameters), it leads to all commands being run in the jail's /root directory even in the absence of an explicitly specified user. This can lead to problems when e.g. rc scripts are run from that non-world-readable directory, and run counter to expectations that jail startup is analogous to system startup.
Restrict this behvaiour to only users exlicitly specified, either via the command line or jail parameters, but not the implicit root user. While this changes long-stand practice, it's the more intuitive action.
jexec(8) has the same problem, and the same fix.
PR: 277210 Reported by: johannes.kunde at gmail Differential Revision: https://reviews.freebsd.org/D46226
show more ...
|
| #
04c8bfc1
|
| 07-Oct-2023 |
Danilo G. Baio <dbaio@FreeBSD.org> |
jexec.8: Add examples section
MFC after: 3 days Reviewed by: gbe, 0mp, danfe, pauamma_gundo.com Differential Revision: https://reviews.freebsd.org/D40831
|
| #
fa9896e0
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line nroff pattern
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
|
| #
7eb6a92e
|
| 19-May-2022 |
Gleb Popov <arrowd@FreeBSD.org> |
jexec man: Explain how PATH is adjusted.
Add a sentence that explains that PATH is set to `/bin:/usr/bin`. I had to dive into `jexec.c` to find this out.
Reviewed by: markj Differential Revision: h
jexec man: Explain how PATH is adjusted.
Add a sentence that explains that PATH is set to `/bin:/usr/bin`. I had to dive into `jexec.c` to find this out.
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D35251
show more ...
|
| #
58107867
|
| 15-Jan-2026 |
Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org> |
jexec: Add -e parameter to customize the environment
Currently, to define a new environment variable or modify an existing one, we need to use env(1), which may or may not be available inside the ja
jexec: Add -e parameter to customize the environment
Currently, to define a new environment variable or modify an existing one, we need to use env(1), which may or may not be available inside the jail, especially in OCI containers created with the scratch layer (i.e., those containers that are only a single static binary, plus configuration files and related stuff). With this option, we can specify environment variables of arbitrary length for the specified process running inside the jail.
Reviewed by: jamie@ Approved by: jamie@ Differential Revision: https://reviews.freebsd.org/D54660
show more ...
|
| #
d56f3b05
|
| 05-Mar-2025 |
Jamie Gritton <jamie@FreeBSD.org> |
jail: add jexec -d, to specify a working directory PR: 283170 Submitted by: DtxdF at disroot.org
|
| #
5cf70549
|
| 12-Aug-2024 |
Jamie Gritton <jamie@FreeBSD.org> |
jail: only chdir to user's home directory when user is specified
jail(8) with the "exec.clean" parameter not only cleans the enviromnent variables before running commands, but also changes to the us
jail: only chdir to user's home directory when user is specified
jail(8) with the "exec.clean" parameter not only cleans the enviromnent variables before running commands, but also changes to the user's home directory. While this makes sense when auser is specified (via one of the exec.*_user parameters), it leads to all commands being run in the jail's /root directory even in the absence of an explicitly specified user. This can lead to problems when e.g. rc scripts are run from that non-world-readable directory, and run counter to expectations that jail startup is analogous to system startup.
Restrict this behvaiour to only users exlicitly specified, either via the command line or jail parameters, but not the implicit root user. While this changes long-stand practice, it's the more intuitive action.
jexec(8) has the same problem, and the same fix.
PR: 277210 Reported by: johannes.kunde at gmail Differential Revision: https://reviews.freebsd.org/D46226
show more ...
|
| #
04c8bfc1
|
| 07-Oct-2023 |
Danilo G. Baio <dbaio@FreeBSD.org> |
jexec.8: Add examples section
MFC after: 3 days Reviewed by: gbe, 0mp, danfe, pauamma_gundo.com Differential Revision: https://reviews.freebsd.org/D40831
|
| #
fa9896e0
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line nroff pattern
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
|
| #
7eb6a92e
|
| 19-May-2022 |
Gleb Popov <arrowd@FreeBSD.org> |
jexec man: Explain how PATH is adjusted.
Add a sentence that explains that PATH is set to `/bin:/usr/bin`. I had to dive into `jexec.c` to find this out.
Reviewed by: markj Differential Revision: h
jexec man: Explain how PATH is adjusted.
Add a sentence that explains that PATH is set to `/bin:/usr/bin`. I had to dive into `jexec.c` to find this out.
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D35251
show more ...
|
| #
4209de56
|
| 23-Apr-2016 |
Benedict Reuschling <bcr@FreeBSD.org> |
Define which of the username options (-u/-U) to jexec(8) is the default. Bump Dd.
PR: 207587 Submitted by: dewayne@heuristicsystems.com.au MFC after: 3 days Sponsored by: Essen Hackathon 2016
|
| #
b5ff185e
|
| 12-Sep-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Merge from head
|
| #
ab875b71
|
| 13-Aug-2015 |
Navdeep Parhar <np@FreeBSD.org> |
Catch up with head, primarily for the 1.14.4.0 firmware.
|
| #
8d0f1085
|
| 22-Jul-2015 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r285341 through r285792.
|
| #
3bbdb8a7
|
| 12-Jul-2015 |
Jamie Gritton <jamie@FreeBSD.org> |
Run a shell in the jail when no command is specified. Add a new flag, -l, for a clean environment, same as jail(8) exec.clean. Change the GET_USER_INFO macro into a function.
PR: 201300 Submitted b
Run a shell in the jail when no command is specified. Add a new flag, -l, for a clean environment, same as jail(8) exec.clean. Change the GET_USER_INFO macro into a function.
PR: 201300 Submitted by: Willem Jan Withagen MFC after: 3 days
show more ...
|
| #
4209de56
|
| 23-Apr-2016 |
Benedict Reuschling <bcr@FreeBSD.org> |
Define which of the username options (-u/-U) to jexec(8) is the default. Bump Dd.
PR: 207587 Submitted by: dewayne@heuristicsystems.com.au MFC after: 3 days Sponsored by: Essen Hackathon 2016
|
| #
b5ff185e
|
| 12-Sep-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Merge from head
|
| #
ab875b71
|
| 13-Aug-2015 |
Navdeep Parhar <np@FreeBSD.org> |
Catch up with head, primarily for the 1.14.4.0 firmware.
|
| #
8d0f1085
|
| 22-Jul-2015 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r285341 through r285792.
|
| #
3bbdb8a7
|
| 12-Jul-2015 |
Jamie Gritton <jamie@FreeBSD.org> |
Run a shell in the jail when no command is specified. Add a new flag, -l, for a clean environment, same as jail(8) exec.clean. Change the GET_USER_INFO macro into a function.
PR: 201300 Submitted b
Run a shell in the jail when no command is specified. Add a new flag, -l, for a clean environment, same as jail(8) exec.clean. Change the GET_USER_INFO macro into a function.
PR: 201300 Submitted by: Willem Jan Withagen MFC after: 3 days
show more ...
|
| #
10b3b545
|
| 17-Sep-2009 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Merge from head
|
| #
7e857dd1
|
| 12-Jun-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
- Merge from HEAD
|
| #
73d0971b
|
| 27-May-2009 |
Jamie Gritton <jamie@FreeBSD.org> |
Add support for the arbitrary named jail parameters used by jail_set(2) and jail_get(2). Jail(8) can now create jails using a "name=value" format instead of just specifying a limited set of fixed pa
Add support for the arbitrary named jail parameters used by jail_set(2) and jail_get(2). Jail(8) can now create jails using a "name=value" format instead of just specifying a limited set of fixed parameters; it can also modify parameters of existing jails. Jls(8) can display all parameters of jails, or a specified set of parameters. The available parameters are gathered from the kernel, and not hard-coded into these programs.
Small patches on killall(1) and jexec(8) to support jail names with jail_get(2).
Approved by: bz (mentor)
show more ...
|