Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sandbox): add remove_dir permissions to sandbox #1085

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

qkaiser
Copy link
Contributor

@qkaiser qkaiser commented Jan 22, 2025

When an extraction directory is empty, unblob will try to delete it.

This can lead to PermissionError due to insufficient permissions within the sandbox.

this needs to land in unblob-native first: onekey-sec/unblob-native#82

@qkaiser qkaiser added the bug Something isn't working label Jan 22, 2025
@qkaiser qkaiser requested a review from vlaci January 22, 2025 10:17
@qkaiser qkaiser self-assigned this Jan 22, 2025
@qkaiser qkaiser force-pushed the extend-landlock-perms branch from 001ee75 to 8801654 Compare January 22, 2025 10:18
@qkaiser qkaiser marked this pull request as draft January 22, 2025 10:18
When an extraction directory is empty, unblob will try to delete it.

This can lead to PermissionError due to insufficient permissions within
the sandbox. The same can happen when deleting files.

We therefore allow unblob to delete directories and files from the
extraction directory with the remove_dir and remove_file permissions.
@qkaiser qkaiser force-pushed the extend-landlock-perms branch from 8801654 to ac9cf6d Compare January 23, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant