Merge pull request #5562 from dims/update-opencontainers/selinux-to-v1.8.2
Update opencontainers/selinux to v1.8.2
This commit is contained in:
		
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -42,7 +42,7 @@ require ( | |||||||
| 	github.com/opencontainers/image-spec v1.0.1 | 	github.com/opencontainers/image-spec v1.0.1 | ||||||
| 	github.com/opencontainers/runc v1.0.0-rc95 | 	github.com/opencontainers/runc v1.0.0-rc95 | ||||||
| 	github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 | 	github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 | ||||||
| 	github.com/opencontainers/selinux v1.8.1 | 	github.com/opencontainers/selinux v1.8.2 | ||||||
| 	github.com/pelletier/go-toml v1.8.1 | 	github.com/pelletier/go-toml v1.8.1 | ||||||
| 	github.com/pkg/errors v0.9.1 | 	github.com/pkg/errors v0.9.1 | ||||||
| 	github.com/prometheus/client_golang v1.7.1 | 	github.com/prometheus/client_golang v1.7.1 | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								go.sum
									
									
									
									
									
								
							| @@ -59,6 +59,8 @@ github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+Ce | |||||||
| github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= | github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= | ||||||
| github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= | github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= | ||||||
| github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= | ||||||
|  | github.com/bits-and-blooms/bitset v1.2.0 h1:Kn4yilvwNtMACtf1eYDlG8H77R07mZSPbMjLyS07ChA= | ||||||
|  | github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= | ||||||
| github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= | github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= | ||||||
| github.com/buger/jsonparser v0.0.0-20180808090653-f4dd9f5a6b44/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= | github.com/buger/jsonparser v0.0.0-20180808090653-f4dd9f5a6b44/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= | ||||||
| github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= | ||||||
| @@ -353,8 +355,8 @@ github.com/opencontainers/runtime-spec v1.0.3-0.20200929063507-e6143ca7d51d/go.m | |||||||
| github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 h1:3snG66yBm59tKhhSPQrQ/0bCrv1LQbKt40LnUPiUxdc= | github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 h1:3snG66yBm59tKhhSPQrQ/0bCrv1LQbKt40LnUPiUxdc= | ||||||
| github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||||
| github.com/opencontainers/selinux v1.8.0/go.mod h1:RScLhm78qiWa2gbVCcGkC7tCGdgk3ogry1nUQF8Evvo= | github.com/opencontainers/selinux v1.8.0/go.mod h1:RScLhm78qiWa2gbVCcGkC7tCGdgk3ogry1nUQF8Evvo= | ||||||
| github.com/opencontainers/selinux v1.8.1 h1:yvEZh7CsfnJNwKzG9ZeXwbvR05RAZsu5RS/3vA6qFTA= | github.com/opencontainers/selinux v1.8.2 h1:c4ca10UMgRcvZ6h0K4HtS15UaVSBEaE+iln2LVpAuGc= | ||||||
| github.com/opencontainers/selinux v1.8.1/go.mod h1:RScLhm78qiWa2gbVCcGkC7tCGdgk3ogry1nUQF8Evvo= | github.com/opencontainers/selinux v1.8.2/go.mod h1:MUIHuUEvKB1wtJjQdOyYRgOnLD2xAPP8dBsCoU0KuF8= | ||||||
| github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | ||||||
| github.com/pelletier/go-toml v1.8.1 h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM= | github.com/pelletier/go-toml v1.8.1 h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM= | ||||||
| github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc= | github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc= | ||||||
| @@ -448,7 +450,6 @@ github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYp | |||||||
| github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852/go.mod h1:twkDnbuQxJYemMlGd4JFIcuhgX83tXhKS2B/PRMpOho= | github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852/go.mod h1:twkDnbuQxJYemMlGd4JFIcuhgX83tXhKS2B/PRMpOho= | ||||||
| github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= | github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= | ||||||
| github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= | github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= | ||||||
| github.com/willf/bitset v1.1.11 h1:N7Z7E9UvjW+sGsEl7k/SJrvY2reP1A07MrGuCjIOjRE= |  | ||||||
| github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI= | github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI= | ||||||
| github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= | github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= | ||||||
| github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= | github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= | ||||||
|   | |||||||
| @@ -2,10 +2,9 @@ | |||||||
| 
 | 
 | ||||||
| *Go language library to map between non-negative integers and boolean values* | *Go language library to map between non-negative integers and boolean values* | ||||||
| 
 | 
 | ||||||
| [](https://github.com/willf/bitset/actions?query=workflow%3ATest) | [](https://github.com/willf/bitset/actions?query=workflow%3ATest) | ||||||
| [](https://coveralls.io/github/willf/bitset?branch=master) |  | ||||||
| [](https://goreportcard.com/report/github.com/willf/bitset) | [](https://goreportcard.com/report/github.com/willf/bitset) | ||||||
| [](https://pkg.go.dev/github.com/willf/bitset?tab=doc) | [](https://pkg.go.dev/github.com/bits-and-blooms/bitset?tab=doc) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| ## Description | ## Description | ||||||
| @@ -30,7 +29,7 @@ import ( | |||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"math/rand" | 	"math/rand" | ||||||
| 
 | 
 | ||||||
| 	"github.com/willf/bitset" | 	"github.com/bits-and-blooms/bitset" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| func main() { | func main() { | ||||||
| @@ -63,7 +62,7 @@ func main() { | |||||||
| 
 | 
 | ||||||
| As an alternative to BitSets, one should check out the 'big' package, which provides a (less set-theoretical) view of bitsets. | As an alternative to BitSets, one should check out the 'big' package, which provides a (less set-theoretical) view of bitsets. | ||||||
| 
 | 
 | ||||||
| Package documentation is at: https://pkg.go.dev/github.com/willf/bitset?tab=doc | Package documentation is at: https://pkg.go.dev/github.com/bits-and-blooms/bitset?tab=doc | ||||||
| 
 | 
 | ||||||
| ## Memory Usage | ## Memory Usage | ||||||
| 
 | 
 | ||||||
| @@ -78,7 +77,7 @@ It is possible that a later version will match the `math/bits` return signature | |||||||
| ## Installation | ## Installation | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| go get github.com/willf/bitset | go get github.com/bits-and-blooms/bitset | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ## Contributing | ## Contributing | ||||||
| @@ -209,6 +209,27 @@ func (b *BitSet) Flip(i uint) *BitSet { | |||||||
| 	return b | 	return b | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | // FlipRange bit in [start, end). | ||||||
|  | // If end>= Cap(), this function will panic. | ||||||
|  | // Warning: using a very large value for 'end' | ||||||
|  | // may lead to a memory shortage and a panic: the caller is responsible | ||||||
|  | // for providing sensible parameters in line with their memory capacity. | ||||||
|  | func (b *BitSet) FlipRange(start, end uint) *BitSet { | ||||||
|  | 	if start >= end { | ||||||
|  | 		return b | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	b.extendSetMaybe(end - 1) | ||||||
|  | 	var startWord uint = start >> log2WordSize | ||||||
|  | 	var endWord uint = end >> log2WordSize | ||||||
|  | 	b.set[startWord] ^= ^(^uint64(0) << (start & (wordSize - 1))) | ||||||
|  | 	for i := startWord; i < endWord; i++ { | ||||||
|  | 		b.set[i] = ^b.set[i] | ||||||
|  | 	} | ||||||
|  | 	b.set[endWord] ^= ^uint64(0) >> (-end & (wordSize - 1)) | ||||||
|  | 	return b | ||||||
|  | } | ||||||
|  | 
 | ||||||
| // Shrink shrinks BitSet so that the provided value is the last possible | // Shrink shrinks BitSet so that the provided value is the last possible | ||||||
| // set value. It clears all bits > the provided index and reduces the size | // set value. It clears all bits > the provided index and reduces the size | ||||||
| // and length of the set. | // and length of the set. | ||||||
| @@ -519,7 +540,7 @@ func (b *BitSet) Copy(c *BitSet) (count uint) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // Count (number of set bits). | // Count (number of set bits). | ||||||
| // Also known as "popcount" or "popularity count". | // Also known as "popcount" or "population count". | ||||||
| func (b *BitSet) Count() uint { | func (b *BitSet) Count() uint { | ||||||
| 	if b != nil && b.set != nil { | 	if b != nil && b.set != nil { | ||||||
| 		return uint(popcntSlice(b.set)) | 		return uint(popcntSlice(b.set)) | ||||||
							
								
								
									
										3
									
								
								vendor/github.com/bits-and-blooms/bitset/go.mod
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/bits-and-blooms/bitset/go.mod
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | module github.com/bits-and-blooms/bitset | ||||||
|  |  | ||||||
|  | go 1.14 | ||||||
							
								
								
									
										2
									
								
								vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -16,9 +16,9 @@ import ( | |||||||
| 	"strings" | 	"strings" | ||||||
| 	"sync" | 	"sync" | ||||||
|  |  | ||||||
|  | 	"github.com/bits-and-blooms/bitset" | ||||||
| 	"github.com/opencontainers/selinux/pkg/pwalk" | 	"github.com/opencontainers/selinux/pkg/pwalk" | ||||||
| 	"github.com/pkg/errors" | 	"github.com/pkg/errors" | ||||||
| 	"github.com/willf/bitset" |  | ||||||
| 	"golang.org/x/sys/unix" | 	"golang.org/x/sys/unix" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								vendor/github.com/willf/bitset/go.mod
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/willf/bitset/go.mod
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,3 +0,0 @@ | |||||||
| module github.com/willf/bitset |  | ||||||
|  |  | ||||||
| go 1.14 |  | ||||||
							
								
								
									
										6
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							| @@ -43,6 +43,8 @@ github.com/Microsoft/hcsshim/pkg/go-runhcs | |||||||
| github.com/Microsoft/hcsshim/pkg/ociwclayer | github.com/Microsoft/hcsshim/pkg/ociwclayer | ||||||
| # github.com/beorn7/perks v1.0.1 | # github.com/beorn7/perks v1.0.1 | ||||||
| github.com/beorn7/perks/quantile | github.com/beorn7/perks/quantile | ||||||
|  | # github.com/bits-and-blooms/bitset v1.2.0 | ||||||
|  | github.com/bits-and-blooms/bitset | ||||||
| # github.com/cespare/xxhash/v2 v2.1.1 | # github.com/cespare/xxhash/v2 v2.1.1 | ||||||
| github.com/cespare/xxhash/v2 | github.com/cespare/xxhash/v2 | ||||||
| # github.com/cilium/ebpf v0.5.0 | # github.com/cilium/ebpf v0.5.0 | ||||||
| @@ -274,7 +276,7 @@ github.com/opencontainers/runc/libcontainer/user | |||||||
| # github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 | # github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 | ||||||
| ## explicit | ## explicit | ||||||
| github.com/opencontainers/runtime-spec/specs-go | github.com/opencontainers/runtime-spec/specs-go | ||||||
| # github.com/opencontainers/selinux v1.8.1 | # github.com/opencontainers/selinux v1.8.2 | ||||||
| ## explicit | ## explicit | ||||||
| github.com/opencontainers/selinux/go-selinux | github.com/opencontainers/selinux/go-selinux | ||||||
| github.com/opencontainers/selinux/go-selinux/label | github.com/opencontainers/selinux/go-selinux/label | ||||||
| @@ -324,8 +326,6 @@ github.com/tchap/go-patricia/patricia | |||||||
| # github.com/urfave/cli v1.22.2 => github.com/urfave/cli v1.22.1 | # github.com/urfave/cli v1.22.2 => github.com/urfave/cli v1.22.1 | ||||||
| ## explicit | ## explicit | ||||||
| github.com/urfave/cli | github.com/urfave/cli | ||||||
| # github.com/willf/bitset v1.1.11 |  | ||||||
| github.com/willf/bitset |  | ||||||
| # go.etcd.io/bbolt v1.3.5 | # go.etcd.io/bbolt v1.3.5 | ||||||
| ## explicit | ## explicit | ||||||
| go.etcd.io/bbolt | go.etcd.io/bbolt | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Phil Estes
					Phil Estes