Bug 830570 - SELinux is preventing /usr/sbin/ldconfig from 'read' accesses on the directory lib64.
Summary: SELinux is preventing /usr/sbin/ldconfig from 'read' accesses on the director...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:bf9357489cd79fe11fa8a09432a...
: 830569 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-10 17:35 UTC by jj424
Modified: 2012-06-11 09:39 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-06-11 09:39:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description jj424 2012-06-10 17:35:27 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.0-1.fc17.x86_64
time:           Sun 10 Jun 2012 10:35:14 AM PDT

description:
:SELinux is preventing /usr/sbin/ldconfig from 'read' accesses on the directory lib64.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that ldconfig should be allowed read access on the lib64 directory 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 ldconfig /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:ldconfig_t:s0
:Target Context                system_u:object_r:initrc_tmp_t:s0
:Target Objects                lib64 [ dir ]
:Source                        ldconfig
:Source Path                   /usr/sbin/ldconfig
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           glibc-2.15-37.fc17.x86_64
:Target RPM Packages           filesystem-3-2.fc17.x86_64
:Policy RPM                    selinux-policy-3.10.0-128.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.0-1.fc17.x86_64 #1 SMP Sun
:                              Jun 3 06:35:17 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    Sun 10 Jun 2012 10:31:18 AM PDT
:Last Seen                     Sun 10 Jun 2012 10:31:18 AM PDT
:Local ID                      5673b76a-7ecc-4595-9ea8-8c48396c70d3
:
:Raw Audit Messages
:type=AVC msg=audit(1339349478.589:256): avc:  denied  { read } for  pid=12176 comm="ldconfig" name="lib64" dev="dm-1" ino=417893 scontext=system_u:system_r:ldconfig_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1339349478.589:256): arch=x86_64 syscall=openat success=no exit=EACCES a0=ffffffffffffff9c a1=1a50880 a2=90800 a3=0 items=0 ppid=2909 pid=12176 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ldconfig exe=/usr/sbin/ldconfig subj=system_u:system_r:ldconfig_t:s0 key=(null)
:
:Hash: ldconfig,ldconfig_t,initrc_tmp_t,dir,read
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-06-11 09:37:52 UTC
*** Bug 830569 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2012-06-11 09:39:27 UTC
Looks like your system is mislabeled. Try to execute

# fixfiles restore

to fix labeling.


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