Skip to contentSkip to conversation

Problem logging into GDM after SELinux enable

DISCUSSION Tom Wesley 2 participants 2 messages Jan 25, 2005 SELinux security module

lore
Share & tools
lore

Tom Wesley

author
#0 lore raw

Hi,

Hopefully I've managed to follow the "conversion guide" on the Gentoo website and have run into a problem after the initial setup.

When logging in using GDM I get a message saying "Unable to set default execution context" and it returns me to the login screen.

I'm also getting

Jan 21 22:54:08 tom GDM[30170]: SELinux GDM login: unable to obtain default security context for tom.

in /var/log/messages.

I have

user tom roles { staff_r staff_r sysadm_r };

in my users file and have rebuilt the profile, loaded it and relabeled the file system but am still getting the same message.

Does anyone have any ideas what I should try next?

Signature · 1 line
Tom Wesley <[email protected]>
#1 lore raw
Quoted 15 lines · Tom Wesley

Hi,

Hopefully I've managed to follow the "conversion guide" on the Gentoo website and have run into a problem after the initial setup.

When logging in using GDM I get a message saying "Unable to set default execution context" and it returns me to the login screen.

I'm also getting

Jan 21 22:54:08 tom GDM[30170]: SELinux GDM login: unable to obtain 

default security context for tom.

in /var/log/messages.

Quoted 8 lines

I have

   user tom roles { staff_r staff_r sysadm_r };

in my users file and have rebuilt the profile, loaded it and relabeled the file system but am still getting the same message.

Does anyone have any ideas what I should try next?

I was under the impression that Hardened Gentoo only supports SELinux on servers, not desktop systems. Thus, they may not include the portions of the example policy related to X, [xgk]dm, etc. Do you have an xserver.te and xdm.te file in your policy/domains/program directory, and xserver_macros.te under policy/macros/program? If not, you could try porting from the example policy, but that is likely to be difficult given the amount of divergence between the policies. Fedora Core 3 includes support (but remember to switch to strict policy, as the default is targeted).

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.