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

feat: VFS permissions handling #312

Merged
merged 19 commits into from
Jul 31, 2024
Merged

feat: VFS permissions handling #312

merged 19 commits into from
Jul 31, 2024

Conversation

Mr-Leshiy
Copy link
Contributor

@Mr-Leshiy Mr-Leshiy commented Jul 30, 2024

Description

Adding Hermes virtual file system permissions handling system.
The permissions state struct is based on the Radix tree structure, where each node is a path element with the corresponding permission level value.
By default each file and directory has a ReadAndWrite permission level.

Related Issue(s)

Closes #308

Description of Changes

  • Updated Vfs and VfsBotstrapper structs, added permissions setup and usage.
  • Added new PermissionsState and PermissionLevel types.
  • Updated AppPackage::mount_to_vfs function with adding proper values of permission levels.

@Mr-Leshiy Mr-Leshiy self-assigned this Jul 30, 2024
@Mr-Leshiy Mr-Leshiy added the review me PR is ready for review label Jul 30, 2024
Copy link
Contributor

@cong-or cong-or left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Mr-Leshiy Mr-Leshiy merged commit 053f144 into main Jul 31, 2024
37 checks passed
@Mr-Leshiy Mr-Leshiy deleted the feat/vfs-permissions branch July 31, 2024 14:38
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review me PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🛠️ [TASK] : VFS bootstrapping
2 participants