diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2023-05-24 06:55:47 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2023-05-24 06:55:47 -0700 |
commit | 8785077d6c69482a2814a2f771aaada2f6ea1894 (patch) | |
tree | e0e29b1ee8345a861d0d21201c234499bc51588a | |
parent | 8bed80f9b54b7bd2a1ee1fdc2124a094733c9356 (diff) | |
download | libcap-8785077d6c69482a2814a2f771aaada2f6ea1894.tar.gz |
Tidy up the overview example for the "cap" package.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r-- | cap/cap.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,7 +17,8 @@ // // // Read and display the capabilities of the running process // c := cap.GetProc() -// log.Printf("this process has these caps:", c) +// iab := cap.IABGetProc() +// log.Printf("this process has these caps: %q [%v]", c, iab) // // // Drop any privilege a process might have (including for root, // // but note root 'owns' a lot of system files so a cap-limited |