adding support of CAP_BPF and CAP_PERFMON
Signed-off-by: Henry Wang <henwang@amazon.com>
This commit is contained in:
		| @@ -671,6 +671,18 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp { | |||||||
| 				Action: specs.ActAllow, | 				Action: specs.ActAllow, | ||||||
| 				Args:   []specs.LinuxSeccompArg{}, | 				Args:   []specs.LinuxSeccompArg{}, | ||||||
| 			}) | 			}) | ||||||
|  | 		case "CAP_BPF": | ||||||
|  | 			s.Syscalls = append(s.Syscalls, specs.LinuxSyscall{ | ||||||
|  | 				Names:  []string{"bpf"}, | ||||||
|  | 				Action: specs.ActAllow, | ||||||
|  | 				Args:   []specs.LinuxSeccompArg{}, | ||||||
|  | 			}) | ||||||
|  | 		case "CAP_PERFMON": | ||||||
|  | 			s.Syscalls = append(s.Syscalls, specs.LinuxSyscall{ | ||||||
|  | 				Names:  []string{"perf_event_open"}, | ||||||
|  | 				Action: specs.ActAllow, | ||||||
|  | 				Args:   []specs.LinuxSeccompArg{}, | ||||||
|  | 			}) | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Henry Wang
					Henry Wang