projects
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
use CTX_USER2KERNEL() macro to transform ctx from user into kernel type
[util-vserver.git]
/
util-vserver
/
lib
/
syscall-compat.hc
diff --git
a/util-vserver/lib/syscall-compat.hc
b/util-vserver/lib/syscall-compat.hc
index
630265b
..
a3cdcba
100644
(file)
--- a/
util-vserver/lib/syscall-compat.hc
+++ b/
util-vserver/lib/syscall-compat.hc
@@
-35,7
+35,7
@@
vc_new_s_context_compat(ctx_t ctx, unsigned int remove_cap, unsigned int flags)
msg.remove_cap = remove_cap;
msg.flags = flags;
- return sys_virtual_context(VC_CMD(COMPAT, 1, 1), ctx, &msg);
+ return sys_virtual_context(VC_CMD(COMPAT, 1, 1), CTX_USER2KERNEL(ctx), &msg);
}
static inline ALWAYSINLINE int