Skip to content

feat: identity syscalls, umask, utimensat, pread64/pwrite64#231

Merged
ryanbreen merged 1 commit intomainfrom
feat/identity-syscalls-umask-utimensat
Feb 18, 2026
Merged

feat: identity syscalls, umask, utimensat, pread64/pwrite64#231
ryanbreen merged 1 commit intomainfrom
feat/identity-syscalls-umask-utimensat

Conversation

@ryanbreen
Copy link
Owner

Summary

  • Add uid/gid/euid/egid/umask fields to Process with root defaults and fork inheritance
  • Implement 10 new syscalls: getuid, geteuid, getgid, getegid, setuid, setgid, umask, pread64, pwrite64, utimensat
  • Add /etc/passwd and /etc/group to ext2 image for musl getpwuid()/getgrgid()
  • Add identity_musl_test C program exercising all identity syscalls plus passwd/group lookup

Test plan

  • ARM64 boot test passes with identity_musl_test showing all PASS
  • x86_64 boot test passes (no regressions)
  • Existing musl tests (hello_musl, env_musl_test, uname_musl_test, rlimit_musl_test) unaffected

🤖 Generated with Claude Code

… files

Add uid/gid/euid/egid/umask fields to Process struct with root defaults
and fork inheritance. Implement getuid/geteuid/getgid/getegid/setuid/
setgid/umask/pread64/pwrite64/utimensat syscalls with proper dispatch
on both x86_64 and ARM64. Add ESPIPE errno and Ext2Fs::write_inode()
helper. Populate /etc/passwd and /etc/group on ext2 image for musl
getpwuid/getgrgid. Add identity_musl_test C program.

Co-Authored-By: Ryan Breen <ryanbreen@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cursor
Copy link

cursor bot commented Feb 18, 2026

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on March 12.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@ryanbreen ryanbreen merged commit 0f1d575 into main Feb 18, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant