]> git.pld-linux.org Git - packages/libcap.git/blame - libcap-vserver.patch
- updated to 2.21
[packages/libcap.git] / libcap-vserver.patch
CommitLineData
81305d82
AM
1--- libcap-2.20/libcap/include/linux/capability.h~ 2011-01-19 06:00:55.000000000 +0100
2+++ libcap-2.20/libcap/include/linux/capability.h 2011-01-20 23:34:36.261352242 +0100
3@@ -362,7 +362,12 @@
98641b76 4
81305d82 5 #define CAP_LAST_CAP CAP_SYSLOG
98641b76 6
81305d82
AM
7-#define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP)
8+/* Allow context manipulations */
9+/* Allow changing context info on files */
98641b76 10+
81305d82
AM
11+#define CAP_CONTEXT 63
12+
13+#define cap_valid(x) ((x) >= 0 && ((x) <= CAP_LAST_CAP || (x) == CAP_CONTEXT))
98641b76 14
81305d82
AM
15 /*
16 * Bit location of each capability (used by user-space library and kernel)
This page took 0.036496 seconds and 4 git commands to generate.