Bug 1485789 - bogus permissions on /usr/share/doc/urw-fonts
Summary: bogus permissions on /usr/share/doc/urw-fonts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: urw-fonts
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Kaspar // Dee'Kej
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-28 06:02 UTC by Ralf Corsepius
Modified: 2018-03-13 17:18 UTC (History)
5 users (show)

Fixed In Version: urw-fonts-2.4-24.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-13 17:18:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ralf Corsepius 2017-08-28 06:02:19 UTC
Description of problem:

The urw-fonts package's permission on /usr/share/doc/urw-fonts are set read-only:

$ rpm -qlv urw-fonts | grep doc
drw-r--r--    2 root    root                        0 Feb 12  2017 /usr/share/doc/urw-fonts
-rw-r--r--    1 root    root                    17992 Apr 23  2001 /usr/share/doc/urw-fonts/COPYING
-rw-r--r--    1 root    root                     2245 Jan 18  2002 /usr/share/doc/urw-fonts/README
-rw-r--r--    1 root    root                     1317 Jul 12  2002 /usr/share/doc/urw-fonts/README.tweaks


Version-Release number of selected component (if applicable):
urw-fonts-2.4-23.fc26.noarch

Comment 1 David Kaspar // Dee'Kej 2017-08-28 10:07:14 UTC
Hello Ralph,

could you please elaborate on this? Because I don't see a reason why any files in /usr/share/doc/<package_name>/* should have other than read-only permissions.

These permissions are by default set with %doc macro in RPM specfile. If you look at other files located /usr/share/doc, they have all the same permissions (0644) AFAICT.

And please, don't forget that /usr folder can be mounted via network, where it can be completely set as read-only and the Fedora should still work in that case.

Unless you provide me with proper and valid usecase, why the files should have other than read-only permissions (for example some Fedora Wide Change tracking wiki), then I will close this BZ sooner or later.

  -- Dee'Kej --

Comment 2 Ralf Corsepius 2017-08-28 10:29:59 UTC
I realize, my initial posting wasn't well put and misleading.

My point is: /usr/share/doc/<packagename> directories
(here: /usr/share/doc/urw-fonts) need to carry worldwide excutable permissions.

ATM, you have:
# rpm -qlvp urw-fonts-2.4-23.fc26.noarch.rpm  | grep doc
drw-r--r--    2 root    root                        0 Feb 12  2017 /usr/share/doc/urw-fonts
-rw-r--r--    1 root    root                    17992 Apr 23  2001 /usr/share/doc/urw-fonts/COPYING
-rw-r--r--    1 root    root                     2245 Jan 18  2002 /usr/share/doc/urw-fonts/README
-rw-r--r--    1 root    root                     1317 Jul 12  2002 /usr/share/doc/urw-fonts/README.tweaks

A far as I can tell, the origin of this issue is rpm's behavior on %docdir having changed some rpm rsp. Fedora releases ago.

In your case the origin seem to be %defattr(0644,root,root,0755) in urw-fonts.spec

Comment 3 David Kaspar // Dee'Kej 2017-08-28 10:57:15 UTC
(In reply to Ralf Corsepius from comment #2)
> I realize, my initial posting wasn't well put and misleading.
> 
> My point is: /usr/share/doc/<packagename> directories
> (here: /usr/share/doc/urw-fonts) need to carry worldwide excutable
> permissions.
> 
> A far as I can tell, the origin of this issue is rpm's behavior on %docdir
> having changed some rpm rsp. Fedora releases ago.
> 
> In your case the origin seem to be %defattr(0644,root,root,0755) in
> urw-fonts.spec

Ah, OK, thanks for the update. :) When I try it myself, I indeed see what you have posted:

Normandy-SR4[dkaspar] ~/Downloads $ rpm -qlvp urw-fonts-2.4-23.fc26.noarch.rpm | grep doc
drw-r--r--    2 root    root      0 Feb 12  2017 /usr/share/doc/urw-fonts
-rw-r--r--    1 root    root  17992 Apr 23  2001 /usr/share/doc/urw-fonts/COPYING
-rw-r--r--    1 root    root   2245 Jan 18  2002 /usr/share/doc/urw-fonts/README
-rw-r--r--    1 root    root   1317 Jul 12  2002 /usr/share/doc/urw-fonts/README.tweaks

However, after the installation, everything seems to be as it should:

Normandy-SR4[dkaspar] /usr/share/doc $ rpm -q urw-fonts 
urw-fonts-2.4-22.fc24.noarch
Normandy-SR4[dkaspar] /usr/share/doc $ rpm -qlv urw-fonts-2.4-22.fc24.noarch | grep doc
drwxr-xr-x    2 root    root     0 Feb  5  2016 /usr/share/doc/urw-fonts
-rw-r--r--    1 root    root 17992 Apr 23  2001 /usr/share/doc/urw-fonts/COPYING
-rw-r--r--    1 root    root  2245 Jan 18  2002 /usr/share/doc/urw-fonts/README
-rw-r--r--    1 root    root  1317 Jul 12  2002 /usr/share/doc/urw-fonts/README.tweaks
Normandy-SR4[dkaspar] /usr/share/doc $ ll -d urw-fonts
drwxr-xr-x. 1 root      root    52 Jun 14  2016 urw-fonts/

---------------------

Anyway, the urw-fonts will be soon obsoleted (approximately in September, it depends on the new release of ghostscript-9.22) by a new font-package:
> urw-base35-fonts (BZ #1458840)
https://src.fedoraproject.org/rpms/urw-base35-fonts

In case it does not cause any significant problems for you, I will close this, and we will wait for the release of new package, which should have the correct permissions set. :) (It actually does not uses the /usr/share/doc anymore, only /usr/share/licenses, for which it uses %license macro, without the deprecated %defattr() macro.)

