Bug 231723 - restorecon tries to do getattr on /
Summary: restorecon tries to do getattr on /
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
Last Closed: 2007-03-10 22:53:23 UTC
Type: ---
Embargoed:


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:1.8.0.10) Gecko/20070226 Fedora/1.5.0.10-1.fc6 Firefox/1.5.0.10 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):
policycoreutils-1.34.1-4.fc6

How reproducible:
Always


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.