Stephen Smalley wrote: > On Wed, 2007-04-25 at 15:31 +0000, JanuGerman wrote: >> Hi Karl, >> >> Thanks for the response. I have to reboot with 'selinux=0' in order to >> diagnose the type of .bash_profile. It is >> 'root:object_r:user_home_t:s0'. This seems to me a problem, like every >> time, i will have to reboot with selinux=0, in order to get the >> attributes of the file. Plus one question regarding the unconfined_t. >> Is unconfined_t is changed to confined_t in strict policy mode? > > You should just be able to boot with enforcing=0, not selinux=0. Or > even switch to permissive via setenforce 0 if you can login at least on > the console and newrole -r sysadm_r. > > Under strict policy, users run in confined domains like user_t and > staff_t, and the user must newrole -r sysadm_r to enter the admin role. > > The /root files should be labeled with sysadm_home_t, not user_home_t. > Look at /etc/selinux/strict/contexts/files/file_contexts.homedirs for > the /root entries. i also had the same error when switching from targeted to strict. i notice in avc that there are some deny errors: avc: denied { search } comm="gconfd-2" name="root" scontext=root:staff_r:staff_gconfd_t:s0-s0:c0.c1023 tcontext=root:object_r:sysadm_home_dir_t:s0 i guess that this error is relative to the "permission denied" of ".bash_profile" i find that "staff_gconfd_t" is generated by domain transition from "staff_t" to "staff_gconfd_t". (defined in gnome_per_role_template()) i wonder why "root" user role is staff_r when login through gdm, and is sysadm_r when login in 3 level(through mingetty) as stephen said, in strict policy, users should be run in user_t and staff_t, and the "local_login_t" line in "users/root" indicate the role of root is "sysadm_r", and the same line in "default_contexts" indicate that the role of user is staff_r. i am confused in above situations. what decide the role and domain of user (normal users and root)? > -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.