Page MenuHomeFreeBSD
Feed Search

Jan 15 2026

dtxdf closed D54660: jexec: Add -e parameter to customize the environment.
Jan 15 2026, 5:35 AM · Jails
jamie accepted D54660: jexec: Add -e parameter to customize the environment.
Jan 15 2026, 12:18 AM · Jails

Jan 14 2026

dtxdf added a comment to D54660: jexec: Add -e parameter to customize the environment.

Thank you!

Jan 14 2026, 7:14 PM · Jails
dtxdf updated the diff for D54660: jexec: Add -e parameter to customize the environment.
  • Use jexec_args variable with all parameters in both getopt calls.
Jan 14 2026, 7:14 PM · Jails
jamie added inline comments to D54660: jexec: Add -e parameter to customize the environment.
Jan 14 2026, 6:45 PM · Jails
dtxdf updated the diff for D54660: jexec: Add -e parameter to customize the environment.
  • Add missing error handling for putenv(3).
Jan 14 2026, 12:33 PM · Jails
dtxdf added a comment to D54660: jexec: Add -e parameter to customize the environment.

Why does it matter that putenv(3) doesn't create a copy?

Jan 14 2026, 6:05 AM · Jails
dtxdf updated the diff for D54660: jexec: Add -e parameter to customize the environment.
  • Avoid memory allocations.
  • Parse -e twice. Once to verify correctness. Again to set the variable.
Jan 14 2026, 5:57 AM · Jails
jamie added a comment to D54660: jexec: Add -e parameter to customize the environment.

Why does it matter that putenv(3) doesn't create a copy?

Jan 14 2026, 12:50 AM · Jails
dtxdf updated the diff for D54660: jexec: Add -e parameter to customize the environment.

Align putenv_copy() function declaration for consistency.

Jan 14 2026, 12:49 AM · Jails
dtxdf updated the diff for D54660: jexec: Add -e parameter to customize the environment.

Since putenv(3) does not create a copy, I had to implement a function to emulate the old behavior, so now setenv(3) is used after parsing the environment variable.

Jan 14 2026, 12:49 AM · Jails

Jan 12 2026

ziaee added a reviewer for D54660: jexec: Add -e parameter to customize the environment: manpages.
Jan 12 2026, 12:20 PM · Jails
zlei added a reviewer for D54660: jexec: Add -e parameter to customize the environment: Jails.
Jan 12 2026, 6:50 AM · Jails

Jan 11 2026

dtxdf requested review of D54660: jexec: Add -e parameter to customize the environment.
Jan 11 2026, 10:59 PM · Jails

Dec 29 2025

aregvardanyan17_gmail.com added a watcher for Jails: aregvardanyan17_gmail.com.
Dec 29 2025, 1:56 PM

Aug 26 2025

jamie requested changes to D46284: Add the ability have executable jail.conf.
Aug 26 2025, 8:14 PM · Jails

Aug 12 2025

jamie accepted D46284: Add the ability have executable jail.conf.
Aug 12 2025, 5:06 PM · Jails

Jul 22 2025

crest_freebsd_rlwinm.de updated the diff for D46284: Add the ability have executable jail.conf.

Document new -x flag in jail(8).

Jul 22 2025, 8:12 PM · Jails
crest_freebsd_rlwinm.de updated the diff for D46284: Add the ability have executable jail.conf.
Jul 22 2025, 8:10 PM · Jails

Jul 17 2025

jamie accepted D46284: Add the ability have executable jail.conf.

I had considered that the -l (exec clean) flag should be considered, but decided it really only makes sense for keeping the jail environment clean.

Jul 17 2025, 3:50 PM · Jails

Jul 12 2025

crest_freebsd_rlwinm.de updated the diff for D46284: Add the ability have executable jail.conf.

Put the executable jail.conf(5) behind the -x option (as chicken bit).

Jul 12 2025, 11:55 AM · Jails

Feb 27 2025

dave_freedave.net added a comment to D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).

I vastly under appreciated that folks rely upon the ng_eiface not moving with the struct ifnet. Probably because I've been using them in jails for over a decade and only recently noticed myself.

Feb 27 2025, 8:34 PM · Jails, network
glebius added a comment to D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).
In D49158#1121374, @zec wrote:

