]> 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)
commitc2ed59710a65ab32dae521cfe1a36e2ddf33fbd4
treefd8ff3fb7f233db121aeff153b4e08e4ec95f501
parentb847ca34df8e18a2919dc6e6f703613f951cadf6
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