diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-12-07 16:00:20 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-12-07 16:00:20 +0100 |
| commit | 72a439b447166ae3ec0b81bc842716cf9d738419 (patch) | |
| tree | 54312782f4488f048c8c5b9b167196332aadf350 /executor/common.h | |
| parent | 60fd47e3086131bd0f3f16035b58469ea02acc75 (diff) | |
executor: add struct to cap structs
Otherwise it does not compile as C.
Also regenerate csource/common.go (it misses the MAX_PIDS change).
Diffstat (limited to 'executor/common.h')
| -rw-r--r-- | executor/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |
