All of lore.kernel.org
 help / color / mirror / Atom feed
* can not boot with strict policy
@ 2007-04-23 12:09 Ken YANG
  2007-04-23 15:01 ` Stephen Smalley
  2007-04-24  7:10 ` Russell Coker
  0 siblings, 2 replies; 15+ messages in thread
From: Ken YANG @ 2007-04-23 12:09 UTC (permalink / raw)
  To: SELinux List


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.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-04-27 10:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-23 12:09 can not boot with strict policy Ken YANG
2007-04-23 15:01 ` 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

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.