Your obsession with getting rid of the "flawed" if_vmove() is noted, but for the sake of other people who may have a different view, and who have applications relying on this very concept for 20+ years, please do not take that route.

Feb 27 2025, 7:38 PM · Jails, network
zec added a comment to D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).

I do not like the plan. The picture drawn shows that a netgraph node in one vnet is connected to a node in a different vnet. This is basically a violation of the idea of vnet. Virtualized stacks should communicate with each other via network protocols, not kernel pointers. The only legal exclusion is epair(4).

Feb 27 2025, 7:13 PM · Jails, network
dave_freedave.net abandoned D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).

I think I'll just accept my understanding is flawed now to save time and withdraw this. Thank you.

Feb 27 2025, 6:32 PM · Jails, network
glebius requested changes to D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).

I do not like the plan. The picture drawn shows that a netgraph node in one vnet is connected to a node in a different vnet. This is basically a violation of the idea of vnet. Virtualized stacks should communicate with each other via network protocols, not kernel pointers. The only legal exclusion is epair(4). You may create a new netgraph node for your purpose - a node that is present in two vnets, that would be a second legal exclusion to the virtualization rule.

Feb 27 2025, 6:22 PM · Jails, network
zec added a comment to D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).

By design, moving an eiface ifnet from one vnet to another always implied that its netgraph node will remain attached in the parent vnet. This is not an omission or a mistake, but a well established mode of operation on which certain applications heavily depend on, and which this patch proposes to change, for reasons not clearly stated.

Feb 27 2025, 6:14 PM · Jails, network
dave_freedave.net updated the test plan for D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).
Feb 27 2025, 5:25 PM · Jails, network
dave_freedave.net requested review of D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).
Feb 27 2025, 4:56 PM · Jails, network

Nov 19 2024

markj closed D47651: jail: Let a couple of parameter types be specified as lists.
Nov 19 2024, 9:19 PM · manpages, Jails

Nov 18 2024

jamie accepted D47651: jail: Let a couple of parameter types be specified as lists.

Not really part of this specific problem, but jail(8) should auto-recognize list parameters because their SYSCTL_JAIL specification has a type with ",a" appended. Ideally, it would build a list of such parameters it sees like that. For non-kernel parameters like vnet.interface and zfs.dataset, putting them in the array is probably as good as its going to get.

Nov 18 2024, 9:29 PM · manpages, Jails
zlei accepted D47651: jail: Let a couple of parameter types be specified as lists.

Looks good to me.

Nov 18 2024, 4:55 PM · manpages, Jails
zlei added a comment to D47651: jail: Let a couple of parameter types be specified as lists.

The tests looks good. I need some time to read the code carefully ...

Nov 18 2024, 3:19 AM · manpages, Jails
ziaee added projects to D47651: jail: Let a couple of parameter types be specified as lists: Jails, manpages.

Manpage LGTM

Nov 18 2024, 12:57 AM · manpages, Jails

Oct 29 2024

igoro added a member for Jails: igoro.
Oct 29 2024, 6:07 PM

Oct 16 2024

jamie added a comment to D46284: Add the ability have executable jail.conf.

It would make sense for the exec.clean parameter to apply to the config execution. Bit of a chicken and egg problem there, but there's still the "-l" flag.

Oct 16 2024, 2:56 AM · Jails

Aug 14 2024

crest_freebsd_rlwinm.de updated the diff for D46284: Add the ability have executable jail.conf.

Address style feedback.

Aug 14 2024, 1:29 PM · Jails
crest_freebsd_rlwinm.de added inline comments to D46284: Add the ability have executable jail.conf.
Aug 14 2024, 1:23 PM · Jails

Aug 13 2024

crest_freebsd_rlwinm.de added a comment to D46284: Add the ability have executable jail.conf.

Using this /etc/jail.conf:

.include "/usr/local/etc/jail[.]conf";
.include "/etc/jail.d/*.conf";
.include "/usr/local/etc/jail.d/*.conf";
Aug 13 2024, 9:18 PM · Jails
kevans added a comment to D46284: Add the ability have executable jail.conf.

I'm a little torn on the idea itself, but here's some review

