Bug 693178 - SELinux is preventing /bin/systemctl from 'search' accesses on the directorio systemd.
Summary: SELinux is preventing /bin/systemctl from 'search' accesses on the directorio...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:439b3dffc91...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-03 11:45 UTC by Juan Francisco Fernández
Modified: 2011-04-21 10:45 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-21 10:45:59 UTC
Type: ---


Attachments (Terms of Use)

Description Juan Francisco Fernández 2011-04-03 11:45:18 UTC
SELinux is preventing /bin/systemctl from 'search' accesses on the directorio systemd.

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

If you believe that systemctl should be allowed search access on the systemd directory 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 telinit /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:init_var_run_t:s0
Target Objects                systemd [ dir ]
Source                        telinit
Source Path                   /bin/systemctl
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           systemd-units-22-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-10.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.i686 #1 SMP Wed Mar 30
                              16:54:01 UTC 2011 i686 i686
Alert Count                   1
First Seen                    dom 03 abr 2011 13:44:04 CEST
Last Seen                     dom 03 abr 2011 13:44:04 CEST
Local ID                      25bbf48c-2b9a-4593-8587-231e42537389

Raw Audit Messages
type=AVC msg=audit(1301831044.65:73): avc:  denied  { search } for  pid=9951 comm="telinit" name="systemd" dev=tmpfs ino=8412 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:init_var_run_t:s0 tclass=dir


type=AVC msg=audit(1301831044.65:73): avc:  denied  { write } for  pid=9951 comm="telinit" name="private" dev=tmpfs ino=1956 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:init_var_run_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1301831044.65:73): arch=i386 syscall=socketcall success=yes exit=0 a0=3 a1=bfa39da0 a2=4c70dff4 a3=bfa39dde items=0 ppid=4873 pid=9951 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm=telinit exe=/bin/systemctl subj=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 key=(null)

Hash: telinit,prelink_cron_system_t,init_var_run_t,dir,search

audit2allow

#============= prelink_cron_system_t ==============
allow prelink_cron_system_t init_var_run_t:dir search;
allow prelink_cron_system_t init_var_run_t:sock_file write;

audit2allow -R

#============= prelink_cron_system_t ==============
allow prelink_cron_system_t init_var_run_t:dir search;
allow prelink_cron_system_t init_var_run_t:sock_file write;

Comment 1 Juan Francisco Fernández 2011-04-03 11:47:18 UTC
After apply todays update with new selinux-policy and systemd and reboot my machine, I get this report on seaapplet.

Comment 2 Daniel Walsh 2011-04-04 19:53:46 UTC
Fixed in selinux-policy-3.9.16-12.fc15


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