--- 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;