Aug 13 2024, 7:54 PM · Jails
crest_freebsd_rlwinm.de requested review of D46284: Add the ability have executable jail.conf.
Aug 13 2024, 7:34 PM · Jails

Jun 24 2024

jamie closed D45647: Document and subtlely change the zfs.mount_snapshot jail parameter.
Jun 24 2024, 8:03 PM · Jails, ZFS

Jun 21 2024

jamie added a comment to D45647: Document and subtlely change the zfs.mount_snapshot jail parameter.

I guess the change for sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c go to upstream first. Will it ?

Jun 21 2024, 5:05 PM · Jails, ZFS

Jun 20 2024

zlei added a comment to D45647: Document and subtlely change the zfs.mount_snapshot jail parameter.

I guess the change for sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c go to upstream first. Will it ?

Jun 20 2024, 9:31 AM · Jails, ZFS
avg accepted D45647: Document and subtlely change the zfs.mount_snapshot jail parameter.

I would subtly change the title :-)
Otherwise, looks good to me.

Jun 20 2024, 4:57 AM · Jails, ZFS

Jun 19 2024

jamie requested review of D45647: Document and subtlely change the zfs.mount_snapshot jail parameter.
Jun 19 2024, 8:04 PM · Jails, ZFS

May 22 2024

yan.jurak_gmail.com removed a watcher for Jails: yan.jurak_gmail.com.
May 22 2024, 9:10 PM
netchild closed D40371: automatic service jails: some setup for full functionality of the services in automatic service jails.
May 22 2024, 1:42 PM · rc, Jails
netchild closed D40370: Infrastructure for automatic jailing of rc.d-services.
May 22 2024, 1:42 PM · rc, Jails

May 20 2024

yan.jurak_gmail.com added a watcher for Jails: yan.jurak_gmail.com.
May 20 2024, 10:14 PM

Jan 11 2024

bcr accepted D40370: Infrastructure for automatic jailing of rc.d-services.

OK for the man page change. Make sure to bump the .Dd when you commit it for this content change.
Thanks for working on this, it's appreciated!

Jan 11 2024, 1:20 PM · rc, Jails
netchild updated the diff for D40371: automatic service jails: some setup for full functionality of the services in automatic service jails.
  • make some scripts compatible with svcj (convert parts of the precmd into another way of settings variables), precmd is not run inside the same shell/jail = make it work with svcj
  • add some support for nfs in svcj, not yet finished (precmd is not comaptible)
  • exclude some scripts from svcj due to an incompatible precmd (not run in same shell/jail)
Jan 11 2024, 11:15 AM · rc, Jails
netchild updated the diff for D40370: Infrastructure for automatic jailing of rc.d-services.

Make jls quiet.

Jan 11 2024, 11:11 AM · rc, Jails

Nov 28 2023

netchild updated the summary of D40370: Infrastructure for automatic jailing of rc.d-services.
Nov 28 2023, 7:44 PM · rc, Jails

Nov 24 2023

netchild added a comment to D40371: automatic service jails: some setup for full functionality of the services in automatic service jails.

Only rc.d/opensm is missing.

Nov 24 2023, 11:40 AM · rc, Jails
netchild updated the diff for D40371: automatic service jails: some setup for full functionality of the services in automatic service jails.
Nov 24 2023, 11:38 AM · rc, Jails

Nov 16 2023

netchild updated the diff for D40370: Infrastructure for automatic jailing of rc.d-services.

Add support for nfs. Sort the options.

Nov 16 2023, 10:09 AM · rc, Jails
netchild updated the diff for D40371: automatic service jails: some setup for full functionality of the services in automatic service jails.

Add config for some more services.

Nov 16 2023, 10:08 AM · rc, Jails

Nov 10 2023

netchild updated the diff for D40370: Infrastructure for automatic jailing of rc.d-services.

Change what was noticed in comments. Add a feature to enable the execution of extra commands inside the service jail.

Nov 10 2023, 11:34 AM · rc, Jails

Oct 16 2023

emaste added a comment to D40188: Add ".include" directive to jail.conf.

Commited in eb5bfdd06565. I forgot to add the review to the commit message :-/

Oct 16 2023, 1:59 PM · Jails
antranigv_freebsd.am closed D40188: Add ".include" directive to jail.conf.

