diff options
author | Sadaf Ebrahimi <sadafebrahimi@google.com> | 2022-10-10 21:17:46 +0000 |
---|---|---|
committer | Sadaf Ebrahimi <sadafebrahimi@google.com> | 2022-10-10 21:18:59 +0000 |
commit | fbfa21662ea4478f4b663a96407f51b8babe4883 (patch) | |
tree | acb9cff934a953665142b6e8821d628608a7e498 /go/compare-cap.go | |
parent | be5941c4a88ced457aa70674cc80a40fd3526cda (diff) | |
parent | 797050ca7f9e85eec91000c71d58359f427d1b14 (diff) | |
download | libcap-fbfa21662ea4478f4b663a96407f51b8babe4883.tar.gz |
Upgrade libcap to libcap-2.53
Also deleting the wrong security tag from METADATA
Test: Treehugger
Change-Id: I9596a5a9f9db6f33989aad758c80ecd6b4f2267c
Diffstat (limited to 'go/compare-cap.go')
-rw-r--r-- | go/compare-cap.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/go/compare-cap.go b/go/compare-cap.go index 4424ebe..f2a7d6b 100644 --- a/go/compare-cap.go +++ b/go/compare-cap.go @@ -184,7 +184,7 @@ func tryProcCaps() { } } - // The current process is now without any access to privelege. + // The current process is now without any access to privilege. } func main() { @@ -257,12 +257,12 @@ func main() { } // Validate that it can be imported in binary in C - iC := C.cap_copy_int(unsafe.Pointer(&iE[0])) + iC := C.cap_copy_int_check(unsafe.Pointer(&iE[0]), C.ssize_t(len(iE))) if iC == nil { log.Fatal("c failed to import go binary") } defer C.cap_free(unsafe.Pointer(iC)) - fC := C.cap_to_text(cC, &tCLen) + fC := C.cap_to_text(iC, &tCLen) if fC == nil { log.Fatal("basic c init caps -> text failure") } |