buildkit/util/apicaps
Ian Campbell e0196c9a12 apicaps: record the correct caps when constructing a CapSet
We need to capture `c` within the loop, otherwise all of the entries of `m` end
up pointing to the same thing, which is the last cap in `range caps`.

The symptom was that all caps were enabled/disabled based on the last cap's
setting and not their own.

Add a test for this.

Signed-off-by: Ian Campbell <ijc@docker.com>
2018-07-25 14:29:16 +01:00
..
pb api: add caps support for versioning 2018-07-09 16:32:34 -07:00
caps.go apicaps: record the correct caps when constructing a CapSet 2018-07-25 14:29:16 +01:00
caps_test.go apicaps: record the correct caps when constructing a CapSet 2018-07-25 14:29:16 +01:00