Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 158375 - Booting with early-login, login can't do on GDM (denided /etc/X11/xdm/Xession).
Summary: Booting with early-login, login can't do on GDM (denided /etc/X11/xdm/Xession).
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-05-21 05:26 UTC by sangu
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: selinux-policy-targeted-1.23.18-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-06-09 16:08:19 UTC

Attachments (Terms of Use)

Description sangu 2005-05-21 05:26:36 UTC
Description of problem:

cat /proc/cmdline
ro root=LABEL=/ acpi=on video=vesafb:ywrap,mtrr:1600x1200@60 vga=0x346 early-login
Booting with early-login,  denided /etc/X11/xdm/Xession. 
And Can't login on GDM
in dmesg
audit(1116652629.697:0): avc:  denied  { transition } for 
path="/etc/X11/xdm/Xsession" dev=hda8 ino=292934
scontext=system_u:system_r:initrc_t tcontext=user_u:system_r:unconfined_t

$ls -Zal /etc/X11/xdm/Xsession
-rwxr-xr-x  1 system_u:object_r:xsession_exec_t root root 3391  4ì 11 20:43

$cat /tmp/xses-sangu.rax3xB
/etc/X11/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/X11/gdm/PreSession/Default: running: /usr/X11R6/bin/sessreg -a -w
/var/log/wtmp -u /var/run/utmp -x "/var/gdm/:0.Xservers" -h "" -l ":0" "sangu"
session_child_run: Could not exec /etc/X11/xdm
Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:
Can't login on GDM

Expected results:

Additional info:

Comment 1 sangu 2005-05-27 09:19:59 UTC
login  can't do still in selinux-policy-targeted-1.23.17-2.
$cat /var/log/audit/audit.log
type=AVC msg=audit(1117169338.249:238525): avc:  denied  { transition } for 
pid=2619 comm="gdm-binary" name=Xsession dev=hda8 ino=292934
scontext=system_u:system_r:initrc_t tcontext=user_u:system_r:unconfined_t
type=AVC_PATH msg=audit(1117169338.249:238525):  path="/etc/X11/xdm/Xsession"
type=PATH msg=audit(1117169338.249:238525): item=0 name="/etc/X11/xdm/Xsession"
inode=292934 dev=03:08 mode=0100755 ouid=0 ogid=0 rdev=00:00

Comment 2 sangu 2005-05-27 09:29:12 UTC
Please see also : bug 155983, comment 1

Comment 3 Daniel Walsh 2005-05-27 19:36:01 UTC
How do you set this up?


Comment 4 sangu 2005-05-28 02:31:10 UTC
1. add gdm daemon 
$chkconfig --add gdm-allow-login
$chkconfig --add gdm-early-login
$chkconfig --add zzz-bootup-complete

2. modify kernel command line option in /boot/grub/menu.list 
rhgb -> early-login

%cat /boot/grub/menu.list

title Fedora Core (2.6.11-1.1363_FC4)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.11-1.1363_FC4 ro root=LABEL=/ acpi=on early-login
        initrd /boot/initrd-2.6.11-1.1363_FC4.img

3. reboot

initscripts-8.11.1-1 gdm-

See Also : bug 151952 bug 154413

Comment 5 Daniel Walsh 2005-06-08 16:07:11 UTC
This does not seem to work on my machine with or without SELinux.

If you do a chcon -t gdm_exec_t /usr/bin/gdm-binary

Does it begin to work?

Comment 6 sangu 2005-06-09 16:08:19 UTC
Only after installing selinux-policy-targeted-1.23.18-2, this bug was fixed.

$ls -lZa /usr/bin/gdm-binary
-rwxr-xr-x  root     root     system_u:object_r:xdm_exec_t     /usr/bin/gdm-binary
$ls -lZa /etc/X11/xdm/Xsession
-rwxr-xr-x  root     root     system_u:object_r:xsession_exec_t

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