diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-06-21 18:05:11 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-06-21 18:05:11 +0000 |
commit | bbb135e87199a4ef766246273c6ee6554f779d6b (patch) | |
tree | 011ca32149c260b91f0ae9ea7eebbb51cf13089f /pkg/abi/linux | |
parent | eac2377720a7defbdbec2180825335d2a5cb3fc9 (diff) | |
parent | 054b5632ef9f2ce72b4aaa32f68ecb83b1c41834 (diff) |
Merge 054b5632 (automated)
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r-- | pkg/abi/linux/capability.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/abi/linux/capability.go b/pkg/abi/linux/capability.go index 65dd77e6e..965f74663 100644 --- a/pkg/abi/linux/capability.go +++ b/pkg/abi/linux/capability.go @@ -60,13 +60,14 @@ const ( CAP_BLOCK_SUSPEND = Capability(36) CAP_AUDIT_READ = Capability(37) - // MaxCapability is the highest-numbered capability. - MaxCapability = CAP_AUDIT_READ + // CAP_LAST_CAP is the highest-numbered capability. + // Seach for "CAP_LAST_CAP" to find other places that need to change. + CAP_LAST_CAP = CAP_AUDIT_READ ) // Ok returns true if cp is a supported capability. func (cp Capability) Ok() bool { - return cp >= 0 && cp <= MaxCapability + return cp >= 0 && cp <= CAP_LAST_CAP } // String returns the capability name. |