Linux Has File IDs

Liste des GroupesRevenir à co vms 
Sujet : Linux Has File IDs
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vms
Date : 01. Aug 2024, 04:33:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8evmq$1vv20$1@dont-email.me>
User-Agent : Pan/0.159 (Vovchansk; )
VMS has had the ability, right since the beginning, to reference files
and directories by their filesystem-unique IDs. So there is this
long-standing assumption that access to a file is guarded by the file
protection itself, not by that on any path to it.

In POSIX systems, on the other hand, the original approximate
equivalent to a file ID (the inode number) was never usable to
reference the file directly: you always had to use the filename, and
the names of any containing directories, to construct a path to get to
it to open it, get info about it or whatever. So the security model
has always assumed that you can limit access to a file independently
of its own protection settings, by limiting access to its containing
directory(ies).

Linux now has the ability to reference a file by its “handle”
<https://manpages.debian.org/2/open_by_handle_at.2.en.html>. This is a
persistent unique ID that survives moves/renames of the item within
the same filesystem, though not of course deletion or moving to a
different filesystem. The format of this ID information is up to the
filesystem implementation, and may not be supported by some filesystem
types.

Note that, while construction of a file handle is not privileged,
using one to access a file is.

Note also the “CAP_xxx” business. What Linux calls “capabilities” is
basically a close copy of the VMS privilege mask mechanism.

Date Sujet#  Auteur
1 Aug 24 o Linux Has File IDs1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal