[Fwd: load_policy problem]
SELinux <[email protected]>
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
Quoted 5 lines
I did all above parts successfully except loading policy.18 because every time I ran
load_policycommand my computer hanged and I had to restart my computer.what's wrong?
How exactly did the computer hang? Can you try this when logged in at a virtual console (IE a non-graphical login) so that you can see kernel messages. If a SE Linux policy error causes the system to stop operating then there should be many messages displayed on the console about it.
If messages display to fast to read then enable a serial console and log them to disk.
Signature · 9 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.