Received: from jazzband.ncsc.mil (jazzband.ncsc.mil [144.51.5.4]) by tycho.ncsc.mil (8.9.3/8.9.3) with ESMTP id IAA06967 for ; Mon, 19 Aug 2002 08:32:00 -0400 (EDT) Received: from jazzband.ncsc.mil (localhost [127.0.0.1]) by jazzband.ncsc.mil with ESMTP id MAA25027 for ; Mon, 19 Aug 2002 12:30:22 GMT Received: from tsv.sws.net.au (tsv.sws.net.au [203.36.46.2]) by jazzband.ncsc.mil with ESMTP id MAA24986 for ; Mon, 19 Aug 2002 12:30:19 GMT Content-Type: text/plain; charset="iso-8859-1" From: Russell Coker Reply-To: Russell Coker To: Stephen Smalley Subject: Re: psidfiles_init errors Date: Mon, 19 Aug 2002 14:31:46 +0200 Cc: Brad Chapman , SELinux References: In-Reply-To: MIME-Version: 1.0 Message-Id: <20020819123146.CC96F2D5@lyta.coker.com.au> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Mon, 19 Aug 2002 14:19, Stephen Smalley wrote: > On Mon, 19 Aug 2002, Russell Coker wrote: > > These are file types that existed in old versions of the policy but which > > don't exist any more. They still have entries in the ...security > > database because there's no code to clean them up (IMHO they should be > > removed when there are no files of that context on the file system any > > more). > > > > To avoid the messages add the following to your policy: > > type dummy_file_t alias { dmesg_exec_t xdm_log_t minilogd_exec_t ... }; > > You can run 'make reset' in your policy directory and then reboot to > eliminate dead entries from the persistent label mapping. That option is too nasty to consider. > With regard to > automatically removing such entries, it isn't clear that it would be > desirable and it would require maintaining persistent reference counts on > the PSIDs within each filesystem. As to why it might not be desirable, > consider the following: > > 1) Transient files (e.g. temporary files) with derived types may be > frequently created and destroyed. Adding the overhead of re-creating the > PSID/context entry for each such create/destroy cycle would be > undesirable. > > 2) File deletion doesn't truly destroy the data. It may be desirable to > be able to check the set of contexts that have _ever_ been used for files > within a filesystem to determine whether the disk needs to be scrubbed. In that case why not just remove the error message on boot? If this is the desired functionality then surely our log files don't need to get filled because of it. -- I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the >From field. -- 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.