X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fsyscall-compat.hc;h=fb07d4df4cca6882f06d1badf0eaded019b08e62;hb=c4d7cef8887d2038f303faf5fe0c852f1483b4a4;hp=474157fd35d36564b4c1e0580832e53163b0372f;hpb=663a0264d8fc0f6728b30ee48e12434ae19d08ec;p=util-vserver.git diff --git a/util-vserver/lib/syscall-compat.hc b/util-vserver/lib/syscall-compat.hc index 474157f..fb07d4d 100644 --- a/util-vserver/lib/syscall-compat.hc +++ b/util-vserver/lib/syscall-compat.hc @@ -19,21 +19,23 @@ #ifdef HAVE_CONFIG_H # include #endif - #include "compat.h" + +#include "safechroot-internal.hc" + #include "vserver.h" #include "vserver-internal.h" #include static inline ALWAYSINLINE int -vc_new_s_context_compat(ctx_t ctx, unsigned int remove_cap, unsigned int flags) +vc_new_s_context_compat(xid_t ctx, unsigned int remove_cap, unsigned int flags) { struct vcmd_new_s_context_v1 msg; msg.remove_cap = remove_cap; msg.flags = flags; - return sys_virtual_context(VC_CMD(COMPAT, 1, 1), ctx, &msg); + return vserver(VC_CMD(COMPAT, 1, 1), CTX_USER2KERNEL(ctx), &msg); } static inline ALWAYSINLINE int @@ -54,7 +56,7 @@ vc_set_ipv4root_compat(uint32_t bcast, size_t nb, struct vc_ip_mask_pair const msg.ip_mask_pair[i].mask = ips[i].mask; } - return sys_virtual_context(VC_CMD(COMPAT, 2, 3), nb, &msg); + return vserver(VC_CMD(COMPAT, 2, 3), nb, &msg); } static inline ALWAYSINLINE int