Jump to content
funtoo forums
  • 0
Sign in to follow this  
walterw

Potential permissions issues with overlayfs [CANCELLED]

Question

Hi all, I suspect I am having permissions problems with overlayfs.

1. created a file (as root)

2. ls -l <file>

3. confirmed the file is owned by root

4. ran unshare -r <some executable> - output indicates file as being owned by nobody or 65534 even though ls -l confirms it is owned by root

5. ls -l <file> still shows file is owned by root

 

Lastly, I confirmed in /rw/<path-to-file> that the permissions are the same as the file I created.  Why is unshare seeing different permissions and how do I see what it sees?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I am sorry @walterw to paste you this instead of an answer.

 

Would you be so kind and give more details.

Best even steps to reproduce. You are mentioning overlayfs in your topis, but in your question there is no mention about overlayfs. Could you please add more info, steps to reproduce and expected behaviour.

Thank you

Share this post


Link to post
Share on other sites
  • 0

I don't know if I understand it correctly, but this is what I am getting:

root@robor ~ # ❯❯❯ whoami
root
root@robor ~ # ❯❯❯ touch test-unshare
root@robor ~ # ❯❯❯ ls -alF test-unshare
-rw-r--r-- 1 root root 4 Dec 21 22:54 test-unshare
root@robor ~ # ❯❯❯ unshare -r ls -alF test-unshare
-rw-r--r-- 1 root root 4 Dec 21 22:54 test-unshare

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...