]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: permissions support (uid/gid/mode, chmod, chown, getuid, getgid)
authorTulio A M Mendes <[email protected]>
Wed, 11 Feb 2026 22:46:34 +0000 (19:46 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 02:20:50 +0000 (23:20 -0300)
commit41b8a83da2d0c5df67311966c392ae695f47f328
tree646b8c7a7e58bfe6fb58c6e3b6074320c37f1090
parentd85ef30319b8612fd7532581c5192935e36f27f6
feat: permissions support (uid/gid/mode, chmod, chown, getuid, getgid)

- include/fs.h: added uid, gid, mode fields to fs_node_t
- include/process.h: added uid, gid fields to struct process
- include/stat.h: added st_uid, st_gid to struct stat, permission bit defines
- include/syscall.h: added SYSCALL_CHMOD(50), SYSCALL_CHOWN(51), SYSCALL_GETUID(52), SYSCALL_GETGID(53)
- src/kernel/syscall.c: chmod_impl, chown_impl, getuid/getgid dispatch; stat_from_node now populates uid/gid/mode
- user/init.c: updated struct stat to match kernel layout
- cppcheck clean, 19/19 smoke tests pass
include/fs.h
include/process.h
include/stat.h
include/syscall.h
src/kernel/syscall.c
user/init.c