@@ -5,6 +5,30 @@ from https://github.com/syndtr/gocapability/commit/42c35b4376354fd5.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
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
+
8
32
## [ 0.3.0] - 2024-09-25
9
33
10
34
### Added
@@ -63,14 +87,24 @@ This is an initial release since the fork.
63
87
* Removed init function so programs that use this package start faster. [ #6 ]
64
88
* Removed ` CAP_LAST_CAP ` (use [ LastCap] instead). [ #6 ]
65
89
66
- <!-- Doc links. -->
90
+ <!-- Doc links (please keep sorted) . -->
67
91
[ 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
68
95
[ LastCap ] : https://pkg.go.dev/github.com/moby/sys/capability#LastCap
69
- [ List ] : https://pkg.go.dev/github.com/moby/sys/capability#List
70
96
[ ListKnown ] : https://pkg.go.dev/github.com/moby/sys/capability#ListKnown
71
97
[ 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
72
105
73
106
<!-- Minor releases. -->
107
+ [ 0.4.0 ] : https://github.com/moby/sys/releases/tag/capability%2Fv0.4.0
74
108
[ 0.3.0 ] : https://github.com/moby/sys/releases/tag/capability%2Fv0.3.0
75
109
[ 0.2.0 ] : https://github.com/moby/sys/releases/tag/capability%2Fv0.2.0
76
110
[ 0.1.1 ] : https://github.com/kolyshkin/capability/compare/v0.1.0...v0.1.1
0 commit comments