X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Fvattribute.c;h=566125b9a3e7e5607ac883cd5567b5f84d0ba1b0;hb=a917f24ef7b003dcef54a3db2644cf9cb4bc2db2;hp=da87891c70d3dc2b0f1678125dec4ba6242ceff7;hpb=44e7d56b12c9068077af46c5931f1d01941f1e4e;p=util-vserver.git diff --git a/util-vserver/src/vattribute.c b/util-vserver/src/vattribute.c index da87891..566125b 100644 --- a/util-vserver/src/vattribute.c +++ b/util-vserver/src/vattribute.c @@ -70,7 +70,7 @@ showHelp(int fd, char const *cmd, int res) WRITE_MSG(fd, " --set [--xid ] [--bcap [~!]] [--ccap [~!]] [--flag [~!]] [--secure] -- [ *]\n" "\n" - " --bcap ... system capability to be removed\n" + " --bcap ... system capability to be added\n" " --cap ... context capability to be added\n" "\n" "Please report bugs to " PACKAGE_BUGREPORT "\n"); @@ -143,7 +143,7 @@ parseSecure(struct vc_ctx_flags UNUSED * flags, { caps->ccaps = ~0ull; caps->cmask = ~0ull; - caps->bcaps = vc_get_securecaps(); + caps->bcaps = ~vc_get_insecurecaps(); caps->bmask = ~0ull; } @@ -178,7 +178,6 @@ int main(int argc, char *argv[]) } if (args.xid==VC_NOCTX) args.xid = Evc_get_task_xid(0); - args.caps.bcaps = ~args.caps.bcaps; if ((args.caps.cmask || args.caps.bmask) && vc_set_ccaps(args.xid, &args.caps)==-1)