tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: extattr namespaces



Alan Barrett <apb%cequrux.com@localhost> wrote:

> >how about the following mapping?
> >
> >     xattr name string <-> ufs on-disk
> >
> >     "system.foo"      <-> SYSTEM "foo"
> >     "others.bar"      <-> USER "others.bar"
> 
> Looks reasonable, but then which of the following?
> 
> a)    "user.user.baz"  <-> USER "user.baz"
> b)    "user.baz"       <-> USER "user.baz"
> c)    "user.baz"       <-> USER "baz"
> d)    "baz"            <-> USER "baz"
> 
> (I suggest b and d)

The question is: do we strip/add the string namespace when
storing/reading the values in the filesystem.

For native use, I think we do not want to strip, as it is simplier. The
problem arise when mounting a disk from FreeBSD. Here when we ask to
store "user.foo", we mean USER "foo" and not USER "user.foo".

I think we just need a mount option: -o -stripxattr
It would do this mapping:
        "system.foo" <-> SYSTEM "foo"
        "trusted.foo" <-> SYSTEM "trusted.foo"
        "security.foo" <-> SYSTEM "security.foo"
                 "user.foo" <-> USER "foo"
                 "anything.foo" <-> USER "anything.foo"


-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index