Page MenuHomeFreeBSD

comsat: move uid/gid setting earlier
ClosedPublic

Authored by emaste on Dec 2 2024, 5:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 10, 9:06 PM
Unknown Object (File)
Tue, Apr 8, 10:08 AM
Unknown Object (File)
Mar 24 2025, 11:54 PM
Unknown Object (File)
Mar 9 2025, 9:24 PM
Unknown Object (File)
Mar 8 2025, 1:29 PM
Unknown Object (File)
Mar 7 2025, 9:06 PM
Unknown Object (File)
Mar 6 2025, 4:22 AM
Unknown Object (File)
Mar 3 2025, 2:17 PM
Subscribers

Details

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

Suggested by:   jlduran
Obtained from:  NetBSD
Sponsored by:   The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste requested review of this revision.Dec 2 2024, 5:48 PM
emaste created this revision.
libexec/comsat/comsat.c
61

To ensure hostname is null-terminated (can be submitted separately, if considered appropriate).

63
139
175
176
198
214
emaste marked 5 inline comments as done.

Sorry about that, actually test building the change :)

This revision is now accepted and ready to land.Dec 2 2024, 7:42 PM
This revision was automatically updated to reflect the committed changes.