From f974e61bd04ee5dee0a5d7d0f64d5187f1689109 Mon Sep 17 00:00:00 2001 From: Mark <1515135+MarkKoz@users.noreply.github.com> Date: Sat, 4 Jun 2022 17:46:07 -0700 Subject: Remove nsjail log blacklist The blacklisted error no longer appears with the default config since the uid and gid are set. --- snekbox/nsjail.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/snekbox/nsjail.py b/snekbox/nsjail.py index a6b202e..1f99501 100644 --- a/snekbox/nsjail.py +++ b/snekbox/nsjail.py @@ -21,7 +21,6 @@ log = logging.getLogger(__name__) LOG_PATTERN = re.compile( r"\[(?P(I)|[DWEF])\]\[.+?\](?(2)|(?P\[\d+\] .+?:\d+ )) ?(?P.+)" ) -LOG_BLACKLIST = ("Process will be ",) NSJAIL_PATH = os.getenv("NSJAIL_PATH", "/usr/sbin/nsjail") NSJAIL_CFG = os.getenv("NSJAIL_CFG", "./config/snekbox.cfg") @@ -79,10 +78,6 @@ class NsJail: continue msg = match["msg"] - if not DEBUG and any(msg.startswith(s) for s in LOG_BLACKLIST): - # Skip blacklisted messages if not debugging. - continue - if DEBUG and match["func"]: # Prepend PID, function signature, and line number if debugging. msg = f"{match['func']}{msg}" -- cgit v1.2.3