Bug 696266 - SELinux is preventing /bin/bash from 'execute' accesses on the file /bin/systemctl.
Summary: SELinux is preventing /bin/bash from 'execute' accesses on the file /bin/syst...
Keywords:
Status: CLOSED DUPLICATE of bug 696264
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:867ff1de86e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-13 17:58 UTC by Sandro Mathys
Modified: 2011-04-13 18:29 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-04-13 18:29:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sandro Mathys 2011-04-13 17:58:20 UTC
SELinux is preventing /bin/bash from 'execute' accesses on the file /bin/systemctl.

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

If you believe that bash should be allowed execute access on the systemctl file 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 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:systemd_systemctl_exec_t:s0
Target Objects                /bin/systemctl [ file ]
Source                        prelink
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.2.8-2.fc15
Target RPM Packages           systemd-units-24-1.fc15
Policy RPM                    selinux-policy-3.9.16-14.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64 #1 SMP
                              Wed Mar 30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Wed 13 Apr 2011 07:53:42 PM CEST
Last Seen                     Wed 13 Apr 2011 07:53:42 PM CEST
Local ID                      ffb42eca-1cf0-48c2-a0af-aa4130a6a15b

Raw Audit Messages
type=AVC msg=audit(1302717222.778:131): avc:  denied  { execute } for  pid=9756 comm="prelink" name="systemctl" dev=dm-2 ino=39612 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_systemctl_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1302717222.778:131): arch=x86_64 syscall=execve success=no exit=EACCES a0=18be040 a1=18bef30 a2=18bdd70 a3=8 items=0 ppid=7921 pid=9756 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm=prelink exe=/bin/bash subj=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 key=(null)

Hash: prelink,prelink_cron_system_t,systemd_systemctl_exec_t,file,execute

audit2allow

#============= prelink_cron_system_t ==============
allow prelink_cron_system_t systemd_systemctl_exec_t:file execute;

audit2allow -R

#============= prelink_cron_system_t ==============
allow prelink_cron_system_t systemd_systemctl_exec_t:file execute;

Comment 1 Daniel Walsh 2011-04-13 18:29:02 UTC

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


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