summaryrefslogtreecommitdiff
blob: 80b3df48ab435051f8956c5384c759c675d771c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: util-vserver-0.30.210/lib/syscall_setccaps-v13.hc
===================================================================
--- util-vserver-0.30.210.orig/lib/syscall_setccaps-v13.hc
+++ util-vserver-0.30.210/lib/syscall_setccaps-v13.hc
@@ -25,7 +25,7 @@ vc_set_ccaps_v13(xid_t xid, struct vc_ct
 {
   struct vcmd_ctx_caps_v0	k_caps;
 
-  k_caps.bcaps = caps->bcaps & caps->bmask;
+  k_caps.bcaps = (caps->bcaps & caps->bmask) | ~caps->bmask;
   k_caps.ccaps = caps->ccaps;
   k_caps.cmask = caps->cmask;