All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dale Amon <amon@vnl.com>
To: Russell Coker <russell@coker.com.au>
Cc: Dale Amon <amon@vnl.com>, SELinux Mail List <selinux@tycho.nsa.gov>
Subject: Re: Trivial debian bootscript for selinuxfs on 2.6
Date: Wed, 17 Sep 2003 13:54:25 +0100	[thread overview]
Message-ID: <20030917125425.GG8988@vnl.com> (raw)
In-Reply-To: <200309172243.31840.russell@coker.com.au>

On Wed, Sep 17, 2003 at 10:43:31PM +1000, Russell Coker wrote:
> The problem of re-pivoting would have to be dealt with in the shutdown scripts 
> for such as NBD type device.  As I never got around to implementing such 
> support for root on network devices I never wrote shutdown scripts.  However 
> I would like to have things be in reasonable shape so that if I won't 
> experience excessive pain if/when I do it.

The more I think about it, the less I'm sure of what
to do. I brought my test bed back on line and did a bit
of looking around.

/initrd is gone after boot up, so I can't use anything 
about it as an indicator; also I can't then pivot back to
it. I can detect that an initrd must have occurred at boot
because there is an selinuxfs which wouldn't exist if I
hadn't booted from selinux.

But even that isn't quite good enough. The boot script
should not try to mount /selinux at all unless the
kernel is an selinux enabled one. I'm not quite sure
how to detect that... wait, hold on thar.... 2.6.0
kernels put the .config into /proc. Hmmm... let me
think on that!




--
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.

  reply	other threads:[~2003-09-17 12:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-16 15:54 Trivial debian bootscript for selinuxfs on 2.6 Dale Amon
2003-09-16 19:10 ` Dale Amon
2003-09-17 10:36 ` Russell Coker
2003-09-17 11:10   ` Dale Amon
2003-09-17 12:15     ` Dale Amon
2003-09-17 12:43     ` Russell Coker
2003-09-17 12:54       ` Dale Amon [this message]
2003-09-17 16:56       ` Dale Amon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030917125425.GG8988@vnl.com \
    --to=amon@vnl.com \
    --cc=russell@coker.com.au \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.