Allow sync_file_range2 on supported architectures.

Signed-off-by: Gabriel Linder <linder.gabriel@gmail.com>
Upstream-commit: 52d8f582c331e35f7b841171a1c22e2d9bbfd0b8
Component: engine
This commit is contained in:
Gabriel Linder
2017-02-14 21:29:33 +01:00
parent d60e30c4e4
commit 4fb9ed21cb
2 changed files with 26 additions and 0 deletions
@@ -630,10 +630,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"
@@ -533,10 +533,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",