Skip to content

Commit

Permalink
[system-probe] Update seccomp profile and capabilities for system pro…
Browse files Browse the repository at this point in the history
…be (#140)

System probe fails start due to missing calls in the seccomp profile with Agent 7.22.0.

This matches what we have currently in the helm chart.
  • Loading branch information
xornivore committed Aug 28, 2020
1 parent 3b8bf72 commit d00b468
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pkg/controller/datadogagent/systemprobe.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ const systemProbeSecCompData = `{
"epoll_wait",
"epoll_wait",
"epoll_wait_old",
"eventfd",
"eventfd2",
"execve",
"execveat",
"exit",
Expand All @@ -140,10 +142,10 @@ const systemProbeSecCompData = `{
"futex",
"getcwd",
"getdents",
"getdents64",
"getegid",
"geteuid",
"getgid",
"getdents64",
"getpeername",
"getpid",
"getppid",
Expand All @@ -168,11 +170,13 @@ const systemProbeSecCompData = `{
"lseek",
"lstat",
"lstat64",
"madvise",
"mkdir",
"mkdirat",
"mmap",
"mmap2",
"mprotect",
"mremap",
"munmap",
"nanosleep",
"newfstatat",
Expand All @@ -185,6 +189,7 @@ const systemProbeSecCompData = `{
"poll",
"ppoll",
"prctl",
"pread64",
"prlimit64",
"pselect6",
"read",
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/datadogagent/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func getSystemProbeContainers(dda *datadoghqv1alpha1.DatadogAgent) ([]corev1.Con
},
SecurityContext: &corev1.SecurityContext{
Capabilities: &corev1.Capabilities{
Add: []corev1.Capability{"SYS_ADMIN", "SYS_RESOURCE", "SYS_PTRACE", "NET_ADMIN", "IPC_LOCK"},
Add: []corev1.Capability{"SYS_ADMIN", "SYS_RESOURCE", "SYS_PTRACE", "NET_ADMIN", "NET_BROADCAST", "IPC_LOCK"},
},
},
Env: systemProbeEnvVars,
Expand Down

0 comments on commit d00b468

Please sign in to comment.