-
Notifications
You must be signed in to change notification settings - Fork 297
Open
Description
After configuring the ALLOWED_SYSCALLS permission list in the config.yml file, the original available operation permissions are no longer available. Can you keep the original operation permissions and modify the code as follows?
internal/core/lib/python/add_seccomp.go
allowed_syscall := os.Getenv("ALLOWED_SYSCALLS")
if allowed_syscall != "" {
nums := strings.Split(allowed_syscall, ",")
for num := range nums {
syscall, err := strconv.Atoi(nums[num])
if err != nil {
continue
}
allowed_syscalls = append(allowed_syscalls, syscall)
}
}
allowed_syscalls = append(allowed_syscalls, python_syscall.ALLOW_SYSCALLS...)
if enable_network {
allowed_syscalls = append(allowed_syscalls, python_syscall.ALLOW_NETWORK_SYSCALLS...)
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels