mirror of
https://github.com/bol-van/zapret.git
synced 2026-01-02 22:58:52 +03:00
history purge
This commit is contained in:
20
tpws/sec.h
Normal file
20
tpws/sec.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
#include <sys/capability.h>
|
||||
|
||||
bool checkpcap(uint64_t caps);
|
||||
bool setpcap(uint64_t caps);
|
||||
int getmaxcap();
|
||||
bool dropcaps();
|
||||
#endif
|
||||
|
||||
bool can_drop_root();
|
||||
bool droproot(uid_t uid, gid_t gid);
|
||||
void print_id();
|
||||
void daemonize();
|
||||
bool writepid(const char *filename);
|
||||
Reference in New Issue
Block a user