Skip to content

Commit 50e999a

Browse files
authored
Merge pull request #177 from kolyshkin/cap040
capability: v0.4.0 release changelog
2 parents 638aa7c + 849b6e1 commit 50e999a

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

Diff for: capability/CHANGELOG.md

+36-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@ from https://github.com/syndtr/gocapability/commit/42c35b4376354fd5.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.4.0] - 2024-11-11
9+
10+
### Added
11+
* New separate API for ambient ([GetAmbient], [SetAmbient], [ResetAmbient])
12+
and bound ([GetBound], [DropBound]) capabilities, modelled after libcap. (#176)
13+
14+
### Fixed
15+
* [Apply] now returns an error if called for non-zero `pid`. Before this change,
16+
it could silently change some capabilities of the current process, instead of
17+
the one identified by the `pid`. (#168, #174)
18+
* Fixed tests that change capabilities to be run in a separate process. (#173)
19+
* Other improvements in tests. (#169, #170)
20+
21+
### Changed
22+
* Use raw syscalls (which are slightly faster). (#176)
23+
* Most tests are now limited to testing the public API of the package. (#162)
24+
* Simplify parsing /proc/*pid*/status, add a test case. (#162)
25+
* Optimize the number of syscall to set ambient capabilities in Apply
26+
by clearing them first; add a test case. (#163, #164)
27+
* Better documentation for [Apply], [NewFile], [NewFile2], [NewPid], [NewPid2]. (#175)
28+
29+
### Removed
30+
* `.golangci.yml` and `.codespellrc` are no longer part of the package. (#158)
31+
832
## [0.3.0] - 2024-09-25
933

1034
### Added
@@ -63,14 +87,24 @@ This is an initial release since the fork.
6387
* Removed init function so programs that use this package start faster. [#6]
6488
* Removed `CAP_LAST_CAP` (use [LastCap] instead). [#6]
6589

66-
<!-- Doc links. -->
90+
<!-- Doc links (please keep sorted). -->
6791
[Apply]: https://pkg.go.dev/github.com/moby/sys/capability#Capabilities.Apply
92+
[DropBound]: https://pkg.go.dev/github.com/moby/sys/capability#DropBound
93+
[GetAmbient]: https://pkg.go.dev/github.com/moby/sys/capability#GetAmbient
94+
[GetBound]: https://pkg.go.dev/github.com/moby/sys/capability#GetBound
6895
[LastCap]: https://pkg.go.dev/github.com/moby/sys/capability#LastCap
69-
[List]: https://pkg.go.dev/github.com/moby/sys/capability#List
7096
[ListKnown]: https://pkg.go.dev/github.com/moby/sys/capability#ListKnown
7197
[ListSupported]: https://pkg.go.dev/github.com/moby/sys/capability#ListSupported
98+
[List]: https://pkg.go.dev/github.com/moby/sys/capability#List
99+
[NewFile2]: https://pkg.go.dev/github.com/moby/sys/capability#NewFile2
100+
[NewFile]: https://pkg.go.dev/github.com/moby/sys/capability#NewFile
101+
[NewPid2]: https://pkg.go.dev/github.com/moby/sys/capability#NewPid2
102+
[NewPid]: https://pkg.go.dev/github.com/moby/sys/capability#NewPid
103+
[ResetAmbient]: https://pkg.go.dev/github.com/moby/sys/capability#ResetAmbient
104+
[SetAmbient]: https://pkg.go.dev/github.com/moby/sys/capability#SetAmbient
72105

73106
<!-- Minor releases. -->
107+
[0.4.0]: https://github.com/moby/sys/releases/tag/capability%2Fv0.4.0
74108
[0.3.0]: https://github.com/moby/sys/releases/tag/capability%2Fv0.3.0
75109
[0.2.0]: https://github.com/moby/sys/releases/tag/capability%2Fv0.2.0
76110
[0.1.1]: https://github.com/kolyshkin/capability/compare/v0.1.0...v0.1.1

0 commit comments

Comments
 (0)