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

Handler for STIG-ID V-38647 needs to more-gracefully handle multiple umask-definition lines #19

Closed
ferricoxide opened this issue Nov 14, 2014 · 1 comment

Comments

@ferricoxide
Copy link
Member

The /etc/profile shipped in the setup RPM has a starting umask definition-block that looks like:

if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
    umask 002
else
    umask 022
fi

This handler doesn't deal with this structure very well. Currently, falls back and clobbers the above - replacing with "077". Might be better to either have the handler nuke this entire block or append a umask 077 to the file (not tidy but should override all prior umask defines).

@ferricoxide
Copy link
Member Author

OBE: EL6 no longer supported by vendor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant