mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
oci/caps: remove hack for RHEL6 kernels
We no longer support these kernels, so we can remove the workaround Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
e6a3313f16
commit
94334153b5
1 changed files with 0 additions and 4 deletions
|
@ -12,10 +12,6 @@ var capabilityList Capabilities
|
|||
|
||||
func init() {
|
||||
last := capability.CAP_LAST_CAP
|
||||
// hack for RHEL6 which has no /proc/sys/kernel/cap_last_cap
|
||||
if last == capability.Cap(63) {
|
||||
last = capability.CAP_BLOCK_SUSPEND
|
||||
}
|
||||
for _, cap := range capability.List() {
|
||||
if cap > last {
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue