From 0a232dd140757e927089e814ae58bf63d1ee9718 Mon Sep 17 00:00:00 2001 From: Rob Arnold Date: Sun, 14 Nov 2021 19:49:08 -0800 Subject: [PATCH] Add a description to the host vnet interface This makes it much easier to understand `ifconfig` when run on the jail host. Not sure how to test this, but manually appyling this via `bastille edit` to an existing vnet jail had the right effects when I restarted the jail. --- usr/local/share/bastille/create.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index c9d9cd58..442f175d 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -212,6 +212,7 @@ ${NAME} { vnet; vnet.interface = e0b_${uniq_epair}; exec.prestart += "jib addm ${uniq_epair} ${bastille_jail_conf_interface}"; + exec.prestart += "ifconfig e0a_${uniq_epair} description \"vnet host interface for Bastille jail ${NAME}""; exec.poststop += "jib destroy ${uniq_epair}"; } EOF