From c90fefc1161c58af34856aff7b7012f19f5d1f1b Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Fri, 4 May 2018 09:38:35 -0700 Subject: Fix runsc capabilities There was a typo and one new capability missing from the list PiperOrigin-RevId: 195427713 Change-Id: I6d9e1c6e77b48fe85ef10d9f54c70c8a7271f6e7 --- pkg/abi/linux/capability.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/abi/linux') diff --git a/pkg/abi/linux/capability.go b/pkg/abi/linux/capability.go index 1a1bd0ce3..b470ce0a5 100644 --- a/pkg/abi/linux/capability.go +++ b/pkg/abi/linux/capability.go @@ -32,7 +32,7 @@ const ( CAP_SETPCAP = Capability(8) CAP_LINUX_IMMUTABLE = Capability(9) CAP_NET_BIND_SERVICE = Capability(10) - CAP_NET_BROAD_CAST = Capability(11) + CAP_NET_BROADCAST = Capability(11) CAP_NET_ADMIN = Capability(12) CAP_NET_RAW = Capability(13) CAP_IPC_LOCK = Capability(14) @@ -58,9 +58,10 @@ const ( CAP_SYSLOG = Capability(34) CAP_WAKE_ALARM = Capability(35) CAP_BLOCK_SUSPEND = Capability(36) + CAP_AUDIT_READ = Capability(37) // MaxCapability is the highest-numbered capability. - MaxCapability = Capability(36) // CAP_BLOCK_SUSPEND as of 3.11 + MaxCapability = CAP_AUDIT_READ ) // Ok returns true if cp is a supported capability. -- cgit v1.2.3