Skip to content

Commit 2722614

Browse files
kolyshkindrakenclimber
authored andcommitted
doc: init: add libseccomp version and TODO
It was not clear from the commit 78c92cb what versions of libseccomp require this kludge. Looks like the issue in question was fixed by libseccomp commit 88afa50ff7c9787 ("api: force an API level update when necessary") which made its way to libseccomp v2.5.0. Amend the comment to tell the version, and add a TODO item to remove the workaround. Signed-off-by: Kir Kolyshkin <[email protected]> Acked-by: Paul Moore <[email protected]> Signed-off-by: Tom Hromatka <[email protected]>
1 parent b17c8c3 commit 2722614

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

seccomp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ type VersionError struct {
3333

3434
func init() {
3535
// This forces the cgo libseccomp to initialize its internal API support state,
36-
// which is necessary on older versions of libseccomp in order to work
36+
// which is necessary on older versions of libseccomp (< 2.5.0) in order to work
3737
// correctly.
38+
// TODO: remove once libseccomp < v2.5.0 is not supported.
3839
_, _ = getAPI()
3940
}
4041

0 commit comments

Comments
 (0)