ClickHouse/src/Common/hasLinuxCapability.h

15 lines
225 B
C++
Raw Normal View History

2020-10-10 18:37:02 +00:00
#pragma once
#if defined(__linux__)
#include <linux/capability.h>
namespace DB
{
2018-11-14 01:59:32 +00:00
/// Check that the current process has Linux capability. Examples: CAP_IPC_LOCK, CAP_NET_ADMIN.
bool hasLinuxCapability(int cap);
}
#endif