Description of problem: polipo touches /var/log/polipo in post scriplet postinstall scriptlet (using /bin/sh): [ -e /var/log/polipo ] || /bin/touch /var/log/polipo /bin/chmod -f 0640 /var/log/polipo /bin/chown -f polipo:polipo /var/log/polipo but does not take ownership: # rpm -qf /var/log/polipo file /var/log/polipo is not owned by any package Version-Release number of selected component (if applicable): polipo-1.0.4.1-4.fc16.x86_64 Additional info: Can you install /var/log/polipo instead? Because the current method can cause /var/log/polipo to end up with a wrong selinux context.
Lots of packages don't claim ownership of their logs, so I don't think that's what you're really complaining about. The scriptlet however should not create this file.
True.this is about labelling for me first and foremost. postinstall scriptlet (using /bin/sh): [ -e /var/log/polipo ] || /bin/touch /var/log/polipo /bin/chmod -f 0640 /var/log/polipo /bin/chown -f polipo:polipo /var/log/polipo /sbin/restorecon /var/log/polipo ..would probably fix that. However i would rather see the file installed if possible.
For now, I will run restorecon... Later I will look into eliminating this code altogether.
polipo-1.0.4.1-6.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/polipo-1.0.4.1-6.fc16
polipo-1.0.4.1-6.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/polipo-1.0.4.1-6.fc15
Package polipo-1.0.4.1-6.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing polipo-1.0.4.1-6.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-0840/polipo-1.0.4.1-6.fc16 then log in and leave karma (feedback).
polipo-1.0.4.1-6.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
polipo-1.0.4.1-6.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
user polipo is not allowed to add directory entries to /var/log which is only writable by user root; https://bugzilla.redhat.com/show_bug.cgi?id=770878#c7