refactor: Misc cleanup

This commit is contained in:
Abhisek Datta
2026-01-15 08:44:26 +05:30
parent dce5220241
commit 5098649c72
3 changed files with 23 additions and 12 deletions
@@ -85,6 +85,9 @@ type seccompConfig struct {
// These defaults are based on:
// - Common Linux filesystem layouts
// - Anthropic Sandbox Runtime implementation patterns
//
// This config is for maintaining safe defaults for the sandbox. Future enhancements
// will allow the user to override the config through policy or sandbox config available at PMG level.
func newDefaultBubblewrapConfig() *bubblewrapConfig {
return &bubblewrapConfig{
// Essential system paths (read-only)
@@ -195,6 +198,7 @@ func (c *bubblewrapConfig) getEssentialSystemPaths() []string {
existingPaths = append(existingPaths, path)
}
}
return existingPaths
}
@@ -207,5 +211,6 @@ func (c *bubblewrapConfig) getEssentialDevices() []string {
existingDevices = append(existingDevices, device)
}
}
return existingDevices
}