]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
security: Round 6.1 access() mode implementation (A19)
authorTulio A M Mendes <[email protected]>
Mon, 25 May 2026 19:18:07 +0000 (16:18 -0300)
committerTulio A M Mendes <[email protected]>
Wed, 3 Jun 2026 04:02:35 +0000 (01:02 -0300)
commitda3f508be1b698c92c274dbd33f466150397b08e
tree927e6284b9463be451ae6e97046a80245aaecce2
parentdf20f869142156576e4c14ae957b1a441859f9a2
security: Round 6.1 access() mode implementation (A19)

A19: Implement mode checking in access() syscall
- F_OK: check file existence (already done)
- R_OK: assume readable if exists (simplified, no granular perms yet)
- W_OK: check mount read-only flag, return EROFS if read-only
- X_OK: check if file is regular file (FS_FILE), return EACCES if not

Tests: 119/119 PASS (smoke test, SMP=4)
src/kernel/syscall.c