oci/caps: remove hack for RHEL6 kernels
We no longer support these kernels, so we can remove the workaround
@@ -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
