Bug 552549 - yum/logging creates yum.log with wrong permissions
Summary: yum/logging creates yum.log with wrong permissions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-05 14:09 UTC by Oliver Henshaw
Modified: 2014-01-21 23:13 UTC (History)
5 users (show)

Fixed In Version: yum-3.2.28-3.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-05 23:47:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Oliver Henshaw 2010-01-05 14:09:20 UTC
Description of problem:

After updating in the new year I noticed that I could no longer view the yum.log from my user account. This seems to be due to logrotate creating the new file with overly restrictive read permissions.

$ ll /var/log/yum.log*
-rw-------. 1 root root    171 2010-01-05 13:04 /var/log/yum.log
-rw-r--r--. 1 root root 108357 2010-01-04 14:51 /var/log/yum.log-20100104
$ cat /etc/logrotate.d/yum
/var/log/yum.log {
    missingok
    notifempty
    size 30k
    yearly
    create 0600 root root
}


# chmod go+r /var/log/yum.log
fixes things.


Version-Release number of selected component (if applicable):

yum-3.2.24-2.fc11.noarch
logrotate-3.7.8-3.fc11.i586

Comment 1 seth vidal 2010-01-05 14:19:18 UTC
The create 0600 root root has been there since the dawn of time:

^aaa1b77 (Seth Vidal 2002-06-07 05:11:03 +0000 6)     create 0600 root root


So I'm not sure what change you'd be talking about.

Comment 2 James Antill 2010-01-05 14:54:44 UTC
I think the problem is the other way around. If you install yum and run it beforfe logrotate runs then yum creates /var/log/yum.log via. logging.FileLogger() ... which just uses: open(name, 'a').

I guess we should probably test to see if the file is there and create+fchmod it.

Comment 3 Bug Zapper 2010-04-28 11:39:24 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Oliver Henshaw 2010-04-29 15:48:08 UTC
Behaviour is unchanged on a recent F13 nightly (20100418).

Comment 5 seth vidal 2010-04-30 18:37:08 UTC
patch sent upstream for this.

Comment 6 Oliver Henshaw 2010-05-02 12:29:59 UTC
Is it really correct that /var/log/yum.log shouldn't be world-readable? At least on F12, I can browse 'yum history' as a normal user; and iirc packagekit also makes transaction-history accessible.

Comment 7 seth vidal 2010-05-02 16:54:15 UTC
yum history will no longer create world readable files.

that was a bug that has been fixed.

Comment 8 Fedora Update System 2010-08-02 14:12:01 UTC
yum-3.2.28-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc13

Comment 9 Fedora Update System 2010-08-02 14:13:31 UTC
yum-3.2.28-1.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc14

Comment 10 Fedora Update System 2010-08-02 14:15:04 UTC
yum-3.2.28-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc12

Comment 11 Fedora Update System 2010-08-03 00:39:49 UTC
yum-3.2.28-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update yum'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc13

Comment 12 Fedora Update System 2010-08-03 00:57:20 UTC
yum-3.2.28-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update yum'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc12

Comment 13 Fedora Update System 2010-08-03 02:15:00 UTC
yum-3.2.28-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update yum'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc14

Comment 14 Fedora Update System 2010-08-05 23:45:09 UTC
yum-3.2.28-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2010-08-12 20:16:04 UTC
yum-3.2.28-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc12

Comment 16 Fedora Update System 2010-08-12 20:18:29 UTC
yum-3.2.28-3.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc13

Comment 17 Fedora Update System 2010-08-12 20:20:54 UTC
yum-3.2.28-3.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc14

Comment 18 Fedora Update System 2010-08-17 05:46:14 UTC
yum-3.2.28-3.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2010-08-20 02:19:51 UTC
yum-3.2.28-3.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2010-08-24 01:37:31 UTC
yum-3.2.28-3.fc14 has been pushed to the Fedora 14 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.