mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
15 lines
225 B
C++
15 lines
225 B
C++
#pragma once
|
|
#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
|