Oh and we also have to close it, because it did land! ugh Phabricator is very Project-Management-y :)

Oct 16 2023, 12:30 PM · Jails
antranigv_freebsd.am accepted D40188: Add ".include" directive to jail.conf.

Commited in eb5bfdd06565. I forgot to add the review to the commit message :-/

Oct 16 2023, 12:28 PM · Jails
antranigv_freebsd.am abandoned D38826: Fix multiple rc.d/jail and jail.conf.d issues.

IMHO this is superseded by https://reviews.freebsd.org/D40188

Oct 16 2023, 12:27 PM · Jails

Oct 5 2023

bcr added a comment to D40370: Infrastructure for automatic jailing of rc.d-services.

Two fixes for the man page.

Oct 5 2023, 10:20 AM · rc, Jails

Sep 21 2023

mohammad_fbsdphab_thelightbird.com added a member for Jails: mohammad_fbsdphab_thelightbird.com.
Sep 21 2023, 3:09 PM
mohammad_fbsdphab_thelightbird.com added a watcher for Jails: mohammad_fbsdphab_thelightbird.com.
Sep 21 2023, 3:09 PM

Sep 15 2023

markj added a comment to D40262: Allow setting a per-Jail fallback ABI brand..

The overall idea seems ok to me for what it's worth, my comments are about cosmetic issues.

Sep 15 2023, 3:12 PM · Jails

Jul 11 2023

allanjude added a reviewer for D40262: Allow setting a per-Jail fallback ABI brand.: rew.
Jul 11 2023, 11:42 PM · Jails

Jun 19 2023

netchild closed D40369: Extend /usr/bin/service with the possibility to set ENV vars.
Jun 19 2023, 5:46 PM · Jails

Jun 15 2023

netchild added inline comments to D40370: Infrastructure for automatic jailing of rc.d-services.
Jun 15 2023, 7:46 AM · rc, Jails

Jun 14 2023

se accepted D40369: Extend /usr/bin/service with the possibility to set ENV vars.

My comments have been addressed and I think it makes sense to go ahead with the proposed patches.

Jun 14 2023, 10:54 AM · Jails

Jun 13 2023

crest_freebsd_rlwinm.de added a comment to D40377: Teach route(8) to run in jails.

The jail_name variable must be initialised to NULL. This should be done through an explicit char * jail_name = NULL; in line 101 of route.c.

Static storage are always initialized to 0/NULL by C standard.

Jun 13 2023, 1:15 PM · Jails
melifaro closed D40377: Teach route(8) to run in jails.
Jun 13 2023, 6:08 AM · Jails

Jun 12 2023

nyan_myuji.xyz added a comment to D40377: Teach route(8) to run in jails.

The jail_name variable must be initialised to NULL. This should be done through an explicit char * jail_name = NULL; in line 101 of route.c.

Jun 12 2023, 3:50 PM · Jails
crest_freebsd_rlwinm.de requested changes to D40377: Teach route(8) to run in jails.

The jail_name variable must be initialised to NULL. This should be done through an explicit char * jail_name = NULL; in line 101 of route.c.

Jun 12 2023, 2:53 PM · Jails
crest_freebsd_rlwinm.de accepted D40377: Teach route(8) to run in jails.
Jun 12 2023, 2:49 PM · Jails

Jun 9 2023

netchild added inline comments to D40370: Infrastructure for automatic jailing of rc.d-services.
Jun 9 2023, 8:25 AM · rc, Jails

Jun 7 2023

jamie accepted D40188: Add ".include" directive to jail.conf.

Commited in eb5bfdd06565. I forgot to add the review to the commit message :-/

Jun 7 2023, 12:23 AM · Jails

Jun 6 2023

netchild added a project to D40370: Infrastructure for automatic jailing of rc.d-services: rc.
Jun 6 2023, 8:30 AM · rc, Jails
netchild added a project to D40371: automatic service jails: some setup for full functionality of the services in automatic service jails: rc.
Jun 6 2023, 8:29 AM · rc, Jails
netchild added a member for Jails: netchild.
Jun 6 2023, 8:26 AM
netchild added a watcher for Jails: netchild.
Jun 6 2023, 8:17 AM

Jun 5 2023

