libseccomp-golang
libseccomp-golang copied to clipboard
RFE: TestRuleAddAndLoad: don't use magic number
Rather than using some magic number 28 (which corresponds to ENOSPC), let's use syscall.ENOSPC and convert it to int16 when needed.
Fixes: 9006a281d6713ba604f36f9b5caeac23a16bbd55 Reported-by: @rata
This is to address a comment that I missed earlier: https://github.com/seccomp/libseccomp-golang/pull/100#discussion_r922088814.