Bug 814077 - SELinux is preventing /sbin/setfiles from 'read' accesses on the file /var/lib/mock/fedora-16-x86_64/root/lib64/libselinux.so.1.
SELinux is preventing /sbin/setfiles from 'read' accesses on the file /var/li...
Status: CLOSED DUPLICATE of bug 814076
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-04-19 03:56 EDT by Sandro Mathys
Modified: 2012-04-19 10:18 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-04-19 10:18:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Sandro Mathys 2012-04-19 03:56:51 EDT
libreport version: 2.0.10
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-1.fc17.x86_64
time:           Thu 19 Apr 2012 09:56:39 AM CEST

:SELinux is preventing /sbin/setfiles from 'read' accesses on the file /var/lib/mock/fedora-16-x86_64/root/lib64/libselinux.so.1.
:*****  Plugin catchall (100. confidence) suggests  ***************************
:If you believe that setfiles should be allowed read access on the libselinux.so.1 file by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
: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:unconfined_r:setfiles_t:s0-s0:c0.c102
:                              3
:Target Context                unconfined_u:object_r:mock_var_lib_t:s0
:Target Objects                /var/lib/mock/fedora-16-x86_64/root/lib64/libselin
:                              ux.so.1 [ file ]
:Source                        restorecon
:Source Path                   /sbin/setfiles
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           policycoreutils-2.1.10-29.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-110.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-1.fc17.x86_64
:                              #1 SMP Mon Mar 19 03:03:39 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Thu 19 Apr 2012 09:53:17 AM CEST
:Last Seen                     Thu 19 Apr 2012 09:53:17 AM CEST
:Local ID                      8fd1afd2-3846-407e-9902-915f20ea361c
:Raw Audit Messages
:type=AVC msg=audit(1334821997.376:9337): avc:  denied  { read } for  pid=7787 comm="restorecon" name="libselinux.so.1" dev="dm-0" ino=2622712 scontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mock_var_lib_t:s0 tclass=file
:type=SYSCALL msg=audit(1334821997.376:9337): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffa7cf31f0 a1=80000 a2=0 a3=7f9fb83c4fb4 items=0 ppid=7785 pid=7787 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=restorecon exe=/sbin/setfiles subj=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 key=(null)
:Hash: restorecon,setfiles_t,mock_var_lib_t,file,read
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Comment 1 Daniel Walsh 2012-04-19 10:18:36 EDT

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

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