Hi. I added user “setest” with useradd command and then I changed etc/selinux/strict/src/policy/users by adding following line:
{user_r second_r} user setest roles
Then I added these lines to etc/selinux/strict/src/policy/domains/user.te:
full_user_role(second)
allow system_r second_r
allow sysadm_r second_r
I changed etc/selinux/strict/src/policy/macros/user_macros.te as followes:
undefine ('in_user_role')
define('in_user_role' , '
role user_r types $1;
role second_r types $1;
')
Then I added “second_r:second_t” to etc/selinux/strict/src/policy/appconfig/default_type and then I ran make command in directory etc /selinux/strict/src/policy/ and finally I ran load_policy policy.18 .
I did all above parts successfully except loading policy.18 because every time I ran load_policy command my computer hanged and I had to restart my computer.
what’s wrong?
Thanks.
What address should I use to broadcast my mail among other members?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com