blob: 93270c1d425882c5348ab93a2ac88906a973b155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- util-vserver-0.30.210.orig/lib/syscall_setccaps-v13.hc 2004-03-24 02:07:11.000000000 +0100
+++ util-vserver-0.30.210/lib/syscall_setccaps-v13.hc 2006-03-03 17:19:15.000000000 +0100
@@ -25,7 +25,10 @@
{
struct vcmd_ctx_caps_v0 k_caps;
- k_caps.bcaps = caps->bcaps & caps->bmask;
+ if (caps->bmask)
+ k_caps.bcaps = caps->bcaps & caps->bmask;
+ else
+ k_caps.bcaps = ~0;
k_caps.ccaps = caps->ccaps;
k_caps.cmask = caps->cmask;
|