All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Russell Coker <russell@coker.com.au>, SE-Linux <selinux@tycho.nsa.gov>
Subject: Re: at last: info regarding boot problems on multiple partitions
Date: Fri, 10 Sep 2004 00:43:21 +0100	[thread overview]
Message-ID: <20040909234320.GA7328@lkcl.net> (raw)
In-Reply-To: <20040909183823.GJ10046@lkcl.net>

On Thu, Sep 09, 2004 at 07:38:23PM +0100, Luke Kenneth Casson Leighton wrote:

> On Fri, Sep 10, 2004 at 02:33:47AM +1000, Russell Coker wrote:

> > On Thu, 9 Sep 2004 08:49, Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:
> > > FINALLY i got a useable system when i encountered a boot problem
> > > [well, i got a console login].
> > >
> > > the issue is that partitions fail to be mounted.

>  Mounting local filesystems...
>  SeLinix: initialized (dev hda1, type ext2) uses xattr
>  same for hda6
>  same for hda7
> 
>  /dev/hda1 on /boot type ext2 (rw)
>  /dev/hda6 on /var type ext2 (rw)
>  /dev/hda7 on /home type ext2 (rw)
> 
> 
>  .... not a sausage about /dev/hda5!!!

okay, it was as i kind-of expected - that audit banning
write access of /bin/touch to /etc was wot done it.

that check is done in /etc/init.d/mountvirtfs.sh - it's a very
awful hack to check that /etc/mtab is on a writeable filesystem.

rather than check the file itself, mountvirtfs.sh checks that
the subdirectory is writeable - by attempting to touch it!

[which is of course banned under the selinux policy]

consequently, the test fails, and only if the test _succeeds_ does
mountvirtfs.sh delete /etc/mtab. (with :> $MTAB_PATH)

so, as a temporary hack, i removed the "if dir_writable ${MTAB_PATH%/*}"
check.

result?

	/etc/mtab gets deleted.

result?

	/usr doesn't end up looking like it's still mounted (read-only in the
	case of the prior shutdown...]

result?

	/usr always gets mounted.

what an arse.

bugreporting time.

l.

--
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:[~2004-09-09 23:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-08 22:49 at last: info regarding boot problems on multiple partitions Luke Kenneth Casson Leighton
2004-09-09 12:22 ` Stephen Smalley
2004-09-09 13:10   ` Luke Kenneth Casson Leighton
2004-09-09 16:33 ` Russell Coker
2004-09-09 17:30   ` Luke Kenneth Casson Leighton
2004-09-09 17:35   ` Luke Kenneth Casson Leighton
2004-09-09 18:38   ` Luke Kenneth Casson Leighton
2004-09-09 23:43     ` Luke Kenneth Casson Leighton [this message]
2004-09-11 16:20       ` Russell Coker

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=20040909234320.GA7328@lkcl.net \
    --to=lkcl@lkcl.net \
    --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.