Top 3.5% dependent repos on proxy.golang.org
proxy.golang.org : github.com/thediveo/caps
Package caps provides a minimalist interface to getting and setting the capabilities of Linux tasks (threads). It is a pure Go implementation that does not need any linking with the C libcap. However, it isn't any drop-in replacement for the libcap.git Go module (if that even is possible). The focus of this module is on dropping and regaining effective capabilities, as well as dropping permitted capabilities. That is, a more Go-like API to the capget(2) and capset(2) Linux syscalls. To drop the calling task's effective capabilities only, without dropping the permitted capabilities: To regain only a specific effective capability: And finally to regain all originally effective capabilities: This package assumes at least a kernel version 2.65 or later and does not support older kernels. The Linux kernel actually returns the version of the capabilities user-space structure it uses “natively” in the capabilities header version field if this version field is set to an invalid or unsupported version (such as 0 which was never be used and won't ever). In this case, EINVAL is returned.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/thediveo/caps
License: Apache-2.0
Latest release: 4 months ago
First release: over 2 years ago
Namespace: github.com/thediveo
Dependent packages: 2
Dependent repositories: 2
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 19 days ago