Don't report .pyc file writes in sandbox logs

These are never fatal and often confusing.

Fixes #683.
This commit is contained in:
Tim D. Smith 2016-08-11 00:22:18 -07:00
parent 4111d29c81
commit 2aad3e052a

View File

@ -95,6 +95,10 @@ class Sandbox
-k Sender sandboxd
]
logs = Utils.popen_read("syslog", *syslog_args)
# These messages are confusing and non-fatal, so don't report them.
logs = logs.lines.reject{ |l| l.match(/^.*Python\(\d+\) deny file-write.*pyc$/) }.join
unless logs.empty?
if @logfile
log = open(@logfile, "w")