Page MenuHomeFreeBSD
Feed Advanced Search

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
ihor_antonovs.family added a comment to D40188: Add ".include" directive to jail.conf.

@jamie please re-generate the diff with -U9999 and re-upload it. This is necessary to have context available. (Annoying Phab limitation when diffs are uploaded manually)

May 21 2023, 12:38 AM · Jails
jamie requested review of D40188: Add ".include" directive to jail.conf.
May 21 2023, 12:15 AM · Jails

May 10 2023

crest_freebsd_rlwinm.de added a watcher for Jails: crest_freebsd_rlwinm.de.
May 10 2023, 5:31 PM

May 5 2023

jamie added a reviewer for D38826: Fix multiple rc.d/jail and jail.conf.d issues: jamie.
May 5 2023, 4:52 PM · Jails

Mar 27 2023

guest-patmaddox added inline comments to D38826: Fix multiple rc.d/jail and jail.conf.d issues.
Mar 27 2023, 2:38 AM · Jails
guest-patmaddox added a comment to D38826: Fix multiple rc.d/jail and jail.conf.d issues.

I suggest we start with a switch which enables the new solution. That means it does not break stuff for people who upgrade.

Mar 27 2023, 2:32 AM · Jails

Mar 26 2023

dvl added a comment to D38826: Fix multiple rc.d/jail and jail.conf.d issues.
In D38826#887279, @dvl wrote:

