Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

Potential permissions issues with overlayfs [CANCELLED]


walterw

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?

Link to comment
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

Link to comment
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

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...