Skip to content

Commit aedc0ca

Browse files
dargorjustincormack
authored andcommitted
Allow sync_file_range2 on supported architectures.
Signed-off-by: Gabriel Linder <linder.gabriel@gmail.com>
1 parent d4e2280 commit aedc0ca

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

profiles/seccomp/default.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,25 @@
415415
"includes": {},
416416
"excludes": {}
417417
},
418+
{
419+
"names": [
420+
"sync_file_range2"
421+
],
422+
"action": "SCMP_ACT_ALLOW",
423+
"args": [],
424+
"comment": "",
425+
"includes": {
426+
"arches": [
427+
"ppc64le"
428+
]
429+
},
430+
"excludes": {}
431+
},
418432
{
419433
"names": [
420434
"arm_fadvise64_64",
421435
"arm_sync_file_range",
436+
"sync_file_range2",
422437
"breakpoint",
423438
"cacheflush",
424439
"set_tls"

profiles/seccomp/seccomp_default.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,21 @@ func DefaultProfile() *types.Seccomp {
388388
},
389389
},
390390
},
391+
{
392+
Names: []string{
393+
"sync_file_range2",
394+
},
395+
Action: types.ActAllow,
396+
Args: []*types.Arg{},
397+
Includes: types.Filter{
398+
Arches: []string{"ppc64le"},
399+
},
400+
},
391401
{
392402
Names: []string{
393403
"arm_fadvise64_64",
394404
"arm_sync_file_range",
405+
"sync_file_range2",
395406
"breakpoint",
396407
"cacheflush",
397408
"set_tls",

0 commit comments

Comments
 (0)