Add support for Linux capabilities

Implement Linux capability support for services, allowing them to run
with minimal required privileges instead of running as root. This uses
the modern IAB (Inheritable, Ambient, Bounding) API from libcap.
This commit is contained in:
Aaron Andersen committed 2025-11-30 11:36:53 -05:00
1 parent c23952cd9e
commit be2a0ec3e7
7 files changed
+267 -3

No files matched your search

+1
View File
@@ -191,6 +191,7 @@ typedef struct svc {
/* Identity */
char username[MAX_USER_LEN];
char group[MAX_USER_LEN];
char capabilities[MAX_CMD_LEN];
/* Command, arguments and service description */
char cmd[MAX_CMD_LEN];