1
0
mirror of https://github.com/bol-van/zapret.git synced 2025-05-02 11:52:58 +03:00
2020-01-02 13:10:28 +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);