I can confirm this bug with overlayfs on top of tmpfs, I think it
happens when a program does fsetxattr on a file.

I was able to reproduce it with sed which uses setxattr when it creates
a new file, the shell does not do this when creating a file and does not
trigger the bug.

`touch /tmp/foo; sed -i '' /tmp/foo; cat /tmp/foo` results in EACCES
from open(2) in cat(1).

sed:
fsetxattr(4, "system.posix_acl_access", 
"\2\0\0\0\1\0\6\0\377\377\377\377\4\0\4\0\377\377\377\377 
\0\4\0\377\377\377\377", 28, 0) = 0

cat:
open("/tmp/foo", O_RDONLY)              = -1 EACCES (Permission denied)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1840328

Title:
  Regression in overlayfs between 4.4.0-157 and 4.4.0-159

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1840328/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to