Bug 789294 - SELinux is preventing /usr/sbin/setfiles from 'getattr' accesses on the None /run.
Summary: SELinux is preventing /usr/sbin/setfiles from 'getattr' accesses on the None ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b28f6d8f1343ff589900df83421...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-10 10:11 UTC by Michal Nowak
Modified: 2013-03-08 02:13 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.10.0-118.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-25 04:58:48 UTC
Type: ---
mnowak: needinfo-


Attachments (Terms of Use)

Description Michal Nowak 2012-02-10 10:11:50 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-0.rc2.git3.2.fc17.x86_64
reason:         SELinux is preventing /usr/sbin/setfiles from 'getattr' accesses on the None /run.
time:           Fri 10 Feb 2012 11:11:28 AM CET

description:
:SELinux is preventing /usr/sbin/setfiles from 'getattr' accesses on the None /run.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that setfiles should be allowed getattr access on the run <Unknown> by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep restorecon /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:system_r:setfiles_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:tmpfs_t:s0
:Target Objects                /run [ None ]
:Source                        restorecon
:Source Path                   /usr/sbin/setfiles
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           policycoreutils-2.1.10-21.fc17.x86_64
:Target RPM Packages           filesystem-3-2.fc17.x86_64
:Policy RPM                    selinux-policy-3.10.0-82.fc17.noarch selinux-
:                              policy-3.10.0-84.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-0.rc2.git3.2.fc17.x86_64 #1 SMP
:                              Fri Feb 3 19:19:19 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Fri 10 Feb 2012 11:09:23 AM CET
:Last Seen                     Fri 10 Feb 2012 11:09:23 AM CET
:Local ID                      842b43b8-9554-4be4-b3ea-e71d9272f87e
:
:Raw Audit Messages
:type=AVC msg=audit(1328868563.569:739): avc:  denied  { getattr } for  pid=3139 comm="restorecon" name="/" dev="tmpfs" ino=6119 scontext=unconfined_u:system_r:setfiles_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystemnode=(removed) type=SYSCALL msg=audit(1328868563.569:739): arch=c000003e syscall=137 success=no exit=-13 a0=7f412e0cdc90 a1=7fff1ebcdb40 a2=0 a3=117 items=0 ppid=2610 pid=3139 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm="restorecon" exe="/usr/sbin/setfiles" subj=unconfined_u:system_r:setfiles_t:s0-s0:c0.c1023 key=(null)
:
:
:Hash: restorecon,setfiles_t,tmpfs_t,None,getattr
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-10 10:38:35 UTC
Is this a fresh installation?

Comment 2 Miroslav Grepl 2012-02-10 12:07:03 UTC
Actually this is fixed in the latest policy.

Comment 3 Fedora Update System 2012-04-24 01:02:16 UTC
selinux-policy-3.10.0-118.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-118.fc17

Comment 4 Fedora Update System 2012-04-24 03:14:43 UTC
Package selinux-policy-3.10.0-118.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-118.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-6452/selinux-policy-3.10.0-118.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-04-25 04:58:48 UTC
selinux-policy-3.10.0-118.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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