[PR #1469] [MERGED] Fix directory authority #1998

Closed
opened 2026-03-04 02:03:11 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1469
Author: @fujitayoshihiko
Created: 11/6/2020
Status: Merged
Merged: 11/7/2020
Merged by: @gaul

Base: masterHead: fix-directory-authrity


📝 Commits (1)

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 src/s3fs.cpp (+3 -3)

📄 Description

Relevant Issue (if applicable)

Non-root user can't access mounted s3fs directory when parent directory have only executable bit and current directory have readable bit.
"ls" command failed with "Operation not permitted".

Details

Directory Configuration

parent_dir(mode 0111)
  read_only_dir(mode 0444)
    txt(normal file)

First of all change current directory to parent_dir

XFS(use normal vfs)

[parent_dir]$ \ls                           
ls: cannot open directory .: Permission denied   
[parent_dir]$ \ls read_only_dir                   
txt                                                                
[parent_dir]$ \ls read_only_dir/txt               
ls: cannot access read_only_dir/txt: Permission denied                                                           

s3fs(change before)

[parent_dir]$ \ls                                     
ls: cannot open directory .: Permission denied                        
[parent_dir]$ \ls read_only_dir                      
ls: cannot open directory read_only_dir: Operation not permitted      
[parent_dir]$ \ls read_only_dir/txt                  
ls: cannot access read_only_dir/txt: Operation not permitted          

s3fs(change after)

[parent_dir]$ ls                           
ls: cannot open directory .: Permission denied              
[parent_dir]$ \ls read_only_dir            
txt                                                         
[parent_dir]$ \ls read_only_dir/txt        
ls: cannot access read_only_dir/txt: Operation not permitted

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/1469 **Author:** [@fujitayoshihiko](https://github.com/fujitayoshihiko) **Created:** 11/6/2020 **Status:** ✅ Merged **Merged:** 11/7/2020 **Merged by:** [@gaul](https://github.com/gaul) **Base:** `master` ← **Head:** `fix-directory-authrity` --- ### 📝 Commits (1) - [`e85c177`](https://github.com/s3fs-fuse/s3fs-fuse/commit/e85c1775c71986795e3e347f8e61c9c95d60e6f7) Fix directory authority ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/s3fs.cpp` (+3 -3) </details> ### 📄 Description ### Relevant Issue (if applicable) Non-root user can't access mounted s3fs directory when parent directory have only executable bit and current directory have readable bit. "ls" command failed with "Operation not permitted". ### Details #### Directory Configuration ``` parent_dir(mode 0111) read_only_dir(mode 0444) txt(normal file) ``` First of all change current directory to parent_dir #### XFS(use normal vfs) ``` [parent_dir]$ \ls ls: cannot open directory .: Permission denied [parent_dir]$ \ls read_only_dir txt [parent_dir]$ \ls read_only_dir/txt ls: cannot access read_only_dir/txt: Permission denied ``` #### s3fs(change before) ``` [parent_dir]$ \ls ls: cannot open directory .: Permission denied [parent_dir]$ \ls read_only_dir ls: cannot open directory read_only_dir: Operation not permitted [parent_dir]$ \ls read_only_dir/txt ls: cannot access read_only_dir/txt: Operation not permitted ``` #### s3fs(change after) ``` [parent_dir]$ ls ls: cannot open directory .: Permission denied [parent_dir]$ \ls read_only_dir txt [parent_dir]$ \ls read_only_dir/txt ls: cannot access read_only_dir/txt: Operation not permitted ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:03:11 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1998
No description provided.