limits: Allow showing activee rules

This commit is contained in:
tschettervictor
2025-03-22 20:02:53 -06:00
committed by GitHub
parent 9d235fa1a4
commit 97db520d65

View File

@@ -114,10 +114,14 @@ for _jail in ${JAILS}; do
info "[${TARGET}]: RCTL limits cleared." info "[${TARGET}]: RCTL limits cleared."
fi fi
;; ;;
show) list|show)
# Show limits # Show limits
if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then
rctl jail:${_jail} 2>/dev/null if [ "${VALUE}" = "active" ]; then
rctl jail:${_jail} 2>/dev/null
else
cat "${bastille_jailsdir}/${_jail}/rctl.conf"
fi
fi fi
;; ;;
stats) stats)