diff options
author | Sawyer X <xsawyerx@cpan.org> | 2016-02-20 00:20:38 +0100 |
---|---|---|
committer | Sawyer X <xsawyerx@cpan.org> | 2016-02-20 15:26:55 +0100 |
commit | 07450df75585c03dda7c25f07a88139918aeb0ea (patch) | |
tree | ab6812499248fea18c62b35cdf2f3036ee3183c0 | |
parent | 9857cc20fa16f8dd93813fbb8f839830d1a4fd51 (diff) | |
download | perl-07450df75585c03dda7c25f07a88139918aeb0ea.tar.gz |
Document e57270be442bfaa9dc23eebd67485e5a806b44e3:
I wasn't sure where or how much of it to document, but it seems
like it's important, and this relating to permissions not being
removed, I consider it security-related. This is similiar to what
the original Debian ticket that relates to it mentioned.
I've cut Niko's text a bit shorter, taken from the commit message
itself.
-rw-r--r-- | pod/perldelta.pod | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 56db8715a2..fbe9a23b98 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -36,11 +36,18 @@ platform. =head1 Security -XXX Any security-related notices go here. In particular, any security -vulnerabilities closed should be noted here rather than in the -L</Selected Bug Fixes> section. +=head2 Set proper umask before calling C<mkstemp(3)> -[ List each security issue as a =head2 entry ] +In 5.22 perl started setting umask to 0600 before calling C<mkstemp(3)> +and restoring it afterwards. This wrongfully tells open(2) to strip +the owner read and write bits from the given mode before applying it, +rather than the intended negation of leaving only those bits in place. + +Systems that use mode 0666 in C<mkstemp(3)> (like old versions of +glibc) createa a file with permissions 0066, leaving world read and +write permissions regardless of current umask. + +This has been fixed by using umask 0177 instead. [perl #127322] =head1 Incompatible Changes |