Received: from jazzband.ncsc.mil (jazzband.ncsc.mil [144.51.5.4]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id i39Ac6Rb023812 for ; Fri, 9 Apr 2004 06:38:06 -0400 (EDT) Received: from jazzband.ncsc.mil (localhost [127.0.0.1]) by jazzband.ncsc.mil with ESMTP id i39Ac4mw008262 for ; Fri, 9 Apr 2004 10:38:05 GMT Received: from omta08.mta.everyone.net (sitemail2.everyone.net [216.200.145.36]) by jazzband.ncsc.mil with ESMTP id i39Ac44w008254 for ; Fri, 9 Apr 2004 10:38:04 GMT Received: from pmta07.mta.everyone.net (bigip3-snat [216.200.145.27]) by omta08.mta.everyone.net (Postfix) with ESMTP id 28104401A9 for ; Fri, 9 Apr 2004 03:37:30 -0700 (PDT) Date: Fri, 09 Apr 2004 18:37:23 +0800 Subject: initial load_policy problem Message-ID: <6747e616269756e7e9c1174c695478e2@debian> MIME-Version: 1.0 (Generated by Pantomime 1.1.2) From: Rogelio Serrano To: selinux@tycho.nsa.gov Content-Type: text/plain; charset="us-ascii"; format="flowed" Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 How long after the policy load is /dev/console supposed to become console_device_t? immediately after policy load the label of /dev/console is system_u:system_r:kernel_t. I tried to sleep init for 5 and 30 seconds before spawning the init scripts the console is still kernel_t. And if i check the console label using getfattr its console_device_t. I cant boot at all in enforcing mode because no matter what i do the /dev node labels are all kernel_t. the scripts are being run as system_u:system_r:initrc_t. this is the first avc denied message after the initializations by simpleinit is finished. avc: denied { use } for pid=18 exe=/bin/bash path=/dev/console dev=hda16 ino=17895218 scontext=system_u:system_r:initrc_t tcontext=system_u:system_r:kernel_t tclass=fd im using a modified load_policy as init to load the policy file and exec /sbin/simpleinit. thats the init from util-linux-2.12. looking at the sysvinit_patches its essentially the same. both files are labeled system_u:object_r:init_exec_t. sould i setfilecon the console device before i exec simpleinit? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using the GPG bundle for GNUMail.app iD8DBQFAdnziyihxuQOYt8wRAp64AJ0Xnd7spN8sjal2ct3CwmwBtjf42gCfc4V5 cue9+7XoNXfXIznfwNuvUy0= =T95p -----END PGP SIGNATURE----- -- 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.