mirror of https://github.com/bol-van/zapret/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
257 B
12 lines
257 B
#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);
|
|
|