Received: from mummy.ncsc.mil (mummy.ncsc.mil [144.51.88.129]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id i8B9DGrT023871 for ; Sat, 11 Sep 2004 05:13:16 -0400 (EDT) Received: from smtp.sws.net.au (jazzhorn.ncsc.mil [144.51.5.9]) by mummy.ncsc.mil (8.12.10/8.12.10) with ESMTP id i8B9CK9R017258 for ; Sat, 11 Sep 2004 09:12:21 GMT From: Russell Coker Reply-To: russell@coker.com.au To: Stephen Smalley Subject: Re: ssh policy Date: Sat, 11 Sep 2004 19:13:11 +1000 Cc: Daniel J Walsh , Jim Carter , SE Linux References: <200409090428.52881.russell@coker.com.au> <4141BF21.9050004@redhat.com> <1094828891.28310.52.camel@moss-spartans.epoch.ncsc.mil> In-Reply-To: <1094828891.28310.52.camel@moss-spartans.epoch.ncsc.mil> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200409111913.11677.russell@coker.com.au> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Sat, 11 Sep 2004 01:08, Stephen Smalley wrote: > > -r_dir_file(updfstab_t, { selinux_config_t file_context_t > > default_context_t } ) can_getsecurity(updfstab_t) > > +dontaudit updfstab_t selinux_config_t:dir search; > > I don't think that this is correct; updfstab appears to be looking up a > context via matchpathcon for preserving the context on /etc/fstab, so it > needs access to the file contexts file as in our policy. Why do we want to have updfstab do that? Adding such functionality to updfstab means more work for it to do, more time taken to complete, etc. Just having updfstab create the new file as /etc/fstab.new (or similar) makes it get the right context automatically with much less effort. We don't want to change every program that creates a file to preserve the SE Linux context! That would take significant development work and create significant issues if the SE Linux interfaces ever change. The source to fstab-sync refers to the idea of creating a new fstab file in /tmp if /etc is mounted read-only (with /etc/fstab being a sym-link to somewhere else). If this is implemented as described in the comments then an inopportune power failure or system crash could potentially truncate the fstab file and make the system non-bootable. I think we should give up on the idea of having fstab-sync do anything special in regard to SE Linux. Dan, what do you think? -- http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.