From 72a439b447166ae3ec0b81bc842716cf9d738419 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 7 Dec 2016 16:00:20 +0100 Subject: executor: add struct to cap structs Otherwise it does not compile as C. Also regenerate csource/common.go (it misses the MAX_PIDS change). --- executor/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor') diff --git a/executor/common.h b/executor/common.h index d71802dab..54597e943 100644 --- a/executor/common.h +++ b/executor/common.h @@ -522,8 +522,8 @@ static int namespace_sandbox_proc(void* arg) // Previously it lead to hangs because the loop process stopped due to SIGSTOP. // Note that a process can always ptrace its direct children, which is enough // for testing purposes. - __user_cap_header_struct cap_hdr = {}; - __user_cap_data_struct cap_data[2] = {}; + struct __user_cap_header_struct cap_hdr = {}; + struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) -- cgit mrf-deployment