7 void drop_privileges(bool enforce
, uid_t uid
, gid_t gid
)
11 panic("Uid cannot be the same as the current user!\n");
13 panic("Gid cannot be the same as the current user!\n");
16 panic("Unable to drop group privileges: %s!\n", strerror(errno
));
18 panic("Unable to drop user privileges: %s!\n", strerror(errno
));