All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincenzo Ciancia <vincenzo_ml@yahoo.it>
To: linux-ext4@vger.kernel.org
Subject: Re: User permissions or UID/GIDs for portable disks?
Date: Sun, 25 Nov 2007 22:45:05 +0100	[thread overview]
Message-ID: <ficqd1$c1b$1@ger.gmane.org> (raw)
In-Reply-To: <46c2f4ab0710241110o582dcc27pbd6d2c31474b526b@mail.gmail.com>

Bram Neijt ha scritto:
> Dear ext4 developers,
> 
> Currently using ext3 on an usbstick seems to have a few drawbacks.

The problem of identifying a local resource (user ids) in a global
environment (many different computers) has a very simple solution:
consider uids locals when you transmit them, and use an _injective_ map
when mounting the drive to map uids in the drive to uids in the system.
The function has to be non-surjective because uids which differ on the
drive must differ in the system (this might not be a requirement but I
suppose many would appreciate it). This would, however, require support
from on-disk ext4 data format, which should provide a "table of
employied UIDS" to the ext4 kernel module, which should then do the
translation.

The injective map should, of course, be the identity function, unless
differently specified by users.

Is this feasible in anybody's opinion? It seems not such a conservative
extension so I suspect it might cause discussion :)

Alternatively, the ability to just provide a map file from uids and gids
of a disk to those of a system when mounting would be greatly
appreciated - but how to read it from the disk before mounting? Many
concerns arise. Has this already been discussed in the past?

Vincenzo

  parent reply	other threads:[~2007-11-26 10:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24 18:10 User permissions or UID/GIDs for portable disks? Bram Neijt
2007-10-25  2:38 ` Eric
2007-10-25 10:23   ` Bram Neijt
2007-10-25 13:56   ` Dave Kleikamp
2007-11-01 17:07     ` Bram Neijt
2007-11-25 21:45 ` Vincenzo Ciancia [this message]
2007-11-26 15:56   ` Vincenzo Ciancia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ficqd1$c1b$1@ger.gmane.org' \
    --to=vincenzo_ml@yahoo.it \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.