Bug 564006 - SELinux is preventing /usr/libexec/kde4/kdm_greet "read write open" access.
Summary: SELinux is preventing /usr/libexec/kde4/kdm_greet "read write open" access.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:fe25a7e100f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-11 17:22 UTC by Daniel Scott
Modified: 2010-05-05 18:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-05 18:18:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Scott 2010-02-11 17:22:28 UTC
Summary:

SELinux is preventing /usr/libexec/kde4/kdm_greet "read write open" access.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by kdm_greet. It is not expected that this
access is required by kdm_greet 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:unlabeled_t:s0
Target Objects                 [ file ]
Source                        kdm_greet
Source Path                   /usr/libexec/kde4/kdm_greet
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdm-4.3.5-2.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-82.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.12-174.2.3.fc12.x86_64 #1 SMP Mon Jan 18
                              19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Thu 11 Feb 2010 12:20:28 PM EST
Last Seen                     Thu 11 Feb 2010 12:20:28 PM EST
Local ID                      4f9ded6d-efed-45f5-8912-c71045df1ff7
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1265908828.238:16): avc:  denied  { read write open } for  pid=2423 comm="kdm_greet" name="" dev=dm-0 ino=4251876 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1265908828.238:16): arch=c000003e syscall=2 success=no exit=-13 a0=22b2478 a1=800 a2=22b2478 a3=656d6f682f6e696d items=0 ppid=2418 pid=2423 auid=4294967295 uid=0 gid=0 euid=99 suid=0 fsuid=99 egid=99 sgid=0 fsgid=99 tty=(none) ses=4294967295 comm="kdm_greet" exe="/usr/libexec/kde4/kdm_greet" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-82.fc12,catchall,kdm_greet,xdm_t,unlabeled_t,file,read,write,open
audit2allow suggests:

#============= xdm_t ==============
#!!!! The source type 'xdm_t' can write to a 'file' of the following types:
# initrc_var_run_t, pam_var_run_t, xdm_var_lib_t, xdm_var_run_t, anon_inodefs_t, xdm_home_t, xdm_lock_t, pam_var_console_t, etc_runtime_t, pcscd_var_run_t, xkb_var_lib_t, xdm_rw_etc_t, wtmp_t, user_fonts_t, user_tmpfs_t, xdm_spool_t, fonts_cache_t, locale_t, var_auth_t, file_t, xserver_tmp_t, security_t, proc_afs_t, user_tmp_t, xserver_tmpfs_t, xauth_home_t, auth_cache_t, xdm_tmpfs_t, xserver_log_t, faillog_t, lastlog_t, xdm_log_t, root_t, krb5_host_rcache_t, security_t, nfs_t

allow xdm_t unlabeled_t:file { read write open };

Comment 1 Daniel Walsh 2010-02-11 17:37:27 UTC
You seem to have a labeling problem on a non existing file.

Could you relabel your homedir and /var/cache/fontconfig

restorecon -R -v /home /var/cache/fontconfig

If that does not show anything, then you might need to run fixfiles restore

Did you add a disk which might not have labels?

Comment 2 Daniel Walsh 2010-02-11 17:38:10 UTC
*** Bug 564007 has been marked as a duplicate of this bug. ***

Comment 3 Jeff Raber 2010-05-05 17:49:11 UTC
Reporter, could you please reply to the previous question? If you won't reply in one month, I will have to close this bug as INSUFFICIENT_DATA. Thank you.

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 4 Daniel Scott 2010-05-05 18:18:46 UTC
This seems to have disappeared - I don't seem to be able to reproduce it. Can be marked as FIXED or INSUFFICIENT_DATA.


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