[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

why are my contexts different?



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 dad tmolina]$ id -Z
user_u:sysadm_r:sysadm_t
[tmolina dad tmolina]$ su -
Password:
Your default context is root:sysadm_r:sysadm_t.

Do you want to choose a different one? [n]
[root 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 dad tmolina]$ id -Z
user_u:user_r:user_t
[tmolina dad tmolina]$ su -
Password:
[root dad root]# id -Z
root:sysadm_r:sysadm_t
[root dad root]#
---------------------------------------------------------------------

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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]