Skip to content

[vminitd]: update filesystem operation to run in new namespace - #838

Merged
jglogan merged 1 commit into
apple:mainfrom
saehejkang:update-filesystem-operation-to-run-in-new-namespace
Aug 28, 2026
Merged

jglogan merged 1 commit into
apple:mainfrom
saehejkang:update-filesystem-operation-to-run-in-new-namespace

Conversation

@saehejkang

Copy link
Copy Markdown
Contributor

Changes Made

  • Updated the filesystem operation to take in the containerID, so that operations are always executed against the intended container’s mount namespace.

@saehejkang
saehejkang force-pushed the update-filesystem-operation-to-run-in-new-namespace branch 6 times, most recently from d90a617 to 826113d Compare August 13, 2026 03:23
@jglogan

jglogan commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

@saehejkang Finally found some time to test this with apple/container#1949. The test there is passing now:

Right after initial container run:

% du -sm ~/Library/Application\ Support/com.apple.container/containers/clean-test/rootfs.ext4
du -sm ~/Library/Application\ Support/com.apple.container/volumes/scratch/volume.img
1212	/Users/john/Library/Application Support/com.apple.container/containers/clean-test/rootfs.ext4
67	/Users/john/Library/Application Support/com.apple.container/volumes/scratch/volume.img

After dd to container root fs and mounted volume:

% du -sm ~/Library/Application\ Support/com.apple.container/containers/clean-test/rootfs.ext4
du -sm ~/Library/Application\ Support/com.apple.container/volumes/scratch/volume.img
1468	/Users/john/Library/Application Support/com.apple.container/containers/clean-test/rootfs.ext4
323	/Users/john/Library/Application Support/com.apple.container/volumes/scratch/volume.img

After container clean:

% du -sm ~/Library/Application\ Support/com.apple.container/containers/clean-test/rootfs.ext4
du -sm ~/Library/Application\ Support/com.apple.container/volumes/scratch/volume.img
1180	/Users/john/Library/Application Support/com.apple.container/containers/clean-test/rootfs.ext4
35	/Users/john/Library/Application Support/com.apple.container/volumes/scratch/volume.img

@jglogan

jglogan commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

@saehejkang We're merging some security fixes to container, and then once that's tagged, I'll merge this and tag it and we can update apple/container#1949 to pick up the vminitd fix.

@jglogan
jglogan merged commit 97c6211 into apple:main Aug 28, 2026
7 checks passed
@saehejkang
saehejkang deleted the update-filesystem-operation-to-run-in-new-namespace branch August 29, 2026 03:35
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.

2 participants