-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Description
As I'm packaging gensio for Fedora and preparing it for review I've stumbled across this error from rpmlint:
gensio.x86_64: E: missing-call-to-setgroups-before-setuid /usr/sbin/gtlsshd
If we have rpmlint explain this error to us we learn
$ rpmlint -e missing-call-to-setgroups-before-setuid
missing-call-to-setgroups-before-setuid:
This executable is calling setuid and setgid without setgroups or initgroups.
This means it didn't relinquish all groups, and this would be a potential
security issue.
I think it is a little sad about what is happening here: https://github.com/cminyard/gensio/blob/master/tools/gtlsshd.c#L1045
In looking into it more I've found this discussion on StackOverflow: https://security.stackexchange.com/questions/122141/always-setgroups-before-setuid
To be honest, I don't have enough experience to determine whether this an actual problem or not. I'd at least want to try to understand it better because it for sure will come up in the packaging review.
Metadata
Metadata
Assignees
Labels
No labels