mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-07 12:26:40 +00:00
runtest: fix using configs with namespace/setuid sandbox
This commit is contained in:
parent
09ff5abc02
commit
81c5026f57
@ -152,12 +152,16 @@ func checkMachine(args *checkArgs) (*rpctype.CheckArgs, error) {
|
||||
}
|
||||
sandboxes := []string{args.sandbox}
|
||||
if args.allSandboxes {
|
||||
if features[host.FeatureSandboxSetuid].Enabled {
|
||||
if args.sandbox != "none" {
|
||||
sandboxes = append(sandboxes, "none")
|
||||
}
|
||||
if args.sandbox != "setuid" && features[host.FeatureSandboxSetuid].Enabled {
|
||||
sandboxes = append(sandboxes, "setuid")
|
||||
}
|
||||
if features[host.FeatureSandboxNamespace].Enabled {
|
||||
if args.sandbox != "namespace" && features[host.FeatureSandboxNamespace].Enabled {
|
||||
sandboxes = append(sandboxes, "namespace")
|
||||
}
|
||||
// TODO: Add "android" sandbox here when needed. Will require fixing runtests.
|
||||
}
|
||||
for _, sandbox := range sandboxes {
|
||||
enabledCalls, disabledCalls, err := buildCallList(args.target, args.enabledCalls, sandbox)
|
||||
|
@ -115,6 +115,9 @@ func main() {
|
||||
fmt.Printf("%-24v: %v\n", feat.Name, feat.Reason)
|
||||
}
|
||||
for sandbox, calls := range enabledCalls {
|
||||
if sandbox == "" {
|
||||
sandbox = "no"
|
||||
}
|
||||
fmt.Printf("%-24v: %v calls enabled\n", sandbox+" sandbox", len(calls))
|
||||
}
|
||||
ctx := &runtest.Context{
|
||||
|
Loading…
x
Reference in New Issue
Block a user