mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 05:22:58 +03:00
13 lines
242 B
C
13 lines
242 B
C
#pragma once
|
|
|
|
#include <sys/capability.h>
|
|
#include <sys/types.h>
|
|
#include <stdbool.h>
|
|
|
|
bool setpcap(uint64_t caps);
|
|
int getmaxcap();
|
|
bool dropcaps();
|
|
bool droproot(uid_t uid, gid_t gid);
|
|
void daemonize();
|
|
bool writepid(const char *filename);
|