Bug 859881 - yum upgrade selinux-policy-targeted runs restorecon
Summary: yum upgrade selinux-policy-targeted runs restorecon
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-24 09:34 UTC by Need Real Name
Modified: 2012-09-25 20:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-25 20:52:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2012-09-24 09:34:50 UTC
Description of problem:
When I run a yum upgrade, restorecon gets called.

This seems like a bad idea: what if an attacker can write a file to my home directory and it gets the wrong label? Then I run an upgrade, and the file is given a good label?

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2012-09-25 20:52:50 UTC
As an attacker you should not have been allowed to write a bad label in the first place.  restorecon is only run on differences between previous policy and new policy, which would not effect the homedir.

If a confined app is able to write something to your homedir then most likely the better attack route is to modify an app, since we run users as unconfined_t we are not necessarily protecting the user.


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