- * Change a process's effective gid. * Side effects: newcred->cr_gid will be modified. * References: newcred must be an exclusive credential reference for the * duration of the call. */
| 2421 | * duration of the call. |
| 2422 | */ |
| 2423 | void |
| 2424 | change_egid(struct ucred *newcred, gid_t egid) |
| 2425 | { |
| 2426 | |
| 2427 | newcred->cr_groups[0] = egid; |
| 2428 | } |
| 2429 | |
| 2430 | /*- |
| 2431 | * Change a process's real uid. |
no outgoing calls
no test coverage detected