Created attachment 213385 [details]
Patch jailaudit to support VNET jails
jailaudit depends on parsing the output of jls based on positional parameters.
Unfortunately this falls apart with VNET jails, as they don't have an IP address perceivable by the host system.
This patch fixes this by changing the invocation of jls so that required parameters are passed explicitly to the command (jid, host.hostname, path).
I checked the man pages of jls(8), in theory this should work at least all the way back to 8.4-RELEASE (assuming the name of params in the kernel didn't change).
A commit references this bug:
Date: Mon May 4 14:17:28 UTC 2020
New revision: 533926
Fix VNET jails (and IP-less jails in general)
Approved by: maintainer timeout
Thanks for the patch, but I as the maintainer never got assigned the ticket and then the patch was approved by "maintainer timeout"?!
(In reply to cryx-freebsd from comment #2)
Sorry, that was my mistake.
I used the wrong category (I somewhat *always* think, jailaudit lives in security and not in ports-mgmt).
I'm correcting this now, apologies for calling a maintainer timeout when you had no chance of reacting.