ClickHouse/src/Common/hasLinuxCapability.h
2020-04-03 18:14:31 +03:00

14 lines
212 B
C++

#if defined(__linux__)
#include <linux/capability.h>
namespace DB
{
/// Check that the current process has Linux capability. Examples: CAP_IPC_LOCK, CAP_NET_ADMIN.
bool hasLinuxCapability(int cap);
}
#endif