nfqws,tpws: use initgroups() if --user specified

This commit is contained in:
bol-van
2025-06-11 20:15:43 +03:00
parent f3d48b7160
commit f09d918b40
11 changed files with 125 additions and 97 deletions

View File

@@ -84,7 +84,7 @@ bool dropcaps(void);
bool sec_harden(void);
bool can_drop_root();
bool droproot(uid_t uid, gid_t *gid, int gid_count);
bool droproot(uid_t uid, const char *user, const gid_t *gid, int gid_count);
void print_id(void);
void daemonize(void);
bool writepid(const char *filename);