libseccomp-golang icon indicating copy to clipboard operation
libseccomp-golang copied to clipboard

RFE: TestRuleAddAndLoad: don't use magic number

Open kolyshkin opened this issue 3 years ago • 0 comments

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.

kolyshkin avatar Sep 02 '22 01:09 kolyshkin