Re: [PATCH 06/10] NFSv4: Add label recommended attribute and NFSv4 flags

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kyle Moffett
Date: Saturday, July 10, 2010 - 10:02 pm

On Fri, Jul 9, 2010 at 10:05, David P. Quigley <dpquigl@tycho.nsa.gov> wrote:

I would argue that if somebody wants to stick a base64-encoded image
or an x509 certificate in their security labels then shipping the
whole thing across the wire every time somebody does an extended
"stat" is just stupid.  Think about how much overhead there would be
if you did an "ls -Z" of a directory with 100 files (64k * 100 ==
6.4MB!!!), where that data would previously have fit in no more than
10-20k TOTAL.

A better solution would be something along the lines of putting at
most a SHA512 sum in the label field and have a separate caching
communication protocol (either in-band or out-of-band) to pass the
fully-descriptive payload.

Even in local filesystems like ext3 we prefer to turn labels into
numbers, store the number with each inode, and then keep the labels
indexed in a separate datastructure.

Cheers,
Kyle Moffett
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Labeled-NFS: Security Label support in NFSv4 , David P. Quigley, (Wed Jul 7, 7:31 am)
[PATCH 05/10] KConfig: Add KConfig entries for Labeled NFS, David P. Quigley, (Wed Jul 7, 7:31 am)
[PATCH 07/10] NFSv4: Introduce new label structure, David P. Quigley, (Wed Jul 7, 7:31 am)
Re: [PATCH 07/10] NFSv4: Introduce new label structure, Casey Schaufler, (Wed Jul 7, 9:21 am)
Re: [PATCH 07/10] NFSv4: Introduce new label structure, David P. Quigley, (Wed Jul 7, 9:22 am)
Re: [PATCH 07/10] NFSv4: Introduce new label structure, David P. Quigley, (Wed Jul 7, 9:24 am)
Re: [PATCH 07/10] NFSv4: Introduce new label structure, Chuck Lever, (Wed Jul 7, 10:42 am)
Re: [PATCH 07/10] NFSv4: Introduce new label structure, Chuck Lever, (Wed Jul 7, 10:49 am)
Re: [PATCH 07/10] NFSv4: Introduce new label structure, David P. Quigley, (Wed Jul 7, 11:11 am)
Re: [PATCH 06/10] NFSv4: Add label recommended attribute a ..., Kyle Moffett, (Sat Jul 10, 10:02 pm)