Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #6659] RPMLint security warning - missing-call-to-setgroups-before-setuid /usr/sbin/icinga2 #1766

Closed
icinga-migration opened this issue Jul 7, 2014 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/6659

Created by theh on 2014-07-07 08:55:25 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2014-07-11 12:27:15 +00:00)
Target Version: 2.0.2
Last Update: 2014-07-11 12:29:08 +00:00 (in Redmine)

Icinga Version: 2.0.0

I get a security related RPMLint warning when building Icinga 2.

icinga2-bin.x86_64: W: missing-call-to-setgroups-before-setuid /usr/sbin/icinga2
[ 418s] This executable is calling setuid and setgid without setgroups or initgroups.
[ 418s] There is a high probability this mean it didn't relinquish all groups, and
[ 418s] this would be a potential security issue to be fixed. Seek POS36-C on the web
[ 418s] for details about the problem.

I don't know the code that well so it would be great if someone could check if this warning is relevant. More information about this issue: https://www.securecoding.cert.org/confluence/display/seccode/POS36-C.+Observe+correct+revocation+order+while+relinquishing+privileges

Changesets

2014-07-11 12:26:21 +00:00 by gbeutner 4cc51f9

Call setgroups() before setgid/setuid

fixes #6659
@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-07-11 08:36:11 +00:00

  • Target Version set to 2.0.2

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-07-11 09:04:56 +00:00

  • Estimated Hours set to 2

Required changes:

  • Figure out whether we need setgroups/initgroups
  • Add setgroups/initgroups call

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-07-11 12:13:57 +00:00

  • Assigned to set to gbeutner

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-07-11 12:27:15 +00:00

  • Status changed from New to Resolved
  • Done % changed from 0 to 100

Applied in changeset 4cc51f9.

@icinga-migration icinga-migration added the bug Something isn't working label Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.0.2 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant