Timeline for Are file permissions copied into the Open File Table?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 9, 2024 at 12:48 | comment | added | Stephen Kitt | Indeed, thanks ilkkachu — that would explain the diagram. | |
| Oct 9, 2024 at 12:47 | history | edited | Stephen Kitt | CC BY-SA 4.0 | The mode is copied, and since the permissions aren’t useful, the omission makes sense (thanks ilkkachu). |
| Oct 8, 2024 at 20:18 | comment | added | ilkkachu | The fact that the inode permissions don't really matter for an already-open fd (OFD) seems a likely reason the quoted diagram doesn't include the inode permissions in the open file table entries. It does appear include "file status flags" with values of "w" and "r" -- That looks like it could be the "mode" the file was opened in? The mode of open is what works as "access control" for operations on the fd anyway. | |
| Oct 8, 2024 at 18:58 | comment | added | Stephen Kitt | The mode is used a lot (to check the file type), but once a file is opened its permissions aren’t checked again. | |
| Oct 8, 2024 at 16:45 | vote | accept | pochopsp | ||
| Oct 8, 2024 at 16:44 | comment | added | pochopsp | Thanks for your answer @Stephen Kitt . What's the usage for permissions in the open file table? Are they used by the OS in some way? | |
| Oct 8, 2024 at 16:31 | history | answered | Stephen Kitt | CC BY-SA 4.0 |