Page MenuHomeFreeBSD

comsat: Use initgroups and setgid not just setuid
ClosedPublic

Authored by emaste on Nov 28 2024, 4:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 8, 9:06 PM
Unknown Object (File)
Wed, Apr 8, 8:55 AM
Unknown Object (File)
Tue, Apr 7, 8:51 AM
Unknown Object (File)
Sun, Apr 5, 1:02 AM
Unknown Object (File)
Sat, Apr 4, 12:30 PM
Unknown Object (File)
Fri, Apr 3, 8:58 PM
Unknown Object (File)
Sun, Mar 22, 12:27 AM
Unknown Object (File)
Sat, Mar 21, 7:51 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.
jlduran added inline comments.
libexec/comsat/comsat.c
214–215

I would suggest also updating this comment

This revision is now accepted and ready to land.Nov 29 2024, 10:21 PM

One thing I've noticed is that NetBSD moved the setting of groups/uid/gid earlier to inside notify() (https://github.com/NetBSD/src/commit/46b017828cee516770586497237aed6182b1decf). I think failing earlier is also a good move.

One thing I've noticed is that NetBSD moved the setting of groups/uid/gid earlier to inside notify() (https://github.com/NetBSD/src/commit/46b017828cee516770586497237aed6182b1decf). I think failing earlier is also a good move.

Not a bad idea, can follow up with that (and check for any other improvements from NetBSD or OpenBSD)