From: Daniel J Walsh <dwalsh@redhat.com>
To: SELinux <SELinux@tycho.nsa.gov>
Subject: [Fwd: load_policy problem]
Date: Wed, 18 May 2005 07:52:26 -0400 [thread overview]
Message-ID: <428B2C7A.1050207@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 39 bytes --]
SELinux <SELinux@tycho.nsa.gov>
--
[-- Attachment #2: load_policy problem --]
[-- Type: message/rfc822, Size: 9608 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2.1.1: Type: text/plain; charset=us-ascii, Size: 1143 bytes --]
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.
whats 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
[-- Attachment #2.1.2: Type: text/html, Size: 6650 bytes --]
next reply other threads:[~2005-05-18 11:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-18 11:52 Daniel J Walsh [this message]
2005-05-18 13:52 ` [Fwd: load_policy problem] Russell Coker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=428B2C7A.1050207@redhat.com \
--to=dwalsh@redhat.com \
--cc=SELinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.