Re: User limit

Stephen C. Tweedie (sct@redhat.com)
Tue, 11 May 1999 22:11:50 +0100 (BST)


Hi,

On Fri, 7 May 1999 17:50:53 +0200, Ralf Baechle <ralf@gnu.org> said:

> That's only half the story. Ext2 doesn't store the high 16-bit of the UID
> and GID in the disk inode. In some cases of braindead software this may
> even result in very hideous problems since both are equivalent modulo 65536,
> that is for example UIDs 0, 65536 and 131072 are equivalent. Security fun
> ahead.

ext2 is quite capable of storing 32-bit uid and gid if the kernel needs
it. Currently, uid_t is an unsigned short, so we only store 16 bits,
but the extra space is still reserved. Hurd, for example, stores full
32-bit uids in ext2, and the on-disk inode struct definition includes
the necessary field definitions.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/