aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/hasLinuxCapability.h
blob: 9af555afa50d6416bc33ec4b67bf775138a5849e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once
#if defined(OS_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