Bug 448099 - tetex should restorecon -R /usr/share/texmf in %post
Summary: tetex should restorecon -R /usr/share/texmf in %post
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: tetex
Version: 5.2
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks: 445005
TreeView+ depends on / blocked
 
Reported: 2008-05-23 13:51 UTC by Milan Zázrivec
Modified: 2013-07-02 23:29 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, an error could have occurred and was logged when installing teTeX. This happened because several files installed in the /usr/share/texmf/ directory used an incorrect SELinux context. With this update, the files use the correct SELinux context and installation finishes without errors.
Clone Of:
Environment:
Last Closed: 2011-04-20 13:41:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0458 0 normal SHIPPED_LIVE tetex bug fix update 2011-04-20 13:41:39 UTC

Description Milan Zázrivec 2008-05-23 13:51:50 UTC
Description of problem:
Several files under /usr/share/texmf owned by tetex are being installed
with incorrect selinux context (probably result of running texhash in %post).
tetex should restorecon -R /usr/share/texmf in %post to fix this.

Version-Release number of selected component (if applicable):
tetex-3.0-33.2.el5_1.2 / RHEL5.2 GA

How reproducible:
Always

Steps to Reproduce:
1. Install RHEL5.2, tetex included, selinux enabled
2. # setfiles -vqn /etc/selinux/targeted/contexts/files/file_contexts \
     /usr/share/texmf|grep relabeling

Comment 1 Milan Zázrivec 2008-05-23 14:19:01 UTC
restorecon -R /usr/share/texmf in %post of tetex will not affect anaconda
installations, since policycoreutils (that restorecon is part of) is usually
installed after all tetex* packages.

David, would it be possible to fix the context of files under /usr/share/texmf
in anaconda using  setFileCons() ?

Comment 2 David Cantrell 2008-05-23 19:15:45 UTC
Yes, we can add it to the static list in anaconda that restorecon runs for.

Comment 3 RHEL Program Management 2008-07-21 23:01:59 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 6 Chris Lumens 2009-02-03 15:37:47 UTC
Putting all the possible files that could be modified by a package's %post script into a list in anaconda is not maintainable.  Instead, the tetex spec file should Requires(post): policycoreutils to make sure that package is installed early enough.  policycoreutils is going to get installed regardless, so not having a Requires doesn't help in any way.

Comment 15 errata-xmlrpc 2011-04-20 13:41:47 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0458.html

Comment 16 Eva Kopalova 2011-04-20 16:09:23 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, an error could have occurred and was logged when installing teTeX. This happened because several files installed in the /usr/share/texmf/ directory used an incorrect SELinux context. With this update, the files use the correct SELinux context and installation finishes without errors.


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