bin/32828: [jail] w(1) incorrectly handles stale utmp slots with jail

Ed Schouten ed at 80386.nl
Sat Nov 17 16:31:55 UTC 2012


Hello Eitan,

2012/11/17 Eitan Adler <lists at eitanadler.com>:
> Was the fix MFCed?

Well, yes and no. There are actually three separate changes here:

1. The visibility of pseudo-terminals. On FreeBSD 8 and later,
pseudo-terminals are only shown in devfs if they belong to your jail
or one of its descendants.
2. If you set cleanvar_enable="YES" your utx.active file will already
be discarded on startup, meaning any stale entries won't survive a
reboot.
3. r231534 moves the unconditional initialisation of utx.active with a
BOOT_TIME entry out of init(8) into an rc script, so you don't need
cleanvar_enable="YES".

I'm not planning on MFCing the latter, as FreeBSD 9's utmpx does not
write BOOT_TIME entries in utx.active to begin with, so merging back
r231534 is useless. Given the fact that the first two changes already
effectively fix this issue, I consider this bug fixed.

-- 
Ed Schouten <ed at 80386.nl>


More information about the freebsd-jail mailing list