aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/seccomp/presets_amd64_test.go
blob: 4947b03a42fc5827095c8e53fed8000ad48de8c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package seccomp_test

import (
	. "hakurei.app/container/seccomp"
	. "hakurei.app/container/std"
)

var bpfExpected = bpfLookup{
	{AllowMultiarch | AllowCAN |
		AllowBluetooth, PresetExt |
		PresetDenyNS | PresetDenyTTY | PresetDenyDevel |
		PresetLinux32}: mustParse(
		"OEo0cEGplptK4cjDEehCaXJRRde5bNSy+f85FZ7ix8JBlWg/Vz/tW/krcUTIvkgS"),

	{0, 0}: mustParse(
		"o0zOjtG/FXS4dFIm/rfirrmy7XKxTvv18bQq9HhZc4xaG+L4anm3Fzqzy6Ycwibr"),
	{0, PresetExt}: mustParse(
		"rkt5plUtcKoGSnId0eilH0TI6MZ2sTc4dUpRWKQXDZ82HYsLlYwSBxwAwmimNn2y"),
	{0, PresetStrict}: mustParse(
		"0WPy7NuJTdxYathFWp9rc9F5NHPSs+qax6/6vn1z51OuOES+z4J40E0zvq7soGTZ"),
	{0, PresetDenyNS | PresetDenyTTY | PresetDenyDevel}: mustParse(
		"gQmg9tonCnDZ22DlQcqlqBBRNGoh24VsDQGadm4ZmN32oGRie8RHnTiisUNV9Irx"),
	{0, PresetExt | PresetDenyDevel}: mustParse(
		"mNUF/wBpXHQAJnjouVj8JSoWv85UDVdPmR8ZBGydv38D3pnZ2rBmgBI56HxHKai3"),
	{0, PresetExt | PresetDenyNS | PresetDenyDevel}: mustParse(
		"TfliOSrVS9y6zqMQvysUuEj053iqPooATYf75AWh5UAq7Q2XL0bW3p+SA+EdpPT+"),
}