feat: import Sea vHost single-server testing release
This commit is contained in:
commit
248badd33e
441 files changed
+63221
No files matched your search
@@ -0,0 +1,14 @@
|
||||
//go:build linux
|
||||
|
||||
package isolation
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func rootOwnedPythonMetadata(info os.FileInfo) bool {
|
||||
s, ok := info.Sys().(*syscall.Stat_t)
|
||||
return ok && s.Uid == 0
|
||||
}
|
||||
func canWritePythonMetadataCache() bool { return os.Geteuid() == 0 }
|
||||
Reference in new issue
Block a user