why are my contexts different?

Thomas Molina tmolina at cablespeed.com
Fri Apr 16 22:56:42 UTC 2004


I noticed some differences between how logins via X occur vs. how they 
happen via text console.  I haven't changed any policies, so this is 
"default" for me.

My system defaults to booting to runlevel 5.  I boot up and switch to a 
text console and log in as a regular user.  I get the following:
---------------------------------------------------------------------
dad login: tmolina
Password:
Your default context is user_u:sysadm_r:sysadm_t.

Do you want to choose a different one? [n]
Last login: Fri Apr 16 18:48:34 on tty1
You have mail.
[tmolina at dad tmolina]$ id -Z
user_u:sysadm_r:sysadm_t
[tmolina at dad tmolina]$ su -
Password:
Your default context is root:sysadm_r:sysadm_t.

Do you want to choose a different one? [n]
[root at dad root]#
--------------------------------------------------------------------
Then I switch to console seven to log in to xdm.  After my desktop comes 
up I open a terminal window and get the following:

-------------------------------------------------------------------
[tmolina at dad tmolina]$ id -Z
user_u:user_r:user_t
[tmolina at dad tmolina]$ su -
Password:
[root at dad root]# id -Z
root:sysadm_r:sysadm_t
[root at dad root]#
---------------------------------------------------------------------

This seems wrong to me.  I would think it should be the same in both 
cases.  What am I missing here?





More information about the fedora-test-list mailing list