Bug 988567

Summary: SELinux is preventing /usr/sbin/prelink from 'getattr' accesses on the file /usr/libexec/nm-dispatcher.action.
Product: [Fedora] Fedora Reporter: Ruslan Mezentsev <rsunix>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a59ed4d09632d331345e86d07bbccd4fd35e47a38d5351e6b05f6c135d54c48b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-26 17:30:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ruslan Mezentsev 2013-07-25 20:48:12 UTC
Description of problem:
SELinux is preventing /usr/sbin/prelink from 'getattr' accesses on the file /usr/libexec/nm-dispatcher.action.

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

If вы считаете, что prelink следует разрешить доступ getattr к nm-dispatcher.action file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# grep prelink /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:prelink_cron_system_t:s0-s0:c0.c
                              1023
Target Context                system_u:object_r:NetworkManager_initrc_exec_t:s0
Target Objects                /usr/libexec/nm-dispatcher.action [ file ]
Source                        prelink
Source Path                   /usr/sbin/prelink
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           prelink-0.5.0-1.fc20.x86_64
Target RPM Packages           NetworkManager-0.9.9.0-5.git20130603.fc20.x86_64
Policy RPM                    selinux-policy-3.12.1-65.fc20.noarch selinux-
                              policy-3.12.1-66.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.0-0.rc1.git1.1.fc20.x86_64 #1
                              SMP Wed Jul 17 21:16:24 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-07-25 03:49:57 YEKT
Last Seen                     2013-07-25 03:49:57 YEKT
Local ID                      6aa35b6b-1a0d-4809-b6cf-60a0c6229743

Raw Audit Messages
type=AVC msg=audit(1374702597.640:604): avc:  denied  { getattr } for  pid=7482 comm="prelink" path="/usr/libexec/nm-dispatcher.action" dev="dm-1" ino=535618 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:NetworkManager_initrc_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1374702597.640:604): arch=x86_64 syscall=lstat success=no exit=EACCES a0=1a77da0 a1=7fff542e71d0 a2=7fff542e71d0 a3=1a77d90 items=0 ppid=7473 pid=7482 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=5 tty=(none) comm=prelink exe=/usr/sbin/prelink subj=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 key=(null)

Hash: prelink,prelink_cron_system_t,NetworkManager_initrc_exec_t,file,getattr

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.11.0-0.rc2.git2.1.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-07-26 17:30:19 UTC
Fix the label on prelink.

restorecon /usr/sbin/prelink