summaryrefslogtreecommitdiffstats
path: root/src/capabilities.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/capabilities.c')
-rw-r--r--src/capabilities.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/capabilities.c b/src/capabilities.c
index 897ca3c..8a7e823 100644
--- a/src/capabilities.c
+++ b/src/capabilities.c
@@ -68,6 +68,7 @@ static void try_cap(cap_value_t cap) {
cap_free(name);
}
+/** Tries to acquire the capabilities needed to perform initialization without root privileges */
void fastd_cap_init(void) {
/* interface creation */
try_cap(CAP_NET_ADMIN);
@@ -79,6 +80,7 @@ void fastd_cap_init(void) {
try_cap(CAP_NET_RAW);
}
+/** Drops all capabilities */
void fastd_cap_drop(void) {
cap_t caps = cap_init();