Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9702 from anonymouse64/feature/copy_file_range-se…
…ccomp-default interfaces/seccomp/template.go: allow copy_file_range This was recently introduced as an optimization to Go 1.15, and so apps that start compiling may start to try and use it. Note that Go 1.15 does currently fall back to using other methods if copy_file_range returns EPERM so that apps that get denied usage of copy_file_range will fallback to potentially slower implementations. (originally upon Go 1.15 release there was not a fallback implementation and the app would just crash returning a non-nil error up the stack). See golang/go#40893 and https://go-review.googlesource.com/c/go/+/249257/ for more details on the Go issue and the fallback implementation. There are also some instances of Node.JS using this too with the libuv library, see fs.copyfile() and a corresponding forum topic for more details: https://forum.snapcraft.io/t/snap-no-longer-has-write-permission/22686
- Loading branch information