ihor_antonovs.family added a project to D40371: automatic service jails: some setup for full functionality of the services in automatic service jails: Jails.
Jun 5 2023, 2:55 PM · rc, Jails
ihor_antonovs.family added a project to D40370: Infrastructure for automatic jailing of rc.d-services: Jails.
Jun 5 2023, 2:55 PM · rc, Jails
ihor_antonovs.family added a project to D40369: Extend /usr/bin/service with the possibility to set ENV vars: Jails.
Jun 5 2023, 2:54 PM · Jails

Jun 4 2023

ihor_antonovs.family added a project to D40262: Allow setting a per-Jail fallback ABI brand.: Jails.
Jun 4 2023, 2:00 PM · Jails
ihor_antonovs.family added a project to D40377: Teach route(8) to run in jails: Jails.
Jun 4 2023, 1:59 PM · Jails
jamie updated the diff for D40188: Add ".include" directive to jail.conf.

I've committed the "jails can include jails" and "use the recursive parser" bits separately. This new diff is just the part that handles the includes.

Jun 4 2023, 4:29 AM · Jails
ihor_antonovs.family resigned from D38826: Fix multiple rc.d/jail and jail.conf.d issues.

IMHO this is superseded by https://reviews.freebsd.org/D40188

Jun 4 2023, 12:34 AM · Jails

Jun 1 2023

jamie added a comment to D40188: Add ".include" directive to jail.conf.

Just a small nitpick: I would prefer a macro #define MAX_INCLUDE_DEPTH 32

Jun 1 2023, 2:59 PM · Jails
crest_freebsd_rlwinm.de added a comment to D40188: Add ".include" directive to jail.conf.

Just a small nitpick: I would prefer a macro #define MAX_INCLUDE_DEPTH 32 or constant static const unsigned int max_include_depth = 32; somewhere above the include_config() in config.c instead of the literal to improve readability.

Jun 1 2023, 11:49 AM · Jails

May 31 2023

jamie updated the diff for D40188: Add ".include" directive to jail.conf.

Simple include-loop prevention with via a maximum depth counter.

May 31 2023, 7:05 PM · Jails

May 23 2023

jamie added a comment to D40188: Add ".include" directive to jail.conf.

True, they're not handled. I took my include inspiration from newsyslog (which has includes that also support globbing), and there it's also just a simple matter or running whatever it's told to include. It's kind of a footgun situation, where it's generally good enough to trust the administrator not to make such a loop. I did it for depend loops, but only because that's kind of elemental in building an acyclic directed graph.

May 23 2023, 3:45 AM · Jails
ihor_antonovs.family added a comment to D40188: Add ".include" directive to jail.conf.

It doesn't look like the patch in it's current state handles this circular includes.

May 23 2023, 1:04 AM · Jails
ihor_antonovs.family added a comment to D40188: Add ".include" directive to jail.conf.
In D40188#915660, @dvl wrote:
In D40188#915159, @otis wrote:

Haven't looked closely yet, but: are circular includes handled correctly?

This is what I came here to ask.

May 23 2023, 1:00 AM · Jails

May 22 2023

dvl added a comment to D40188: Add ".include" directive to jail.conf.
In D40188#915159, @otis wrote:

Haven't looked closely yet, but: are circular includes handled correctly?

May 22 2023, 11:03 PM · Jails
otis added a comment to D40188: Add ".include" directive to jail.conf.

Haven't looked closely yet, but: are circular includes handled correctly?

May 22 2023, 11:12 AM · Jails

May 21 2023

meka_tilda.center added a comment to D40188: Add ".include" directive to jail.conf.

I you use git format-patch -1 -U9999 and apply it with git am <patch>, you get the whole commit with the message. Not strictly needed, but makes life easier.

May 21 2023, 7:49 AM · Jails
ihor_antonovs.family added a comment to D40188: Add ".include" directive to jail.conf.

I like this approach.
It blurs the line between UCL and jail format (IMHO making future transition to UCL smoother), and makes include more explicit (and less magical comparing to D40188)

May 21 2023, 1:01 AM · Jails
jamie updated the diff for D40188: Add ".include" directive to jail.conf.

New and improved diff :-)

May 21 2023, 12:46 AM · Jails