| 1 | #if defined(__linux__) | 
|---|---|
| 2 | |
| 3 | #include <linux/capability.h> | 
| 4 | |
| 5 | namespace DB | 
| 6 | { | 
| 7 | |
| 8 | /// Check that the current process has Linux capability. Examples: CAP_IPC_LOCK, CAP_NET_ADMIN. | 
| 9 | bool hasLinuxCapability(int cap); | 
| 10 | |
| 11 | } | 
| 12 | |
| 13 | #endif | 
| 14 | 
| 1 | #if defined(__linux__) | 
|---|---|
| 2 | |
| 3 | #include <linux/capability.h> | 
| 4 | |
| 5 | namespace DB | 
| 6 | { | 
| 7 | |
| 8 | /// Check that the current process has Linux capability. Examples: CAP_IPC_LOCK, CAP_NET_ADMIN. | 
| 9 | bool hasLinuxCapability(int cap); | 
| 10 | |
| 11 | } | 
| 12 | |
| 13 | #endif | 
| 14 |