Red Hat Bugzilla – Bug 582923
can't set security context
Last modified: 2012-07-27 09:22:06 EDT
After I gave correct password, I was asked 'Would you like to enter a security context? [N] I assumed that 'No' is default and simple enter log me in. That doesn't work. Also try to type N,n,Y,y, which doesn't work.
I was able to log in after 'setenforce 0' and give 'n' as answer to this question. I hope you change it to something more convenient because I still don't know what I have to do instead of switching selinux off. Better question or example of correct answer would be fine.
You shouldn't ever be asked that question.
How are you starting GDM?
Boot into runlevel 3, as root run gdm.
ah yea, you're running gdm from an unconfined security context then.
It's caused by pam_selinux. I talked to Dan about this before, and I think the consensus was that it basically shouldn't ever ask that question, and the only reason it does is for weird historical reasons.
Marcela why are you running gdm by hand? If you are debugging you need to attach to the process or put SELinux into permissive mode.
(In reply to comment #4)
> Marcela why are you running gdm by hand? If you are debugging you need to
> attach to the process or put SELinux into permissive mode.
I don't use gdm on daily basis, so I don't care about solution. The warning could be confusing for a common user, that's all. I suppose mentioned selinux in this message could be a better hint.
Of course the common user would not be running gdm by hand. :^)
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.
More information and reason for this action is here:
Since this version of Fedora is no longer supported I am closing this bugs. If you are still seeing this bug in a current version of fedora, please reopen the bugzilla with the appropriate version number.