Skip to content

feat(fs): implement umask and improve permission handling#1500

Merged
fslongjin merged 1 commit intoDragonOS-Community:masterfrom
fslongjin:fix-umask-and-chmod-permissions
Dec 18, 2025
Merged

feat(fs): implement umask and improve permission handling#1500
fslongjin merged 1 commit intoDragonOS-Community:masterfrom
fslongjin:fix-umask-and-chmod-permissions

Conversation

@fslongjin
Copy link
Member

  • Set default umask to 0022 for new filesystem instances
  • Add apply_umask_for_create() and chmod_preserve_type() helper functions
  • Implement proper permission checks for file creation and chmod operations
  • Fix fchmod syscall to work correctly and reject O_PATH file descriptors
  • Add open_create_test to gvisor test suite

- Set default umask to 0022 for new filesystem instances
- Add apply_umask_for_create() and chmod_preserve_type() helper functions
- Implement proper permission checks for file creation and chmod operations
- Fix fchmod syscall to work correctly and reject O_PATH file descriptors
- Add open_create_test to gvisor test suite

Signed-off-by: longjin <longjin@DragonOS.org>
@github-actions github-actions bot added the enhancement New feature or request label Dec 18, 2025
@fslongjin fslongjin merged commit 601ba6d into DragonOS-Community:master Dec 18, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant