Bug 988567 - SELinux is preventing /usr/sbin/prelink from 'getattr' accesses on the file /usr/libexec/nm-dispatcher.action.
Summary: SELinux is preventing /usr/sbin/prelink from 'getattr' accesses on the file /...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a59ed4d09632d331345e86d07bb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-25 20:48 UTC by Ruslan Mezentsev
Modified: 2013-07-26 17:30 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-26 17:30:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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