Merge pull request #31155 from justincormack/1.13-sync-file-range

[1.13] Allow sync_file_range2 on supported architectures.
This commit is contained in:
Victor Vieux 2017-02-19 00:39:20 -08:00 committed by GitHub
commit 19460e43f4
2 changed files with 26 additions and 0 deletions

View file

@ -415,10 +415,25 @@
"includes": {},
"excludes": {}
},
{
"names": [
"sync_file_range2"
],
"action": "SCMP_ACT_ALLOW",
"args": [],
"comment": "",
"includes": {
"arches": [
"ppc64le"
]
},
"excludes": {}
},
{
"names": [
"arm_fadvise64_64",
"arm_sync_file_range",
"sync_file_range2",
"breakpoint",
"cacheflush",
"set_tls"

View file

@ -388,10 +388,21 @@ func DefaultProfile() *types.Seccomp {
},
},
},
{
Names: []string{
"sync_file_range2",
},
Action: types.ActAllow,
Args: []*types.Arg{},
Includes: types.Filter{
Arches: []string{"ppc64le"},
},
},
{
Names: []string{
"arm_fadvise64_64",
"arm_sync_file_range",
"sync_file_range2",
"breakpoint",
"cacheflush",
"set_tls",