Bug 1806523

Summary: Not strict restrictive permissions in the doc folders: perl-devel
Product: Red Hat Enterprise Linux 7 Reporter: Denis Volkov <dvolkov>
Component: perlAssignee: perl-maint-list
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: low Docs Contact: Lenka Špačková <lkuprova>
Priority: unspecified    
Version: 7.7CC: bnater, jorton, ppisar
Target Milestone: rcKeywords: EasyFix, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: perl-5.16.3-297.el7 Doc Type: Bug Fix
Doc Text:
.Documentation files from `perl-devel` no longer have a write permission for a group Previously, certain documentation files from the `perl-devel` package had a write permission set for a group. Consequently, users in the root group could write into these files, which represented a security risk. With this update, the write bit for a group has been removed for the affected files. As a result, no documentation file from `perl-devel` has a write permission set for a group.
Story Points: ---
Clone Of:
: 1913693 1934121 (view as bug list) Environment:
Last Closed: 2020-09-29 19:18:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Denis Volkov 2020-02-24 12:46:16 UTC
Description of problem:
Files in documentation folder have 'loose' permissions:
    In the file /usr/share/doc/perl-devel-5.16.3/perl-example.stp , the permission is 0664. 0755 is expected or more restrictive

Version-Release number of selected component (if applicable):
    perl-devel-5.16.3-294.el7_6.x86_64

Additional info:
Customer has security checker that complains about loose permissions for tomcat documentation files. Customer is concerned that group-write permissions to the documentation files may affect the security of the system and requesting for removing write permissions on group.

Comment 2 Petr Pisar 2020-02-24 13:05:33 UTC
I confirm the file has 0664 permissions while it should have 0644 permission.

There is no 7.10 version of RHEL. I'm correcting the version value of this bug report the latest released 7.7. If your customer has a different RHEL version or need the fix in any previous RHEL versions, let me know.

Comment 3 Petr Pisar 2020-02-24 13:14:58 UTC
This bug is caused by a 0002 umask on the build server. A simple fix is needed to the specification file:

 #copy the example script
-cp -a %{SOURCE5} .
+install -m 0644 %{SOURCE5} .

Comment 14 errata-xmlrpc 2020-09-29 19:18:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (perl bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3854