On Mon, Feb 27, 2012 at 09:53:41PM +0200, Cor Legmaat wrote:
> >> This is what I get with gnome-terminal:
> >>> cor@k53s ~ $ id -Z
> >>> system_u:system_r:initrc_t
> >>> cor@k53s ~ $ ssh 127.0.0.1
> >>> Last login: Mon Feb 27 20:01:41 SAST 2012 from k53s.cor.za.net on pts/1
> >>> cor@k53s ~ $ id -Z
> >>> staff_u:staff_r:staff_t
[...]

Hmm, being in initrc_t isn't correct either; I'd at least expect it to be
xdm_t.

Can you check the file context of your gdm binary?

~# ls -Z /usr/sbin/gdm

It should be xdm_exec_t (yes, xdm_exec_t, not gdm_exec_t). If not, set it that
way (and tell me which path the binary is at so I can update the policy). 

~# chcon -t xdm_exec_t /usr/sbin/gdm

If the system complains about an unknown type, make sure you have the
xserver module loaded:

~# emerge selinux-xserver
~# semodule -l | grep xserver
~# rlpkg gdm
~# ls -Z /usr/sbin/gdm

Wkr,
        Sven Vermeulen

Reply via email to