Re: [PATCH 00/52] Introduce credential record

From: David Howells
Date: Sat Oct 13 2007 - 20:12:50 EST


Theodore Tso <tytso@xxxxxxx> wrote:

> I'm going to ask a stupid question, and I probably missed something
> in the 52 patches, but.... I see how the credential is used to do
> access checks, but why does the credentials record need to passed all
> the way into block allocator? What is it used for there?

Ext2, 3 & 4 use it to determine whether someone has the right to use the
reserved space according to whether their UID/GID match those in the
superblock.

See ext3_has_free_blocks() for an example.

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