Lines Matching defs:primary_gid
61 static void restrict_init_groups(gid_t primary_gid, gid_t privileged_gid,
67 if (primary_gid == getgid() && primary_gid == getegid()) {
72 if (setgid(primary_gid) == 0)
76 str_printfa(str, "setgid(%s", get_gid_str(primary_gid));
84 get_gid_str(primary_gid), get_gid_str(getegid()));
88 if (getegid() != 0 && primary_gid == getgid() &&
89 primary_gid == getegid()) {
96 if (setresgid(primary_gid, primary_gid, privileged_gid) != 0) {
98 get_gid_str(primary_gid), get_gid_str(primary_gid),
109 /* real, effective -> primary_gid
111 if (setregid(primary_gid, primary_gid) != 0) {
113 get_gid_str(primary_gid), get_gid_str(privileged_gid),