Bug 967058 - SELinux is preventing /usr/sbin/ldconfig from 'read' accesses on the file /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/__init__.py.
SELinux is preventing /usr/sbin/ldconfig from 'read' accesses on the file /va...
Status: CLOSED DUPLICATE of bug 912520
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: 2013-05-24 11:25 EDT by Alexey
Modified: 2013-05-24 15:07 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-05-24 15:07:51 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 Alexey 2013-05-24 11:25:43 EDT
Description of problem:
SELinux is preventing /usr/sbin/ldconfig from 'read' accesses on the file /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/__init__.py.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that ldconfig should be allowed read access on the __init__.py 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 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:var_lib_t:s0
Target Objects                /var/lib/plexmediaserver/Library/Application
                              Support/Plex Media Server/Plug-ins/Framework.bundl
                              _init__.py [ file ]
Source                        ldconfig
Source Path                   /usr/sbin/ldconfig
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           glibc-2.16-31.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-96.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.2-200.fc18.x86_64 #1 SMP Mon
                              May 13 13:59:47 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-05-24 19:22:02 MSK
Last Seen                     2013-05-24 19:22:02 MSK
Local ID                      05e01d23-7140-4017-b096-498de791525a

Raw Audit Messages
type=AVC msg=audit(1369408922.183:336): avc:  denied  { read } for  pid=2248 comm="ldconfig" path=2F7661722F6C69622F706C65786D656469617365727665722F4C6962726172792F4170706C69636174696F6E20537570706F72742F506C6578204D65646961205365727665722F506C75672D696E732F4672616D65776F726B2E62756E646C652F436F6E74656E74732F5265736F75726365732F56657273696F6E732F322F507974686F6E2F4672616D65776F726B2F5F5F696E69745F5F2E7079 dev="dm-1" ino=3014897 scontext=system_u:system_r:ldconfig_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file

type=SYSCALL msg=audit(1369408922.183:336): arch=x86_64 syscall=execve success=yes exit=0 a0=28b9b00 a1=28b9e00 a2=28b9bd0 a3=18 items=0 ppid=2247 pid=2248 auid=4294967295 uid=499 gid=499 euid=499 suid=499 fsuid=499 egid=499 sgid=499 fsgid=499 ses=4294967295 tty=(none) comm=ldconfig exe=/usr/sbin/ldconfig subj=system_u:system_r:ldconfig_t:s0 key=(null)

Hash: ldconfig,ldconfig_t,var_lib_t,file,read


#============= ldconfig_t ==============
allow ldconfig_t var_lib_t:file read;

audit2allow -R
require {
	type ldconfig_t;

#============= ldconfig_t ==============

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.2-200.fc18.x86_64
type:           libreport

Potential duplicate: bug 912520
Comment 1 Daniel Walsh 2013-05-24 15:07:51 EDT

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

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