Magic groups in 2.6
Posted May 13, 2004 15:54 UTC (Thu) by
rjw (guest, #10415)
In reply to:
Magic groups in 2.6 by elanthis
Parent article:
Magic groups in 2.6
No, it wouldn't be.
On open, you get a file descriptor.
This is when all the access checks take place.
Everything that you want to do with that permission, you
do using the file descriptor. Hopefully via read, write, and mmap - normal system calls.
File descriptors are capabilities - not manky POSIX ones, but real ones ( with some added state about file position tacked on).
You can pass them around in order to give people access to stuff.
They are fast, because if you have the file descriptor, you have the permission. No extra checking required.
(
Log in to post comments)