From: Ken YANG <spng.yang@gmail.com>
To: SELinux List <selinux@tycho.nsa.gov>
Subject: can not boot with strict policy
Date: Mon, 23 Apr 2007 20:09:20 +0800 [thread overview]
Message-ID: <462CA1F0.2000400@gmail.com> (raw)
hi all:
i run in FC7 Rawhide with strict policy, which is built from svn
refpolicy:
TYPE = strict-mcs
DIRECT_INITRC=y
MONOLITHIC=n
MLS_SENS=16
MLS_CATS=1024
MCS_CATS=1024
after i loaded the policy:
make && make install && make load && \
"modify /etc/selinux/config to use new policy" && \
touch /.autorelabel
and reboot, but "kernel panic" occur:
"......
avc: denied {execute} for pid=1 comm="init" name="libsepol.so.1"
scontext=system_u:system_r:init_t:s0 tcontext=user_u:object_r:lib_t:s0
tclass=file
Kernel panic - not syncing: Attempted to kill init!
......"
i think the reason of above "execute error" is due to the following
policy:
allow files_unconfined_type file_type:{ file chr_file } ~execmod;
......
ifdef(`targeted_policy',`
unconfined_domain(init_t)
')
......
files_type(lib_t)
is that right?
i made some tests, in which i removed the "targed_policy" conditions.
the "execute error" disappear, but there are more avc denied during
init process, and after following avc denied, the system restarting:
"
avc: denied { execute } ... comm="init" name="/lib/libblkid.so.1.0"
Restarting system.
"
i don't know what's wrong with my method?
thanks in advance
--
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.
next reply other threads:[~2007-04-23 12:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-23 12:09 Ken YANG [this message]
2007-04-23 15:01 ` can not boot with strict policy Stephen Smalley
2007-04-23 17:42 ` James Morris
2007-04-23 17:48 ` Stephen Smalley
2007-04-23 18:14 ` Daniel J Walsh
2007-04-24 8:11 ` Ken YANG
2007-04-24 12:23 ` Daniel J Walsh
2007-04-24 12:26 ` Christopher J. PeBenito
2007-04-25 12:19 ` Ken YANG
2007-04-24 12:23 ` Christopher J. PeBenito
2007-04-24 12:59 ` Stephen Smalley
2007-04-24 13:08 ` Daniel J Walsh
2007-04-26 6:45 ` Russell Coker
2007-04-27 10:48 ` Ken YANG
2007-04-24 7:10 ` 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=462CA1F0.2000400@gmail.com \
--to=spng.yang@gmail.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.