Bug 560590 - SELinux is preventing /usr/libexec/kde4/kdm_greet from executing starte16.
Summary: SELinux is preventing /usr/libexec/kde4/kdm_greet from executing starte16.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:ae8ed9c02ac...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-01 09:31 UTC by Narasimhan
Modified: 2010-02-20 00:21 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-89.fc12
Clone Of:
Environment:
Last Closed: 2010-02-20 00:21:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Narasimhan 2010-02-01 09:31:58 UTC
Summary:

SELinux is preventing /usr/libexec/kde4/kdm_greet from executing starte16.

Detailed Description:

SELinux has denied the kdm_greet from executing starte16. If kdm_greet is
supposed to be able to execute starte16, this could be a labeling problem. Most
confined domains are allowed to execute files labeled bin_t. So you could change
the labeling on this file to bin_t and retry the application. If this kdm_greet
is not supposed to execute starte16, this could signal an intrusion attempt.

Allowing Access:

If you want to allow kdm_greet to execute starte16: chcon -t bin_t 'starte16' If
this fix works, please update the file context on disk, with the following
command: semanage fcontext -a -t bin_t 'starte16' Please specify the full path
to the executable, Please file a bug report to make sure this becomes the
default labeling.

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                starte16 [ file ]
Source                        kdm_greet
Source Path                   /usr/libexec/kde4/kdm_greet
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdm-4.3.3-7.fc12.1
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-55.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   execute
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.6-166.fc12.x86_64 #1 SMP Wed Dec 9 10:46:22
                              EST 2009 x86_64 x86_64
Alert Count                   16
First Seen                    Sun 13 Dec 2009 12:11:53 PM IST
Last Seen                     Sun 13 Dec 2009 10:08:11 PM IST
Local ID                      0db1a0f2-dc7b-40ae-8a85-bbe10083df60
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1260722291.70:7): avc:  denied  { execute } for  pid=1360 comm="kdm_greet" name="starte16" dev=sda2 ino=219688 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usr_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1260722291.70:7): arch=c000003e syscall=21 success=no exit=-13 a0=1b1c338 a1=1 a2=1b1c338 a3=3c items=0 ppid=1355 pid=1360 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 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-55.fc12,execute,kdm_greet,xdm_t,usr_t,file,execute
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t usr_t:file execute;

Comment 1 Daniel Walsh 2010-02-01 20:48:52 UTC
Where is the starte16 file, it is mislabeled should be bin_t.

Comment 2 Narasimhan 2010-02-04 05:22:09 UTC
lrwxrwxrwx. root root system_u:object_r:bin_t:s0       /usr/bin/starte16 -> /usr/share/e16/misc/starte16

And the target is labled as
-rwxr-xr-x. root root system_u:object_r:usr_t:s0       /usr/share/e16/misc/starte16

Comment 3 Daniel Walsh 2010-02-04 13:43:30 UTC
Could you list the contents of this directory?  Are they all executables?


ls -l /usr/share/e16/misc

Comment 4 Daniel Walsh 2010-02-09 20:06:10 UTC
Miroslav,

Change the label to 

/usr/share/e16/misc(/.*)?		gen_context(system_u:object_r:bin_t,s0)

Comment 5 Miroslav Grepl 2010-02-10 10:53:29 UTC
Fixed in selinux-policy-3.6.32-87.fc12

Comment 6 Fedora Update System 2010-02-11 22:00:54 UTC
selinux-policy-3.6.32-89.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-89.fc12

Comment 7 Fedora Update System 2010-02-13 00:39:56 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1836

Comment 8 Fedora Update System 2010-02-20 00:19:02 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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