Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 1997 00:53:46 -0800
From:      Julian Elischer <julian@whistle.com>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        sos@FreeBSD.dk, hackers@FreeBSD.ORG
Subject:   Re: SUID-Directories patch
Message-ID:  <346C119A.ABD322C@whistle.com>
References:  <199711140118.SAA18982@usr08.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> (expecially the kernel vs. exported flags stuff that it
> requires to make it work, which frees up 13 bits(!) in the
> external flags for yet more mount options (like the rather less
> useful -- but still useful -- symbolic link defeating options).

actually terry I already snuck those changes into 3.0
as it wasn't really that much of a change. They are not really needed
in 2.2, as there are still a couple of free bits and I doubt that
2.2.x will use them all. (if we do  then we can do it then).

In 3.0 I actually only freed up 3 bits, bringing it to a total 
of 8 bits free. (5 were recently freed, but I don't want to re-use them
as old copies of 'mount' may get upset if I do) There are a couple more
that should move, I think, but I'm not sure about them. 
I didn't notice that they were freed when I posted my first
'out of bits' message, only that the 3 free bits in 2.2 were 
all used up. Sorry about misleading you. I should have looked better. 

The total score is, (from memory)
19 exported visible bona-fide bits (including 4 internal status bits)
leaving 13.
made up of:
1 exportable but invisible (no idea why)
4 command modifiers
8 free, all in 0x0FF00000

I THINK that two of the internal status bits (MNT_LOCAL & MNT_ROOTFS)
need not be exported and should also shift.
(I've never seen the root one set and do we need to be told that
wd0a is local?) (well ok, maybe they can stay.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?346C119A.ABD322C>