All jails.conf jail (in /etc/jail.conf, /etc/jail.*.conf and /etc/jail.conf.d/*.conf) start automatically, without the need to define them in jail_list in rc.conf

That will require an UPDATING notice.

AND: perhap a switch[es] to preserve the old behavior and if set, enable the new behavior.

What is the motivation for changing the default behavior in the first place?

I have a bunch of “utility” jails that I don’t want starting up on boot. If it does change to start all jails, there either needs to be a way to maintain old behavior with an inclusion list, or at least provide an exclusion list to prevent some jails from starting.

I prefer the current behavior with inclusion lists. You have to enable most services - starting all jails by default conflicts with that general principle. Starting all jails - with no way to exclude them - would cause a big problem for me.

Mar 26 2023, 11:43 PM · Jails
guest-patmaddox added a comment to D38826: Fix multiple rc.d/jail and jail.conf.d issues.
In D38826#887279, @dvl wrote:

All jails.conf jail (in /etc/jail.conf, /etc/jail.*.conf and /etc/jail.conf.d/*.conf) start automatically, without the need to define them in jail_list in rc.conf

That will require an UPDATING notice.

AND: perhap a switch[es] to preserve the old behavior and if set, enable the new behavior.

Mar 26 2023, 9:30 PM · Jails
guest-patmaddox removed a watcher for Jails: guest-patmaddox.
Mar 26 2023, 6:50 PM
guest-patmaddox added a watcher for Jails: guest-patmaddox.
Mar 26 2023, 11:26 AM

Mar 25 2023

ihor_antonovs.family added a member for Jails: ihor_antonovs.family.
Mar 25 2023, 12:14 AM

Mar 15 2023

imp closed D29659: jail: convert several functions from int to bool.
Mar 15 2023, 3:08 AM · Jails

Mar 11 2023

ihor_antonovs.family added a comment to D38826: Fix multiple rc.d/jail and jail.conf.d issues.

This change conflicts with https://reviews.freebsd.org/D39011
@antranigv_freebsd.am and @meka_tilda.center need to hash this out

Mar 11 2023, 6:09 PM · Jails

Mar 8 2023

dvl added a comment to D38826: Fix multiple rc.d/jail and jail.conf.d issues.

All jails.conf jail (in /etc/jail.conf, /etc/jail.*.conf and /etc/jail.conf.d/*.conf) start automatically, without the need to define them in jail_list in rc.conf

Mar 8 2023, 2:07 PM · Jails

Mar 1 2023

meka_tilda.center added a comment to D38826: Fix multiple rc.d/jail and jail.conf.d issues.

I like the overall idea, thank you for adding more conf.ds to FreeBSD!

Something I do not understand: My "dormant", cron-initiated jails will always start upon boot (i.e., /etc/jail.anotherjail.conf, while anotherjail not in jail_list)?

Regarding the code itself, wouldn't it be better to create a function, something like:

all_jail_confs()
{
	local jail_conf_locations

	jail_conf_locations="$jail_conf $jail_conf_dir/*.conf /etc/jail.*.conf"
	if [ -f "$1" ]; then
		jail_conf_locations="$1 $jail_conf_locations"
	fi

	cat $jail_conf_locations 2>/dev/null
}

And use it instead of repeating the same code in 5 places?

Mar 1 2023, 11:41 AM · Jails
jlduran_gmail.com added a comment to D38826: Fix multiple rc.d/jail and jail.conf.d issues.

I like the overall idea, thank you for adding more conf.ds to FreeBSD!

Mar 1 2023, 1:24 AM · Jails

Feb 28 2023

antranigv_freebsd.am added a reviewer for D38826: Fix multiple rc.d/jail and jail.conf.d issues: kevans.
Feb 28 2023, 9:59 PM · Jails
debdrup added a comment to D38826: Fix multiple rc.d/jail and jail.conf.d issues.

To add a bit of context from a conversation on IRC, this review is intended to make it much easier to define jail(8) variables globally at the top of jail.conf(5), you only need to instanciate the name of a jail and optionally some per-jail values.

Feb 28 2023, 7:04 PM · Jails
antranigv_freebsd.am updated the diff for D38826: Fix multiple rc.d/jail and jail.conf.d issues.
  • Remove the memo and add jail_conf_dir
Feb 28 2023, 6:54 PM · Jails
antranigv_freebsd.am updated the summary of D38826: Fix multiple rc.d/jail and jail.conf.d issues.
Feb 28 2023, 6:24 PM · Jails
antranigv_freebsd.am added a project to D38826: Fix multiple rc.d/jail and jail.conf.d issues: Jails.
Feb 28 2023, 6:22 PM · Jails

Feb 23 2023

dch added a member for Jails: dch.
Feb 23 2023, 1:41 PM

Jan 18 2023

markj added a comment to D34563: devfs.rules: Do not expose "log" in the default devfs rules..
In D34563#865612, @zlei wrote:

I think this patch also apply to stable/12.
I'd like to MFC it to stable/12, @markj do you have any objections ?

Jan 18 2023, 2:47 PM · Jails
zlei added a comment to D34563: devfs.rules: Do not expose "log" in the default devfs rules..

I think this patch also apply to stable/12.
I'd like to MFC it to stable/12, @markj do you have any objections ?

Jan 18 2023, 10:10 AM · Jails

Sep 21 2022

firk_cantconnect.ru added a comment to D34579: Verify directory fds against chroot when receiving them through SCM_RIGHTS.

I can't see how this can be used maliciously, e.g. forcing some application outside of jail to send its SCM_RIGHTS to a jail.

Sep 21 2022, 9:33 PM · network, Jails, security

Sep 8 2022

glebius added a comment to D34579: Verify directory fds against chroot when receiving them through SCM_RIGHTS.

I can't see how this can be used maliciously, e.g. forcing some application outside of jail to send its SCM_RIGHTS to a jail. Even if such case exists for a certain application, that would be bug in that application, IMHO. The initial idea of SCM_RIGHTS was actually to grant rights intentionally, so there can be a valid case for a certain application that wants to grant rights to its peer in a jail.

Sep 8 2022, 4:32 AM · network, Jails, security

Jun 21 2022

kfv_kfv.io removed a member for Jails: kfv_kfv.io.
Jun 21 2022, 11:18 AM

Jun 3 2022

firk_cantconnect.ru updated subscribers of D34579: Verify directory fds against chroot when receiving them through SCM_RIGHTS.
Jun 3 2022, 10:24 PM · network, Jails, security

May 28 2022

firk_cantconnect.ru added a comment to D34637: Allow realtime and precise accounting of cpu utilization for threads and racct-objects..

@trasz could you please say something about this?

May 28 2022, 9:21 PM · Jails

May 24 2022

markj closed D34563: devfs.rules: Do not expose "log" in the default devfs rules..
May 24 2022, 1:58 PM · Jails
markj added a comment to D34563: devfs.rules: Do not expose "log" in the default devfs rules..
In D34563#799888, @zlei.huang_gmail.com wrote:

I do not have direct access to the repository, @markj may you please commit this?

May 24 2022, 1:58 PM · Jails
zlei added a comment to D34563: devfs.rules: Do not expose "log" in the default devfs rules..

See also D35304

May 24 2022, 2:08 AM · Jails
zlei added a comment to D34563: devfs.rules: Do not expose "log" in the default devfs rules..
In D34563#799891, @me_igalic.co wrote:

Seems reasonable. I think /dev/log is legacy anyway.

does that mean i don't have to change anything about D27411 once this gets committed?

May 24 2022, 2:08 AM · Jails

May 23 2022

freebsd_igalic.co added a comment to D34563: devfs.rules: Do not expose "log" in the default devfs rules..

Seems reasonable. I think /dev/log is legacy anyway.

May 23 2022, 7:19 AM · Jails
zlei added a comment to D34563: devfs.rules: Do not expose "log" in the default devfs rules..

I do not have direct access to the repository, @markj may you please commit this?

May 23 2022, 6:58 AM · Jails

May 16 2022

jamie accepted D34563: devfs.rules: Do not expose "log" in the default devfs rules..
May 16 2022, 2:57 AM · Jails
zlei added a comment to D34563: devfs.rules: Do not expose "log" in the default devfs rules..

Ping

May 16 2022, 2:54 AM · Jails

Mar 30 2022

firk_cantconnect.ru updated the diff for D34637: Allow realtime and precise accounting of cpu utilization for threads and racct-objects..

Found a race between sys_exit() -> exit1() -> thread_exit() and sys_wait() -> proc_reap().
Slightly moving down PROC_SUNLOCK() in thread_exit() to protect RACCT_RT calculations from proc_reap() destroying p->p_racct.

Mar 30 2022, 5:29 AM · Jails

Mar 29 2022

firk_cantconnect.ru added a comment to D34579: Verify directory fds against chroot when receiving them through SCM_RIGHTS.

For example it is possible to share file descriptor tables, and one of the processes may not be encumbered by the jail.

Mar 29 2022, 2:34 PM · network, Jails, security
mjg added a comment to D34579: Verify directory fds against chroot when receiving them through SCM_RIGHTS.

I'm going to have to sleep on the approach. This is a known escape, but I don't know if the method used can fully plug it. For example it is possible to share file descriptor tables, and one of the processes may not be encumbered by the jail. As is it does solve it for processes which have no way to talk to each other apart from a partially shared fs though.

Mar 29 2022, 12:46 PM · network, Jails, security

Mar 28 2022

firk_cantconnect.ru updated subscribers of D34579: Verify directory fds against chroot when receiving them through SCM_RIGHTS.
Mar 28 2022, 9:48 PM · network, Jails, security

Mar 25 2022

allanjude added a reviewer for D34637: Allow realtime and precise accounting of cpu utilization for threads and racct-objects.: trasz.
Mar 25 2022, 1:18 PM · Jails
firk_cantconnect.ru updated the diff for D34637: Allow realtime and precise accounting of cpu utilization for threads and racct-objects..
Mar 25 2022, 8:56 AM · Jails
mjg added a comment to D34637: Allow realtime and precise accounting of cpu utilization for threads and racct-objects..

I'll prod someone time-related to have a look at the rest of the patch.

Mar 25 2022, 8:21 AM · Jails

Mar 23 2022

firk_cantconnect.ru updated the summary of D34637: Allow realtime and precise accounting of cpu utilization for threads and racct-objects..
Mar 23 2022, 11:25 PM · Jails
firk_cantconnect.ru added inline comments to D34637: Allow realtime and precise accounting of cpu utilization for threads and racct-objects..
Mar 23 2022, 11:22 PM · Jails
firk_cantconnect.ru updated the diff for D34637: Allow realtime and precise accounting of cpu utilization for threads and racct-objects..
Mar 23 2022, 11:19 PM · Jails

Mar 22 2022

mjg added a comment to D34637: Allow realtime and precise accounting of cpu utilization for threads and racct-objects..

I can't comment on time keeping, but I have some other stuff.

Mar 22 2022, 7:30 PM · Jails
firk_cantconnect.ru added a watcher for Jails: firk_cantconnect.ru.
Mar 22 2022, 5:45 PM
firk_cantconnect.ru updated the test plan for D34637: Allow realtime and precise accounting of cpu utilization for threads and racct-objects..
Mar 22 2022, 5:40 PM · Jails