Bug 477892

Summary: SELinux denies 'read write' to restorecon on /root.
Product: [Fedora] Fedora Reporter: nol888
Component: kdebaseAssignee: Than Ngo <than>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: dwalsh, jkubin, jreznik, kevin, lorenzo, ltinkl, mgrepl, rdieter, than, tuxbrewr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-09 20:09:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description nol888 2008-12-25 00:27:05 UTC
Description of problem:
Attempting to `restorecon -R -v /root` results in a SELinux denial.  Summary "SELinux is preventing restorecon (setfiles_t) "read write" unconfined_t."

Version-Release number of selected component (if applicable):
3.5.13-18.fc10

How reproducible:
Always

Steps to Reproduce:
1. Attempt `restorecon' on /root.
  
Additional info:
Received this error after attempting to fix plethora of AVC denials as KDE started up as root.  Running restorecon only works on a few files before this AVC denial is thrown and restorecon fails with 'Operation not supported'.

Comment 1 Daniel Walsh 2008-12-27 12:04:02 UTC
I think restorecon is completing and most of these avc's can be ignored.  kdebase is leaking file descriptors which SELinux is complaining about.  This has been reported in several other kdebase bugs.  The "Operation not supported"  is caused by you trying to run restorecon on a file system that does not support extended attributes.

Comment 2 Steven M. Parrish 2009-01-09 20:09:37 UTC

*** This bug has been marked as a duplicate of bug 477508 ***