-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
non-root: add non-root test case to travis runs
For now the non-root test run on Travis is using CAP_SYS_ADMIN until there is a kernel and a 'setcap' available which understands CAP_CHECKPOINT_RESTORE. Signed-off-by: Adrian Reber <[email protected]>
- Loading branch information
1 parent
fdb337e
commit 5571e53
Showing
5 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/libcap/include/uapi/linux/capability.h b/libcap/include/uapi/linux/capability.h | ||
index 6856f1f..22429ed 100644 | ||
--- a/libcap/include/uapi/linux/capability.h | ||
+++ b/libcap/include/uapi/linux/capability.h | ||
@@ -405,7 +405,9 @@ struct vfs_ns_cap_data { | ||
|
||
#define CAP_BPF 39 | ||
|
||
-#define CAP_LAST_CAP CAP_BPF | ||
+#define CAP_CHECKPOINT_RESTORE 40 | ||
+ | ||
+#define CAP_LAST_CAP CAP_CHECKPOINT_RESTORE | ||
|
||
#define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters