Bug 710828 - SELinux is preventing /usr/bin/kdeinit4 "write" access on /usr/share/kde4/services.
Summary: SELinux is preventing /usr/bin/kdeinit4 "write" access on /usr/share/kde...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:e7af4b2c3cb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-05 05:50 UTC by VAMSI MADHAV
Modified: 2011-06-05 07:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-05 07:19:19 UTC
Type: ---


Attachments (Terms of Use)

Description VAMSI MADHAV 2011-06-05 05:50:37 UTC
Summary:

SELinux is preventing /usr/bin/kdeinit4 "write" access on
/usr/share/kde4/services.

Detailed Description:

SELinux denied access requested by kbuildsycoca4. It is not expected that this
access is required by kbuildsycoca4 and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:usr_t:s0
Target Objects                /usr/share/kde4/services [ dir ]
Source                        kbuildsycoca4
Source Path                   /usr/bin/kdeinit4
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdelibs-4.6.3-5.fc14
Target RPM Packages           kde-filesystem-4-35.fc13
Policy RPM                    selinux-policy-3.9.7-3.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.13-91.fc14.x86_64 #1 SMP Tue May 3 13:23:06
                              UTC 2011 x86_64 x86_64
Alert Count                   44
First Seen                    Wed 01 Jun 2011 12:51:35 PM IST
Last Seen                     Sun 05 Jun 2011 11:15:33 AM IST
Local ID                      852df7a4-15bf-4984-904d-edba5e89df13
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1307252733.609:12): avc:  denied  { write } for  pid=1551 comm="kbuildsycoca4" name="services" dev=sda4 ino=136698 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usr_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1307252733.609:12): arch=c000003e syscall=21 success=no exit=-13 a0=f83a48 a1=2 a2=7fff986f1c60 a3=f81d00 items=0 ppid=1540 pid=1551 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="kbuildsycoca4" exe="/usr/bin/kdeinit4" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,kbuildsycoca4,xdm_t,usr_t,dir,write
audit2allow suggests:

#============= xdm_t ==============
#!!!! The source type 'xdm_t' can write to a 'dir' of the following types:
# var_log_t, xdm_log_t, gnome_home_type, pam_var_run_t, xdm_var_lib_t, xdm_var_run_t, gconf_home_t, pcscd_var_run_t, xkb_var_lib_t, xdm_rw_etc_t, xdm_home_t, pam_var_console_t, cgroup_t, var_lock_t, root_t, tmp_t, var_t, user_home_dir_t, user_fonts_t, user_tmpfs_t, locale_t, var_auth_t, xdm_spool_t, fonts_cache_t, tmpfs_t, user_tmp_t, auth_cache_t, xdm_tmpfs_t, var_spool_t, var_lib_t, var_run_t, xdm_tmp_t, xserver_log_t

allow xdm_t usr_t:dir write;

Comment 1 Miroslav Grepl 2011-06-05 07:19:19 UTC
Please, update your system. 

Execute

# yum update


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