Closed brianjmurrell closed 7 months ago
Technically, the uid could be set but not the gid, which might be the complaint here? https://github.com/hpc/mpifileutils/blob/a80a6da975c4e24cfb0251c86b01000b6630853d/src/dcp/dcp.c#L398-L418
@adammoody Is it a valid case for someone to run dcp --uid
without --gid
?
I should have noted that the particular issue that rpmlint
was complaining about was not calling setgroups()
before calling setuid()
, to relinquish any elevated group privileges that are not wanted/necessary after the setuid()
.
Any update here?
@brianjmurrell I'll run a sample through our linter to see if I can fix this
I ran #569 through our linter and it does resolve the warnings.
While running a linter (
rpmlint
) on the results of a build we are getting an error that refers to POS36-C. Observe correct revocation order while relinquishing privileges fordcp
.Is that actually a problem or is it a false-positive of some sort?