@@ -24,32 +24,32 @@ func TestLoadProfile(t *testing.T) {
2424 }
2525 var expectedErrno uint = 12345
2626 expected := specs.LinuxSeccomp {
27- DefaultAction : "SCMP_ACT_ERRNO" ,
27+ DefaultAction : specs . ActErrno ,
2828 Syscalls : []specs.LinuxSyscall {
2929 {
3030 Names : []string {"clone" },
31- Action : "SCMP_ACT_ALLOW" ,
31+ Action : specs . ActAllow ,
3232 Args : []specs.LinuxSeccompArg {{
3333 Index : 0 ,
3434 Value : 2114060288 ,
3535 ValueTwo : 0 ,
36- Op : "SCMP_CMP_MASKED_EQ" ,
36+ Op : specs . OpMaskedEqual ,
3737 }},
3838 },
3939 {
4040
4141 Names : []string {"open" },
42- Action : "SCMP_ACT_ALLOW" ,
42+ Action : specs . ActAllow ,
4343 Args : []specs.LinuxSeccompArg {},
4444 },
4545 {
4646 Names : []string {"close" },
47- Action : "SCMP_ACT_ALLOW" ,
47+ Action : specs . ActAllow ,
4848 Args : []specs.LinuxSeccompArg {},
4949 },
5050 {
5151 Names : []string {"syslog" },
52- Action : "SCMP_ACT_ERRNO" ,
52+ Action : specs . ActErrno ,
5353 ErrnoRet : & expectedErrno ,
5454 Args : []specs.LinuxSeccompArg {},
5555 },
@@ -72,7 +72,7 @@ func TestLoadProfileWithDefaultErrnoRet(t *testing.T) {
7272
7373 expectedErrnoRet := uint (6 )
7474 expected := specs.LinuxSeccomp {
75- DefaultAction : "SCMP_ACT_ERRNO" ,
75+ DefaultAction : specs . ActErrno ,
7676 DefaultErrnoRet : & expectedErrnoRet ,
7777 }
7878
@@ -92,7 +92,7 @@ func TestLoadProfileWithListenerPath(t *testing.T) {
9292 }
9393
9494 expected := specs.LinuxSeccomp {
95- DefaultAction : "SCMP_ACT_ERRNO" ,
95+ DefaultAction : specs . ActErrno ,
9696 ListenerPath : "/var/run/seccompaget.sock" ,
9797 ListenerMetadata : "opaque-metadata" ,
9898 }
0 commit comments