Skip to content

Commit 396b863

Browse files
Merge pull request #4491 from thaJeztah/seccomp_syslog
seccomp: move the syslog syscall to be gated by CAP_SYS_ADMIN or CAP_SYSLOG
2 parents 40ce36f + 267a0cf commit 396b863

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

contrib/seccomp/seccomp_default.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
350350
"sync_file_range",
351351
"syncfs",
352352
"sysinfo",
353-
"syslog",
354353
"tee",
355354
"tgkill",
356355
"time",
@@ -529,6 +528,7 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
529528
"setdomainname",
530529
"sethostname",
531530
"setns",
531+
"syslog",
532532
"umount",
533533
"umount2",
534534
"unshare",
@@ -600,6 +600,12 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
600600
Action: specs.ActAllow,
601601
Args: []specs.LinuxSeccompArg{},
602602
})
603+
case "CAP_SYSLOG":
604+
s.Syscalls = append(s.Syscalls, specs.LinuxSyscall{
605+
Names: []string{"syslog"},
606+
Action: specs.ActAllow,
607+
Args: []specs.LinuxSeccompArg{},
608+
})
603609
}
604610
}
605611

0 commit comments

Comments
 (0)