| 1 | From: Shengjing Zhu <[email protected]> |
| 2 | Date: Tue, 14 Jun 2022 03:36:14 +0800 |
| 3 | 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.go b/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 |