Bug 1383605 - SELinux is preventing ldconfig from 'getattr' accesses on the lnk_file /usr/lib64/liblzma.so.5.
Summary: SELinux is preventing ldconfig from 'getattr' accesses on the lnk_file /usr/l...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8b26da6ed8a6cff0516c0b2d5ed...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-11 08:25 UTC by utom
Modified: 2017-02-07 11:30 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-11 08:40:08 UTC
Type: ---


Attachments (Terms of Use)

Description utom 2016-10-11 08:25:20 UTC
Description of problem:
SELinux is preventing ldconfig from 'getattr' accesses on the lnk_file /usr/lib64/liblzma.so.5.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If aby naprawić etykietę. 
domyślna etykieta /usr/lib64/liblzma.so.5 powinna wynosić lib_t.
Then można wykonać polecenie restorecon.
Do
# /sbin/restorecon -v /usr/lib64/liblzma.so.5

*****  Plugin catchall (1.49 confidence) suggests   **************************

If aby ldconfig powinno mieć domyślnie getattr dostęp do liblzma.so.5 lnk_file.
Then proszę to zgłosić jako błąd.
Można utworzyć lokalny moduł polityki, aby umożliwić ten dostęp.
Do
allow this access for now by executing:
# ausearch -c 'ldconfig' --raw | audit2allow -M my-ldconfig
# semodule -X 300 -i my-ldconfig.pp

Additional Information:
Source Context                system_u:system_r:ldconfig_t:s0
Target Context                system_u:object_r:initrc_tmp_t:s0
Target Objects                /usr/lib64/liblzma.so.5 [ lnk_file ]
Source                        ldconfig
Source Path                   ldconfig
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           xz-libs-5.2.2-2.fc24.x86_64
Policy RPM                    selinux-policy-3.13.1-191.18.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.7.6-200.fc24.x86_64 #1 SMP Mon
                              Oct 3 20:10:24 UTC 2016 x86_64 x86_64
Alert Count                   195
First Seen                    2016-10-10 15:34:13 CEST
Last Seen                     2016-10-11 10:15:13 CEST
Local ID                      1a2fbf84-a4c4-4dbd-9f29-5c6020867a20

Raw Audit Messages
type=AVC msg=audit(1476173713.543:326): avc:  denied  { getattr } for  pid=12786 comm="ldconfig" path="/usr/lib64/liblzma.so.5" dev="dm-0" ino=2499011 scontext=system_u:system_r:ldconfig_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=lnk_file permissive=0


Hash: ldconfig,ldconfig_t,initrc_tmp_t,lnk_file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-191.18.fc24.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.7.6-200.fc24.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2016-10-11 08:40:08 UTC
This is mislabeling issue. Please execute

/sbin/restorecon -R -v /usr/lib64/

to fix labeling for /usr/lib64/ directory.

Thank you.

Comment 2 bfn924 2017-02-07 11:30:47 UTC
Description of problem:
After software update reboot

Version-Release number of selected component:
selinux-policy-3.13.1-191.24.fc24.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.9.6-100.fc24.x86_64
type:           libreport


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