chromium/sandbox/linux/system_headers/capability.h

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_CAPABILITY_H_
#define SANDBOX_LINUX_SYSTEM_HEADERS_CAPABILITY_H_

#include <stdint.h>

// The following macros are taken from linux/capability.h.
// We only support capability version 3, which was introduced in Linux 2.6.26.
#ifndef _LINUX_CAPABILITY_VERSION_3
#define _LINUX_CAPABILITY_VERSION_3
#endif
#ifndef _LINUX_CAPABILITY_U32S_3
#define _LINUX_CAPABILITY_U32S_3
#endif
#ifndef CAP_TO_INDEX
#define CAP_TO_INDEX(x)
#endif
#ifndef CAP_TO_MASK
#define CAP_TO_MASK(x)
#endif
#ifndef CAP_SYS_CHROOT
#define CAP_SYS_CHROOT
#endif
#ifndef CAP_SYS_ADMIN
#define CAP_SYS_ADMIN
#endif

struct cap_hdr {};

struct cap_data {};

#endif  // SANDBOX_LINUX_SYSTEM_HEADERS_CAPABILITY_H_