langgenius / dify-sandbox

A lightweight, fast, and secure code execution environment that supports multiple programming languages
https://docs.dify.ai/development/backend/sandbox
Apache License 2.0
412 stars 93 forks source link

Failed to create new filter: could not create filter #102

Open 18827555809 opened 1 week ago

18827555809 commented 1 week ago

I executed the following code in the Docker image you provided,

package main

import (
        "log"
        sg "github.com/seccomp/libseccomp-golang"
)

func main() {
        _, err := sg.NewFilter(sg.ActKillProcess)
        if err != nil {
            log.Printf("Failed to create new filter: %v", err)
            return
        }
}

But got the error 'Failed to create new filter: could not create filter'. Because of this error, the 'sandbox' cannot run.