]> 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]>
Mon, 25 May 2026 19:18:07 +0000 (16:18 -0300)
commit5102f80b62747425c7232fba8bb9f9cae837193d
tree7f6caf714e1f26cef2ca94e139a8fdb7d46b4795
parentedcd741cd8b8a8b2e9a91ef4333c21615a8cf72e
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