Debian Codegraph @

debian/patches/0003-Add-back-GetApi.patch

raw symbols SCIP
1 Fromscip-debian debian golang-github-seccomp-libseccomp-golang 0.11.1-1 golang-github-seccomp-libseccomp-golang/patches/`0003-Add-back-GetApi.patch`#From.: Shengjing Zhu <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Datescip-debian debian golang-github-seccomp-libseccomp-golang 0.11.1-1 golang-github-seccomp-libseccomp-golang/patches/`0003-Add-back-GetApi.patch`#Date.: Tue, 14 Jun 2022 03:36:14 +0800
3 Subjectscip-debian debian golang-github-seccomp-libseccomp-golang 0.11.1-1 golang-github-seccomp-libseccomp-golang/patches/`0003-Add-back-GetApi.patch`#Subject.: Add back GetApi
4
5 TODO: removed it when 0008-seccomp-0.9.1.patch is dropped in runc.
6 ---
7 seccomp.go | 4 ++++
8 1 file changed, 4 insertions(+)
9
10 diff --git a/seccomp.goscip-debian debian golang-github-seccomp-libseccomp-golang 0.11.1-1 golang-github-seccomp-libseccomp-golang/upstream/`seccomp.go`: b/seccomp.goscip-debian debian golang-github-seccomp-libseccomp-golang 0.11.1-1 golang-github-seccomp-libseccomp-golang/upstream/`seccomp.go`:
11 index 6f09b33..c1da582 100644
12 --- a/seccomp.go
13 +++ b/seccomp.go
14 @@ -485,6 +485,10 @@ func GetAPI() (uint, error) {
15 return getAPI()
16 }
17
18 +func GetApi() (uint, error) {
19 + return getAPI()
20 +}
21 +
22 // SetAPI forcibly sets the API level. General use of this function is strongly
23 // discouraged.
24 // Returns an error if the API level could not be set. An error is always