This repository has been archived by the owner on Sep 15, 2020. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[sos_collector] Set umask for all files created
Sets a umask of 0077 for all files created by sos-collector. This ensures collected sosrpeorts are not world readable and maintains the original permissions of the sos archives. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
- Loading branch information
72058f9There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CVE-2018-14650 was assigned to this issue.
72058f9There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you want to use PEP3127 integer literal syntax here, or this will break on Python3:
Py2:
Py3:
Python2 still allows leading zero notation for octal literals, but Python3 requires either
oorO(the letter).