Best regards,

-- Dee'Kej --

Comment 4 Ralf Corsepius 2017-08-28 11:04:10 UTC
REOPENING.

Well, I do not agree with you. Fedora 26 is not EOL for at least 3 months and you refuse to fix an apparent bug in a deployed product?

What am I supposed to think of this?

Comment 5 David Kaspar // Dee'Kej 2017-08-28 11:21:31 UTC
(In reply to Ralf Corsepius from comment #4)
> REOPENING.
> 
> Well, I do not agree with you. Fedora 26 is not EOL for at least 3 months
> and you refuse to fix an apparent bug in a deployed product?
> 
> What am I supposed to think of this?

Well, there is an error in specfile. But I still do not see what this actually breaks... Can you provide some usecase where it causes a problem?

Because what I can see after installation is that the /usr/share/doc/urw-fonts have the 0755 permissions as it should:

Normandy-SR4[dkaspar] ~ $ ll -d /usr/share/doc/urw-fonts
drwxr-xr-x. 1 root root 52 Jun 14  2016 /usr/share/doc/urw-fonts/

It has been like this for a very long time (~years) now in Fedora, and as I said -  the package will be soon obsoleted by a new package (approximately a month). Unless you provide me with a use-case where it *actually* breaks anything, I don't see a reason why this couldn't wait ~month, since it didn't bother anyone before for such a long time... :)

Comment 6 Ralf Corsepius 2017-09-03 08:20:39 UTC
(In reply to David Kaspar [Dee'Kej] from comment #5)
> (In reply to Ralf Corsepius from comment #4)
> > REOPENING.
> > 
> > Well, I do not agree with you. Fedora 26 is not EOL for at least 3 months
> > and you refuse to fix an apparent bug in a deployed product?
> > 
> > What am I supposed to think of this?
> 
> Well, there is an error in specfile. But I still do not see what this
> actually breaks... Can you provide some usecase where it causes a problem?


# rpm -qV urw-fonts
missing   d /usr/share/doc/urw-fonts/COPYING (Permission denied)
missing   d /usr/share/doc/urw-fonts/README (Permission denied)
missing   d /usr/share/doc/urw-fonts/README.tweaks (Permission denied)

# ls /usr/share/doc/urw-fonts/
ls: cannot access '/usr/share/doc/urw-fonts/README': Permission denied
ls: cannot access '/usr/share/doc/urw-fonts/README.tweaks': Permission denied
ls: cannot access '/usr/share/doc/urw-fonts/COPYING': Permission denied
COPYING  README  README.tweaks

# cat /usr/share/doc/urw-fonts/COPYING 
cat: /usr/share/doc/urw-fonts/COPYING: Permission denied

> It has been like this for a very long time (~years) now in Fedora,
This doesn't mean much nor I don't care.

Comment 7 David Kaspar // Dee'Kej 2018-03-05 12:58:55 UTC
'urw-fonts' package is now retired for master, f28, and f27. It has been replaced with 'urw-base35-fonts'.

'urw-fonts' will be kept in in f26 branch until EOL of Fedora 26.

Since F26 will be EOL in August (approximately) - and no proper reproducer has been provided - I'm closing this BZ as WONTFIX.

Comment 8 Ralf Corsepius 2018-03-05 13:32:30 UTC
Reopening

(In reply to David Kaspar [Dee'Kej] from comment #7)
> Since F26 will be EOL in August (approximately)
Still half a year to go. If you consider this to be an appropriate response to a BZ, I do not agree with you.

> - and no proper reproducer
> has been provided

Sigh - Here we go:
# mock -r fedora-26-x86_64 --init
# mock -r fedora-26-x86_64 --install urw-fonts
# ls -ld /var/lib/mock/fedora-26-x86_64/root/usr/share/doc/urw-fonts
drw-r--r--. 2 root root 4096 Mar  5 14:28 /var/lib/mock/fedora-26-x86_64/root/usr/share/doc/urw-fonts

Comment 9 David Kaspar // Dee'Kej 2018-03-06 12:08:04 UTC
(In reply to Ralf Corsepius from comment #8)
> Sigh - Here we go:
> # mock -r fedora-26-x86_64 --init
> # mock -r fedora-26-x86_64 --install urw-fonts
> # ls -ld /var/lib/mock/fedora-26-x86_64/root/usr/share/doc/urw-fonts
> drw-r--r--. 2 root root 4096 Mar  5 14:28
> /var/lib/mock/fedora-26-x86_64/root/usr/share/doc/urw-fonts

And again - what does it *actually* break? For example are koji builds broken because of this? Or do users of Fedora 26 experience some difficulties?

I'm not going to play CLOSING/REOPENING ping pong with you here, especially with your attitude:

(In reply to Ralf Corsepius from comment #6)
> This doesn't mean much nor I don't care.

So here, enjoy: https://koji.fedoraproject.org/koji/taskinfo?taskID=25503107

------------------

There are problems with higher importance that needs my attention. Problems that actually affect users of Fedora, which need fixing...

Have a nice day!

Comment 10 Fedora Update System 2018-03-06 12:10:17 UTC
urw-fonts-2.4-24.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-4cb7ea3d32

Comment 11 Fedora Update System 2018-03-06 17:53:45 UTC
urw-fonts-2.4-24.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-4cb7ea3d32

Comment 12 Fedora Update System 2018-03-13 17:18:48 UTC
urw-fonts-2.4-24.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


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