fs: implement rename, symlinks, *_at methods, and path tracking for in_mem/tar_ro#748
Draft
wdcui wants to merge 2 commits intowdcui/stacked/pr7-devicesfrom
Draft
fs: implement rename, symlinks, *_at methods, and path tracking for in_mem/tar_ro#748wdcui wants to merge 2 commits intowdcui/stacked/pr7-devicesfrom
wdcui wants to merge 2 commits intowdcui/stacked/pr7-devicesfrom
Conversation
… bypass for in_mem and tar_ro Add concrete implementations to the in-memory and read-only tar filesystems: - in_mem: rename with POSIX directory-into-descendant check, symlink/link/ read_link support, create_anonymous_file (memfd), path tracking on descriptors, descriptor-relative *_at methods, O_PATH flag handling, root UID 0 permission bypass (CAP_DAC_OVERRIDE), just_created flag to skip permission checks for file creators, root dir ownership changed to 1000:1000 for single-user sandbox model - tar_ro: path tracking on descriptors, descriptor-relative *_at methods, O_PATH flag handling, rename/mkdir_at stubs returning ReadOnlyFileSystem - errors: new RenameError variants (IsADirectory, NotADirectory, NotEmpty, InvalidArgument, CrossDevice, SameFile, ClosedFd, NotADirectory, ReadOnlyFileSystem), new ReadLinkError/SymlinkError/LinkError variants, FileStatusError reordering, error message corrections - mod.rs: DirFdError enum for *_at helpers, memfd_display_path function, comment updates; PTY trait methods deferred to layered.rs PR - devices.rs: RenameError::NotSupported replaced with RenameError::Io
…device filesystems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
*_atmethods (open_at, stat_at, unlink_at, readlink_at, rename_at, mkdir_at, fd_path), O_PATH flag handling, root UID 0 permission bypass (CAP_DAC_OVERRIDE),just_createdflag to skip permission checks for file creators, root dir ownership changed to 1000:1000 for single-user sandbox model*_atmethods, O_PATH flag handling, rename/mkdir_at stubs returning ReadOnlyFileSystem*_athelpers, memfd_display_path function; PTY trait methods deferred to layered.rs PRStack
wdcui/stacked/pr7-devices← basefs/layered.rs(next)Testing