Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 231723 - restorecon tries to do getattr on /
Summary: restorecon tries to do getattr on /
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2007-03-10 19:36 UTC by David Juran
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-03-10 22:53:23 UTC

Attachments (Terms of Use)

Description David Juran 2007-03-10 19:36:16 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv: Gecko/20070226 Fedora/ Firefox/ pango-text

Description of problem:
Running sudo /sbin/restorecon -v /bin/umount yields the following avc denial:

Source Context:  user_u:system_r:restorecon_t
Target Context:  system_u:object_r:security_t
Target Objects:  / [ filesystem ]
Affected RPM Packages:  policycoreutils-1.34.1-4.fc6 [application]filesystem-2.4.0-1 [target]
Policy RPM:  selinux-policy-2.4.6-41.fc6
Selinux Enabled:  True
Policy Type:  targeted
MLS Enabled:  True
Enforcing Mode:  Enforcing
Plugin Name:  plugins.catchall
Host Name:  localhost.localdomain
Platform:  Linux localhost.localdomain 2.6.19-1.2911.6.5.fc6 #1 SMP Sun Mar 4 16:05:34 EST 2007 x86_64 x86_64
Alert Count:  3
Line Numbers:  
 Raw Audit Messages :avc: denied { getattr } for comm="restorecon" dev=selinuxfs egid=0 euid=0 exe="/sbin/restorecon" exit=-13 fsgid=0 fsuid=0 gid=0 items=0 name="/" pid=26977 scontext=user_u:system_r:restorecon_t:s0 sgid=0 subj=user_u:system_r:restorecon_t:s0 suid=0 tclass=filesystem tcontext=system_u:object_r:security_t:s0 tty=pts1 uid=0 

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

How reproducible:

Steps to Reproduce:
1. /sbin/restorecon -v /bin/umount

Actual Results:

Expected Results:

Additional info:

Comment 1 David Juran 2007-03-10 22:53:23 UTC
This was actually caused by a change in behaviour in libselinux-2.0.5-2.fc7
which was accounted for in selinux-policy-2.5.6-1.fc7. Don't mind me...

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