Debian Codegraph @

capability/CHANGELOG.md

raw symbols SCIP
1 # Changelog
2 This file documents all notable changes made to this project since the initial fork
3 from https://github.com/syndtr/gocapability/commit/42c35b4376354fd5.
4
5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
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
32 ## [0.3.0] - 2024-09-25
33
34 ### Added
35 * Added [ListKnown] and [ListSupported] functions. (#153)
36 * [LastCap] is now available on non-Linux platforms (where it returns an error). (#152)
37
38 ### Changed
39 * [List] is now deprecated in favor of [ListKnown] and [ListSupported]. (#153)
40
41 ### Fixed
42 * Various documentation improvements. (#151)
43 * Fix "generated code" comment. (#153)
44
45 ## [0.2.0] - 2024-09-16
46
47 This is the first release after the move to a new home in
48 github.com/moby/sys/capability.
49
50 ### Fixed
51 * Fixed URLs in documentation to reflect the new home.
52
53 ## [0.1.1] - 2024-08-01
54
55 This is a maintenance release, fixing a few minor issues.
56
57 ### Fixed
58 * Fixed future kernel compatibility, for real this time. [#11]
59 * Fixed [LastCap] to be a function. [#12]
60
61 ## [0.1.0] - 2024-07-31
62
63 This is an initial release since the fork.
64
65 ### Breaking changes
66
67 * The `CAP_LAST_CAP` variable is removed; users need to modify the code to
68 use [LastCap] to get the value. [#6]
69 * The code now requires Go >= 1.21.
70
71 ### Added
72 * `go.mod` and `go.sum` files. [#2]
73 * New [LastCap] function. [#6]
74 * Basic CI using GHA infra. [#8], [#9]
75 * README and CHANGELOG. [#10]
76
77 ### Fixed
78 * Fixed ambient capabilities error handling in [Apply]. [#3]
79 * Fixed future kernel compatibility. [#1]
80 * Fixed various linter warnings. [#4], [#7]
81
82 ### Changed
83 * Go build tags changed from old-style (`+build`) to new Go 1.17+ style (`go:build`). [#2]
84
85 ### Removed
86 * Removed support for capabilities v1 and v2. [#1]
87 * Removed init function so programs that use this package start faster. [#6]
88 * Removed `CAP_LAST_CAP` (use [LastCap] instead). [#6]
89
90 <!-- Doc links (please keep sorted). -->
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
95 [LastCap]: https://pkg.go.dev/github.com/moby/sys/capability#LastCap
96 [ListKnown]: https://pkg.go.dev/github.com/moby/sys/capability#ListKnown
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
105
106 <!-- Minor releases. -->
107 [0.4.0]: https://github.com/moby/sys/releases/tag/capability%2Fv0.4.0
108 [0.3.0]: https://github.com/moby/sys/releases/tag/capability%2Fv0.3.0
109 [0.2.0]: https://github.com/moby/sys/releases/tag/capability%2Fv0.2.0
110 [0.1.1]: https://github.com/kolyshkin/capability/compare/v0.1.0...v0.1.1
111 [0.1.0]: https://github.com/kolyshkin/capability/compare/42c35b4376354fd5...v0.1.0
112
113 <!-- PRs in 0.1.x releases. -->
114 [#1]: https://github.com/kolyshkin/capability/pull/1
115 [#2]: https://github.com/kolyshkin/capability/pull/2
116 [#3]: https://github.com/kolyshkin/capability/pull/3
117 [#4]: https://github.com/kolyshkin/capability/pull/4
118 [#6]: https://github.com/kolyshkin/capability/pull/6
119 [#7]: https://github.com/kolyshkin/capability/pull/7
120 [#8]: https://github.com/kolyshkin/capability/pull/8
121 [#9]: https://github.com/kolyshkin/capability/pull/9
122 [#10]: https://github.com/kolyshkin/capability/pull/10
123 [#11]: https://github.com/kolyshkin/capability/pull/11
124 [#12]: https://github.com/kolyshkin/capability/pull/12