Enhance violation monitoring

This commit is contained in:
JY Tan
2025-12-18 15:49:05 -08:00
parent c02c91f051
commit 35d1f1ea22
8 changed files with 377 additions and 46 deletions

View File

@@ -19,8 +19,10 @@ type FilesystemConfig = config.FilesystemConfig
type Manager = sandbox.Manager
// NewManager creates a new sandbox manager.
func NewManager(cfg *Config, debug bool) *Manager {
return sandbox.NewManager(cfg, debug)
// If debug is true, verbose logging is enabled.
// If monitor is true, only violations (blocked requests) are logged.
func NewManager(cfg *Config, debug, monitor bool) *Manager {
return sandbox.NewManager(cfg, debug, monitor)
}
// DefaultConfig returns the default configuration with all network blocked.