-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LibOS] Allow
stat()
and chmod()
on encrypted-files dirs
Commit "[LibOS] Allow `unlink()` on corrupted encrypted files" introduced checks `if (!dent->inode->data) return -EACCES` for all encrypted-files callbacks. However, these callbacks are also used for directories of encrypted files (FS mounts in manifest file and their sub-dirs), and directories never have `inode->data` anyway. Therefore, that commit introduced a bug that encrypted-files dirs returned EACCES error on `stat()` and `chmod()`. This commit fixes this bug by additionally checking that the inode is of "regular file" type. A sub-test is added in `sealed_file` LibOS test. Signed-off-by: Dmitrii Kuvaiskii <[email protected]>
- Loading branch information
Dmitrii Kuvaiskii
committed
Apr 10, 2024
1 parent
a9f7d1c
commit fa241d4
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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