The attached script is something I wrote to handle the problem of labeling users home directories. Russell's latest policy has added several security contexts to files in the users home directories (.ssh, .pgp, .xauthority etc). The problem is the current 'make label' labels all entries in the users home directory with user_*_t. If you define a certain user at staff_t (required by policy if you want to become sysadm_t) by default he will not be able to login. This script figures out the default role for all users and then if the user is not root and the default role is not user_u, it adds entries to file_contexts to properly label this users home directories. The script then runs a make relabel. This functionality should probably be added to either seuser or make relabel to make this easier to do. Ideas? Dan