Bug 1934121 - Not strict restrictive permissions in the doc folders: perl-devel [rhel-7.7.z]
Summary: Not strict restrictive permissions in the doc folders: perl-devel [rhel-7.7.z]
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: perl
Version: 7.7
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: perl-maint-list
QA Contact: RHEL CS Apps Subsystem QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-02 14:45 UTC by Petr Pisar
Modified: 2021-03-02 14:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1806523
Environment:
Last Closed: 2021-03-02 14:53:26 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Petr Pisar 2021-03-02 14:45:08 UTC
+++ This bug was initially created as a clone of Bug #1806523 +++

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 comment from Petr Pisar on 2020-02-24 13:14:58 GMT ---

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} .

----

The build infrastructure change also affects RHEL-7.7.z builds and would produce a broken build. We need to correct the spec file there in order not to create regressions.

Comment 1 Petr Pisar 2021-03-02 14:53:26 UTC
Actually this would not be regression: An affected perl-devel-5.16.3-294.el7_6.x86_64 has already been released:

$ rpm -qlvp perl-devel-5.16.3-294.el7_6.x86_64.rpm |grep stp
-rw-rw-r--    1 root     root                      576 čen 17  2013 /usr/share/doc/perl-devel-5.16.3/perl-example.stp
-rw-r--r--    1 root     root                      799 led  7  2019 /usr/share/systemtap/tapset/libperl5.16.3-64.stp

Thus the same malformed perl-devel-5.16.3-294.el7_6.1.x86_64.rpm won't be a regression:

$ rpm -qlvp perl-devel-5.16.3-294.el7_6.1.x86_64.rpm |grep stp
-rw-rw-r--    1 root     root                      576 čen 17  2013 /usr/share/doc/perl-devel-5.16.3/perl-example.stp
-rw-r--r--    1 root     root                      799 bře  2 15:21 /usr/share/systemtap/tapset/libperl5.16.3-64.stp


Note You need to log in before you can comment on or make changes to this bug.