From 97db520d65d8bf950e6ae08305b203afc308bc49 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sat, 22 Mar 2025 20:02:53 -0600 Subject: [PATCH] limits: Allow showing activee rules --- usr/local/share/bastille/limits.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/limits.sh b/usr/local/share/bastille/limits.sh index 8b639aa8..8b853925 100644 --- a/usr/local/share/bastille/limits.sh +++ b/usr/local/share/bastille/limits.sh @@ -114,10 +114,14 @@ for _jail in ${JAILS}; do info "[${TARGET}]: RCTL limits cleared." fi ;; - show) + list|show) # Show limits 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 ;; stats)