zapret/nfq/sec.h
bol-van eb6f962ba3 Revert "tpws,nfqws : remove cap library dependency"
This reverts commit 3c76e45692038077249b63a9666b11d930f8e283.
2020-01-20 15:10:49 +03:00

13 lines
257 B
C

#pragma once
#include <sys/capability.h>
#include <sys/types.h>
#include <stdbool.h>
bool setpcap(cap_value_t *caps, int ncaps);
int getmaxcap();
bool dropcaps();
bool droproot(uid_t uid, gid_t gid);
void daemonize();
bool writepid(const char *filename);