https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289134
Bug ID: 289134
Summary: ifconfig -j -g not executed in Jail
Product: Base System
Version: 14.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
When using the -j flag on ifconfig with the -g flag,
the execution happens on the host not in the jail.
Expected behavior:
ifconfig -j 1 -g epair -> List the epair inside the vnet jail
Observed behavior:
ifconfig -j 1 -g epair -> Lists all epairs on the host
root@srv01:~ # ifconfig -j 1 -g epair
epair254a
epair222a
epair21a
epair20a
epair253a
epair120a
root@srv01:~ # ifconfig -g epair
epair254a
epair222a
epair21a
epair20a
epair253a
epair120a
Work around:
root@srv01:~ # jexec 1 ifconfig -g epair
epair254b
Some hint whats going on:
root@srv01:~ # truss ifconfig -j 1 -g epair 2>&1 | grep jail
open("/lib/libjail.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,04) = 3 (0x3)
root@srv01:~ # truss jexec 1 ifconfig -g epair 2>&1 | grep jail
open("/lib/libjail.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,04) = 3 (0x3)
jail_get(0x5bd7ef5b6938,0x4,0x0) = 1 (0x1)
jail_attach(0x1) = 0 (0x0)
open("/lib/libjail.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,04) = 3 (0x3)
--
You are receiving this mail because:
You are the assignee for the bug.