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 i39CB8Rb024158 for ; Fri, 9 Apr 2004 08:11:08 -0400 (EDT) Received: from jazzband.ncsc.mil (localhost [127.0.0.1]) by jazzband.ncsc.mil with ESMTP id i39CB7mw012184 for ; Fri, 9 Apr 2004 12:11:07 GMT Received: from omta10.mta.everyone.net (sitemail2.everyone.net [216.200.145.36]) by jazzband.ncsc.mil with ESMTP id i39CB74w012181 for ; Fri, 9 Apr 2004 12:11:07 GMT Received: from pmta02.mta.everyone.net (bigip3-snat [216.200.145.27]) by omta10.mta.everyone.net (Postfix) with ESMTP id 4D09F4059C for ; Fri, 9 Apr 2004 05:11:06 -0700 (PDT) Date: Fri, 09 Apr 2004 20:10:59 +0800 Subject: Re: initial load_policy problem Message-ID: <2ae35fd94f4429a07c6f052be63fffaf@debian> MIME-Version: 1.0 (Generated by Pantomime 1.1.2) From: Rogelio Serrano To: selinux@tycho.nsa.gov In-Reply-To: <6747e616269756e7e9c1174c695478e2@debian> 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 On 2004-04-09 18:37:23 +0800 Rogelio Serrano wrote: > 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? > Sorry about that. It was inits fault. It did not close the old pre initial policy load console before forking off the boot scripts. a thorough audit of the programs are all thats needed. The default policy is ok. The prgrams im using are all different versions from the nsa download page. all in all i need to audit bash, mount, dmesg, busybox and udev. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using the GPG bundle for GNUMail.app iD8DBQFAdpLGyihxuQOYt8wRAhkWAKCW4mXm5F8ewvKuRr4p7gW/WgOvRwCfQZ2K Vzan0B3I6a1CiyCXcHu+gEo= =wGcw -----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.