HomeFreeBSD

comsat: move uid/gid setting earlier

Description

comsat: move uid/gid setting earlier

It's good to reduce privilege as early as possible.

Suggested by: jlduran
Reviewed by: jlduran
Obtained from: NetBSD
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47869

(cherry picked from commit 91629228e3df14997df12ffc6e7be6b9964e5463)

Details

Provenance
emasteAuthored on Dec 1 2024, 8:43 PM
Reviewer
jlduran
Differential Revision
D47869: comsat: move uid/gid setting earlier
Parents
rGbb9678f1ff68: comsat: Use initgroups and setgid not just setuid
Branches
Unknown
Tags
Unknown