Sebastiaan van Stijn
446d4138ed
vendor: github.com/moby/sys/capability v0.4.0
full diff: https://github.com/moby/sys/compare/capability/v0.3.0...capability/v0.4.0
Added
* New separate API for ambient ([GetAmbient], [SetAmbient], [ResetAmbient])
and bound ([GetBound], [DropBound]) capabilities, modelled after libcap.
Fixed
* [Apply] now returns an error if called for non-zero `pid`. Before this change,
it could silently change some capabilities of the current process, instead of
the one identified by the `pid`.
* Fixed tests that change capabilities to be run in a separate process.
* Other improvements in tests.
Changed
* Use raw syscalls (which are slightly faster).
* Most tests are now limited to testing the public API of the package.
* Simplify parsing /proc/*pid*/status, add a test case.
* Optimize the number of syscall to set ambient capabilities in Apply
by clearing them first; add a test case.
* Better documentation for [Apply], [NewFile], [NewFile2], [NewPid], [NewPid2].
Removed
* `.golangci.yml` and `.codespellrc` are no longer part of the package.
<!-- Doc links (please keep sorted). -->
[Apply]: https://pkg.go.dev/github.com/moby/sys/capability#Capabilities.Apply
[DropBound]: https://pkg.go.dev/github.com/moby/sys/capability#DropBound
[GetAmbient]: https://pkg.go.dev/github.com/moby/sys/capability#GetAmbient
[GetBound]: https://pkg.go.dev/github.com/moby/sys/capability#GetBound
[LastCap]: https://pkg.go.dev/github.com/moby/sys/capability#LastCap
[ListKnown]: https://pkg.go.dev/github.com/moby/sys/capability#ListKnown
[ListSupported]: https://pkg.go.dev/github.com/moby/sys/capability#ListSupported
[List]: https://pkg.go.dev/github.com/moby/sys/capability#List
[NewFile2]: https://pkg.go.dev/github.com/moby/sys/capability#NewFile2
[NewFile]: https://pkg.go.dev/github.com/moby/sys/capability#NewFile
[NewPid2]: https://pkg.go.dev/github.com/moby/sys/capability#NewPid2
[NewPid]: https://pkg.go.dev/github.com/moby/sys/capability#NewPid
[ResetAmbient]: https://pkg.go.dev/github.com/moby/sys/capability#ResetAmbient
[SetAmbient]: https://pkg.go.dev/github.com/moby/sys/capability#SetAmbient
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-11-19 11:37:18 +01:00
..
2024-11-01 13:20:48 +01:00
2021-12-16 21:16:01 +01:00
2024-11-01 13:23:39 +01:00
2024-10-12 21:48:45 +02:00
2024-07-25 14:57:30 +02:00
2024-01-08 10:22:09 +01:00
2024-06-08 23:20:52 +02:00
2024-11-01 14:10:15 +01:00
2023-12-12 16:22:47 +01:00
2024-07-01 13:10:44 +02:00
2024-11-05 14:12:16 +00:00
2024-11-01 13:25:17 +01:00
2024-06-06 00:05:45 +02:00
2022-02-03 10:38:05 +01:00
2024-09-12 18:38:40 +02:00
2024-11-01 14:08:45 +01:00
2023-12-01 16:12:20 +01:00
2024-11-01 14:04:41 +01:00
2022-12-27 13:45:16 +01:00
2024-11-01 13:28:47 +01:00
2023-05-05 02:37:12 +02:00
2024-06-12 00:57:47 +02:00
2022-04-30 12:01:33 +02:00
2024-11-19 11:37:18 +01:00
2021-12-16 21:16:01 +01:00
2024-11-01 13:44:05 +01:00
2024-05-31 16:10:21 +02:00
2024-08-14 19:48:04 +01:00
2024-11-01 13:44:05 +01:00
2022-04-25 15:01:41 +02:00
2023-06-12 11:21:25 +02:00
2024-06-18 21:52:58 +02:00
2022-03-26 19:48:14 +01:00
2022-03-26 19:48:14 +01:00
2022-03-26 19:48:14 +01:00