Page MenuHomeFreeBSD

jexec: Add -e parameter to customize the environment
Needs ReviewPublic

Authored by dtxdf on Sun, Jan 11, 10:59 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

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.

Examples:

This also fixes:

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped