Add CAP_NS_OVERRIDE (34).
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Signed-off-by: Serge H. Hallyn <sergeh@us.ibm.com>
diff --git a/libcap/include/linux/capability.h b/libcap/include/linux/capability.h
index 7d50ff6..58bc24e 100644
--- a/libcap/include/linux/capability.h
+++ b/libcap/include/linux/capability.h
@@ -332,7 +332,14 @@
#define CAP_MAC_ADMIN 33
-#define CAP_LAST_CAP CAP_MAC_ADMIN
+/* Allow acting on resources in another namespace. In
+ particular:
+ 1. when combined with CAP_KILL, kill users in another
+ user namespace
+ */
+#define CAP_NS_OVERRIDE 34
+
+#define CAP_LAST_CAP CAP_NS_OVERRIDE
#define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP)